public function __construct(DepartmentRepositoryContract $departments) { $this->departments = $departments; $this->middleware('user.is.admin', ['only' => ['create', 'destroy']]); }