middleware(['auth' => 'pageCategoryPermissions'])->except('index', 'show'); $this->modelHasPublications = false; // Model $this->modelType = StringHelper::toURL(__('models.pagecategory')); $this->modelData = [ 'parent' => [ 'type' => 'inputSelect', 'name' => 'tags', 'label' => __('models.parent category'), 'foreign' => [ 'class' => Tag::class, 'model' => 'tags', 'column' => 'name', 'order' => [ 'column' => 'order', 'direction' => 'ASC' ], 'conditions' => [ [ 'column' => 'type', 'value' => 'seitenkategorie', ], ], 'linkedList' => [ ] ] ], 'name' => [ 'label' => __('models.name'), 'type' => 'inputText', 'placeholder' => __('models.category'), 'validation' => [ 'rules' => 'required|min:3', ] ], 'order' => [ 'type' => 'inputHidden', ] ]; // URL options $this->url = 'pagecategory'; $this->route = StringHelper::toURL(__('models.pagecategory')); $this->adminIndexOptions = [ 'orderBy' => 'order', 'orderDirection' => 'ASC', 'paginate' => 10, 'listdata' => [ 'name' => [], 'order' => [ 'label' => __('admin.priority') ], 'updated' => [ 'label' => __('admin.last modified') ] ] ]; parent::__construct(); } }