Example #1
0
 public function __construct(Model $model, $base = 'tag')
 {
     parent::__construct($model, $base);
     $this->breadcrumb2Icon = 'tag';
     $this->fields = array_except($this->model->getFields(), ['id']);
     $this->view->share();
 }
Example #2
0
 public function __construct(Model $model, $base = 'permalink')
 {
     parent::__construct($model, $base);
     $edited = ['title' => 'title', 'postable_type' => 'type', 'postable_id' => 'id'];
     $this->breadcrumb2Icon = 'link';
     $this->fields = array_merge(array_except($this->model->getFields(), ['id']), $edited);
     $this->withoutAddButton = true;
     $this->view->share();
 }
Example #3
0
 public function __construct(Model $model, Role $role, $base = 'user')
 {
     parent::__construct($model, $base);
     $this->model = $this->model->setAllSites(false);
     $this->role = $role;
     $this->breadcrumb2Icon = 'users';
     $this->fields = array_except($this->model->getFields(), ['id']);
     $this->view->share();
 }
Example #4
0
 public function __construct(Model $model, $base = 'base')
 {
     parent::__construct($model, $base);
     $this->bodyClass = 'skin-blue sidebar-mini sidebar-collapse';
     $this->breadcrumb1 = title_case(trans('livecms::livecms.home'));
     $this->breadcrumb1Icon = 'home fa-lg';
     $this->breadcrumb2 = title_case(trans('livecms::livecms.' . $this->base));
     // $this->breadcrumb2Url   = route($this->baseClass.'.index');
     $this->view->share();
 }
Example #5
0
 public function __construct(Model $model, User $user, Role $role, Setting $setting, $base = 'site')
 {
     $this->user = $user;
     $this->setting = $setting;
     $this->role = $role->where('role', Role::ADMIN)->first()->id;
     parent::__construct($model, $base);
     $this->breadcrumb2Icon = 'globe';
     $this->fields = array_except($this->model->getFields(), ['id']);
     $this->view->share();
 }
Example #6
0
 public function __construct(Model $model, $base = 'post')
 {
     parent::__construct($model, $base);
     $this->breadcrumb2Icon = 'file-o';
     $this->view->share();
 }