Пример #1
0
 public function __construct(Location $model, User $user, LocationCategory $category)
 {
     parent::__construct();
     $this->model = $model;
     $this->user = $user;
     $this->category = $category;
     $this->userLists = $this->user->where('id', '!=', \Auth::user()->id)->lists('fullname', 'id')->toArray();
     $this->categoryLists = $this->category->whereStatus(0)->lists('location_category', 'id')->toArray();
 }
Пример #2
0
 public function __construct(User $model, Role $role)
 {
     parent::__construct();
     $this->model = $model;
     $this->roles = $role->lists('name', 'id');
 }
Пример #3
0
 public function __construct(LocationCategory $model)
 {
     parent::__construct();
     $this->model = $model;
 }
Пример #4
0
 public function __construct(User $model)
 {
     parent::__construct();
     $this->model = $model;
 }