/** * PageController constructor. * @param PageRepo $pageRepo * @param BookRepo $bookRepo * @param ChapterRepo $chapterRepo */ public function __construct(PageRepo $pageRepo, BookRepo $bookRepo, ChapterRepo $chapterRepo) { $this->pageRepo = $pageRepo; $this->bookRepo = $bookRepo; $this->chapterRepo = $chapterRepo; parent::__construct(); }
/** * ImageController constructor. * @param Image $image * @param File $file * @param ImageRepo $imageRepo */ public function __construct(Image $image, File $file, ImageRepo $imageRepo) { $this->image = $image; $this->file = $file; $this->imageRepo = $imageRepo; parent::__construct(); }
/** * AttachmentController constructor. * @param AttachmentService $attachmentService * @param Attachment $attachment * @param PageRepo $pageRepo */ public function __construct(AttachmentService $attachmentService, Attachment $attachment, PageRepo $pageRepo) { $this->attachmentService = $attachmentService; $this->attachment = $attachment; $this->pageRepo = $pageRepo; parent::__construct(); }
/** * ChapterController constructor. * @param BookRepo $bookRepo * @param ChapterRepo $chapterRepo * @param UserRepo $userRepo */ public function __construct(BookRepo $bookRepo, ChapterRepo $chapterRepo, UserRepo $userRepo) { $this->bookRepo = $bookRepo; $this->chapterRepo = $chapterRepo; $this->userRepo = $userRepo; parent::__construct(); }
/** * Create a new authentication controller instance. * @param SocialAuthService $socialAuthService * @param EmailConfirmationService $emailConfirmationService * @param UserRepo $userRepo */ public function __construct(SocialAuthService $socialAuthService, EmailConfirmationService $emailConfirmationService, UserRepo $userRepo) { $this->middleware('guest', ['only' => ['getLogin', 'postLogin', 'getRegister', 'postRegister']]); $this->socialAuthService = $socialAuthService; $this->emailConfirmationService = $emailConfirmationService; $this->userRepo = $userRepo; parent::__construct(); }
/** * PageController constructor. * @param PageRepo $pageRepo * @param BookRepo $bookRepo * @param ChapterRepo $chapterRepo * @param ExportService $exportService */ public function __construct(PageRepo $pageRepo, BookRepo $bookRepo, ChapterRepo $chapterRepo, ExportService $exportService) { $this->pageRepo = $pageRepo; $this->bookRepo = $bookRepo; $this->chapterRepo = $chapterRepo; $this->exportService = $exportService; parent::__construct(); }
/** * SearchController constructor. * @param PageRepo $pageRepo * @param BookRepo $bookRepo * @param ChapterRepo $chapterRepo * @param ViewService $viewService */ public function __construct(PageRepo $pageRepo, BookRepo $bookRepo, ChapterRepo $chapterRepo, ViewService $viewService) { $this->pageRepo = $pageRepo; $this->bookRepo = $bookRepo; $this->chapterRepo = $chapterRepo; $this->viewService = $viewService; parent::__construct(); }
/** * Create a new controller instance. * * @param SocialAuthService $socialAuthService * @param UserRepo $userRepo */ public function __construct(SocialAuthService $socialAuthService, UserRepo $userRepo) { $this->middleware('guest', ['only' => ['getLogin', 'postLogin']]); $this->socialAuthService = $socialAuthService; $this->userRepo = $userRepo; $this->redirectPath = baseUrl('/'); $this->redirectAfterLogout = baseUrl('/login'); parent::__construct(); }
/** * Create a new authentication controller instance. * @param SocialAuthService $socialAuthService * @param EmailConfirmationService $emailConfirmationService * @param UserRepo $userRepo */ public function __construct(SocialAuthService $socialAuthService, EmailConfirmationService $emailConfirmationService, UserRepo $userRepo) { $this->middleware('guest', ['only' => ['getLogin', 'postLogin', 'getRegister', 'postRegister']]); $this->socialAuthService = $socialAuthService; $this->emailConfirmationService = $emailConfirmationService; $this->userRepo = $userRepo; $this->username = config('auth.method') === 'standard' ? 'email' : 'username'; parent::__construct(); }
/** * Create a new controller instance. * * @param SocialAuthService $socialAuthService * @param EmailConfirmationService $emailConfirmationService * @param UserRepo $userRepo */ public function __construct(SocialAuthService $socialAuthService, EmailConfirmationService $emailConfirmationService, UserRepo $userRepo) { $this->middleware('guest')->except(['socialCallback', 'detachSocialAccount']); $this->socialAuthService = $socialAuthService; $this->emailConfirmationService = $emailConfirmationService; $this->userRepo = $userRepo; $this->redirectTo = baseUrl('/'); $this->redirectPath = baseUrl('/'); parent::__construct(); }
/** * UserController constructor. * @param User $user * @param UserRepo $userRepo */ public function __construct(User $user, UserRepo $userRepo) { $this->user = $user; $this->userRepo = $userRepo; parent::__construct(); }
/** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('guest'); parent::__construct(); }
/** * HomeController constructor. * @param BookRepo $bookRepo */ public function __construct(BookRepo $bookRepo) { $this->bookRepo = $bookRepo; parent::__construct(); }
/** * HomeController constructor. * @param EntityRepo $entityRepo */ public function __construct(EntityRepo $entityRepo) { $this->entityRepo = $entityRepo; parent::__construct(); }
/** * PermissionController constructor. * @param PermissionsRepo $permissionsRepo */ public function __construct(PermissionsRepo $permissionsRepo) { $this->permissionsRepo = $permissionsRepo; parent::__construct(); }