Esempio n. 1
0
 public function __construct(GoalRepo $goals, UserRepo $users, PlanRepo $plans)
 {
     parent::__construct();
     $this->goalsRepo = $goals;
     $this->usersRepo = $users;
     $this->plansRepo = $plans;
 }
Esempio n. 2
0
 public function __construct(PlanRepo $plans, GoalRepo $goals, UserRepo $users, StaffRepo $staff)
 {
     parent::__construct();
     $this->goalsRepo = $goals;
     $this->plansRepo = $plans;
     $this->usersRepo = $users;
     $this->staffRepo = $staff;
 }
Esempio n. 3
0
 public function __construct(UserRepositoryInterface $user, StaffAppointmentRepositoryInterface $appointment, ServiceRepositoryInterface $service, LocationRepositoryInterface $locations, StaffRepositoryInterface $staff)
 {
     parent::__construct();
     $this->user = $user;
     $this->staff = $staff;
     $this->service = $service;
     $this->appointment = $appointment;
     $this->locations = $locations;
 }
Esempio n. 4
0
 public function __construct(StaffScheduleRepositoryInterface $schedule, ServiceRepositoryInterface $service, UserRepositoryInterface $user, StaffAppointmentRepositoryInterface $appointment, StaffRepositoryInterface $staff, LocationRepositoryInterface $location)
 {
     parent::__construct();
     $this->schedule = $schedule;
     $this->service = $service;
     $this->user = $user;
     $this->appointment = $appointment;
     $this->staff = $staff;
     $this->location = $location;
     $this->icons = Config::get('icons');
 }
Esempio n. 5
0
 public function __construct(UserRepositoryInterface $user)
 {
     parent::__construct();
     $this->user = $user;
     $this->beforeFilter(function () {
         if (\Auth::user() === null) {
             // Push the intended URL into the session
             \Session::put('url.intended', \URL::full());
             return Redirect::route('home')->with('message', "You must be logged in to continue.")->with('messageStatus', 'danger');
         }
     });
 }
 public function __construct(LocationRepositoryInterface $locations, LocationValidator $validator)
 {
     parent::__construct();
     $this->locations = $locations;
     $this->validator = $validator;
     $this->beforeFilter(function () {
         if (Auth::user() === null) {
             // Push the intended URL into the session
             Session::put('url.intended', URL::full());
             return Redirect::route('home')->with('message', "You must be logged in to continue.")->with('messageStatus', 'danger');
         }
     });
 }
 public function __construct(ServiceRepositoryInterface $service, StaffRepositoryInterface $staff, LocationRepositoryInterface $locations)
 {
     parent::__construct();
     $this->staff = $staff;
     $this->service = $service;
     $this->locations = $locations;
     $this->beforeFilter(function () {
         if (\Auth::user() === null) {
             // Push the intended URL into the session
             \Session::put('url.intended', \URL::full());
             return Redirect::route('home')->with('message', "You must be logged in to continue.")->with('messageStatus', 'danger');
         }
     });
 }
 public function __construct(CreditRepositoryInterface $credits, UserRepositoryInterface $users, CreditValidator $validator, StaffRepositoryInterface $staff)
 {
     parent::__construct();
     $this->staff = $staff;
     $this->users = $users;
     $this->credits = $credits;
     $this->validator = $validator;
     $this->beforeFilter(function () {
         if (\Auth::user() === null) {
             // Push the intended URL into the session
             \Session::put('url.intended', \URL::full());
             // Set the flash message
             Flash::error("You must be logged in to continue.");
             return Redirect::route('home');
         }
     });
 }
 public function __construct(CommentRepo $repo, GoalRepo $goals)
 {
     parent::__construct();
     $this->repo = $repo;
     $this->goalsRepo = $goals;
 }
Esempio n. 10
0
 public function __construct(GoalRepo $goals, StatRepo $stats)
 {
     parent::__construct();
     $this->goalsRepo = $goals;
     $this->repo = $stats;
 }