diff --git a/app/Http/Controllers/Admin/CommonController.php b/app/Http/Controllers/Admin/CommonController.php index f75ec71..7e57484 100644 --- a/app/Http/Controllers/Admin/CommonController.php +++ b/app/Http/Controllers/Admin/CommonController.php @@ -155,7 +155,9 @@ class CommonController extends Controller public function update($id = null, Request $request) { try { + dump($request->all()); $data = (new CommonModel())->setTable($this->model->getTable())->filterRequestColumns($request, ["id"]); + dd($data); $model = $this->model->find($id ?: $request->id); $model->update($data); $this->updated($model); diff --git a/app/Models/Product.php b/app/Models/Product.php index f3876c3..37b64ae 100755 --- a/app/Models/Product.php +++ b/app/Models/Product.php @@ -8,7 +8,7 @@ use Illuminate\Support\Facades\Auth; class Product extends SoftDeletesModel { protected $table = "product"; - + protected static function booted() { static::addGlobalScope(new AdminProjectScope());