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(); }
public function __construct(User $model, Role $role) { parent::__construct(); $this->model = $model; $this->roles = $role->lists('name', 'id'); }
public function __construct(LocationCategory $model) { parent::__construct(); $this->model = $model; }
public function __construct(User $model) { parent::__construct(); $this->model = $model; }