|ProductImage newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|ProductImage newQuery() * @method static \Illuminate\Database\Eloquent\Builder|ProductImage query() * @method static \Illuminate\Database\Eloquent\Builder|ProductImage whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|ProductImage whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|ProductImage wherePath($value) * @method static \Illuminate\Database\Eloquent\Builder|ProductImage whereProductId($value) * @method static \Illuminate\Database\Eloquent\Builder|ProductImage whereUpdatedAt($value) * * @mixin \Eloquent */ class ProductImage extends Model { protected $fillable = [ 'path', 'product_id', ]; public function product(): BelongsTo { return $this->belongsTo(Product::class); } }