attributes = new Attributes(); $this->dataUrl = admin_api_url(request()->path()).'/list'; $this->model = new Model($model, $this); if ($model) { $this->keyName = $model->getKeyName(); $this->defaultSort($model->getKeyName(), "asc"); } $this->isGetData = request('get_data') == "true"; $this->toolbars = new Toolbars($this); $this->batchActions = new BatchActions(); $this->filter = new Filter($this->model); } public static function make() { return new Category(); } }