/**
  * 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();
 }
Esempio n. 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']);
 }
 /**
  * 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;
 }
 /**
  * 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');
 }
 /**
  * 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();
 }
 /**
  * Create a new controller instance.
  * @return type response
  */
 public function __construct()
 {
     SettingsController::smtp();
     $this->middleware('auth');
 }
 public function __construct(TicketController $TicketController)
 {
     SettingsController::smtp();
     $this->TicketController = $TicketController;
 }