/** * PublicController constructor. * * @param DepartmentRepository $department * @param EmployeeRepository $employee * @param FileRepository $file */ public function __construct(DepartmentRepository $department, EmployeeRepository $employee, FileRepository $file) { parent::__construct(); $this->department = $department; $this->employee = $employee; $this->file = $file; }
/** * @param Authentication $auth * @param EntryRepository $entry * @param UserRepository $user */ public function __construct(Authentication $auth, EntryRepository $entry, UserRepository $user) { parent::__construct(); $this->auth = $auth; $this->entry = $entry; $this->user = $user; }
/** * PublicController constructor. */ public function __construct() { parent::__construct(); $this->file = app('Modules\\Media\\Repositories\\FileRepository'); $this->user = app('Modules\\User\\Repositories\\UserRepository')->find($this->auth->id()); if ($this->user) { $this->employee = $this->user->employee(); $this->member = $this->user->member(); } }
/** * PublicController constructor. */ public function __construct() { parent::__construct(); $this->file = app('Modules\\Media\\Repositories\\FileRepository'); $this->user = app('Modules\\User\\Repositories\\UserRepository')->find($this->auth->id()); if ($this->user) { $this->employee = $this->user->employee(); $this->member = $this->user->member(); } $this->lastUpdated = Input::has('lastUpdated') ? date("Y-m-d H:i:s", strtotime(Input::get('lastUpdated'))) : '0000-00-00 00:00:00'; }
public function __construct(ModuleRepository $moduleRepository, CategoryRepository $categoryRepository) { parent::__construct(); $this->moduleRepository = $moduleRepository; $this->categoryRepository = $categoryRepository; }
public function __construct() { parent::__construct(); }
public function __construct(PostRepository $post) { parent::__construct(); $this->post = $post; }
public function __construct(ThreadRepository $thread, MessageRepository $message) { parent::__construct(); $this->_thread = $thread; $this->_message = $message; }
public function __construct(EntryRepository $entry, GithubService $githubService) { parent::__construct(); $this->entry = $entry; $this->githubService = $githubService; }
public function __construct(NewsRepository $news, Application $app) { parent::__construct(); $this->news = $news; $this->app = $app; }
public function __construct(TestimonialRepository $testimonial) { parent::__construct(); $this->testimonial = $testimonial; }
/** * @param CompanyRepository $company * @param MemberRepository $member */ public function __construct(CompanyRepository $company, MemberRepository $member) { parent::__construct(); $this->company = $company; $this->member = $member; }
public function __construct(PageRepository $page, Application $app) { parent::__construct(); $this->page = $page; $this->app = $app; }
/** * @param FaqRepository $faq */ public function __construct(FaqRepository $faq) { parent::__construct(); $this->faq = $faq; }