<?php

namespace App\Admin\Repositories;

use App\Models\BaseProduct as Model;
use Dcat\Admin\Form;
use Dcat\Admin\Repositories\EloquentRepository;

class BaseProduct extends EloquentRepository
{
    /**
     * Model.
     *
     * @var string
     */
    protected $eloquentClass = Model::class;

    /*
     * 重写保存方法
     */
//    public function store(Form $form)
//    {
//        exit;
//        $form->ignore(['images']);
//        return parent::store($form);
//    }
//
//    public function update(Form $form)
//    {
//        echo ' bb---------';
//        $form->prepare('images');
//        echo ' ---updates------';
//        var_dump($form->updates());
//        exit;
//        return parent::store($form);
//    }
}
