コード例 #1
0
 /**
  * Create a new password controller instance.
  *
  * @param  \Illuminate\Contracts\Auth\Guard  $auth
  * @param  \Illuminate\Contracts\Auth\PasswordBroker  $passwords
  * @return void
  */
 public function __construct(Guard $auth, PasswordBroker $passwords)
 {
     $this->auth = $auth;
     $this->passwords = $passwords;
     $this->middleware('guest');
     SettingsController::smtp();
 }
コード例 #2
0
 /**
  * Create a new authentication controller instance.
  *
  * @param  \Illuminate\Contracts\Auth\Guard  $auth
  * @param  \Illuminate\Contracts\Auth\Registrar  $registrar
  * @return void
  */
 public function __construct(Guard $auth, Registrar $registrar)
 {
     SettingsController::smtp();
     $this->auth = $auth;
     $this->registrar = $registrar;
     $this->middleware('guest', ['except' => 'getLogout']);
 }
コード例 #3
0
 /**
  * Create a new controller instance.
  * Constructor to check
  * @return void
  */
 public function __construct(TicketController $TicketController)
 {
     // mail smtp settings
     SettingsController::smtp();
     // creating a TicketController instance
     $this->TicketController = $TicketController;
 }
コード例 #4
0
 /**
  * Create a new controller instance.
  * constructor to check
  * 1. authentication
  * 2. user roles
  * 3. roles must be agent
  * @return void
  */
 public function __construct()
 {
     SettingsController::smtp();
     // checking authentication
     $this->middleware('auth');
     // checking admin roles
     $this->middleware('roles');
 }
コード例 #5
0
 /**
  * Create a new controller instance.
  * @return type void
  */
 public function __construct()
 {
     // $this->smtp();
     $this->middleware('auth');
     $this->middleware('roles');
     SettingsController::driver();
     SettingsController::host();
     SettingsController::port();
     SettingsController::from();
     SettingsController::encryption();
     SettingsController::username();
     SettingsController::password();
 }
コード例 #6
0
 /**
  * Create a new controller instance.
  * @return type response
  */
 public function __construct()
 {
     SettingsController::smtp();
     $this->middleware('auth');
 }
コード例 #7
0
 public function __construct(TicketController $TicketController)
 {
     SettingsController::smtp();
     $this->TicketController = $TicketController;
 }