Ejemplo n.º 1
0
 public function __construct(GoalRepo $goals, UserRepo $users, PlanRepo $plans)
 {
     parent::__construct();
     $this->goalsRepo = $goals;
     $this->usersRepo = $users;
     $this->plansRepo = $plans;
 }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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');
 }
Ejemplo 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');
         }
     });
 }
Ejemplo n.º 6
0
 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');
         }
     });
 }
Ejemplo n.º 7
0
 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');
         }
     });
 }
Ejemplo n.º 8
0
 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');
         }
     });
 }
Ejemplo n.º 9
0
 public function __construct(CommentRepo $repo, GoalRepo $goals)
 {
     parent::__construct();
     $this->repo = $repo;
     $this->goalsRepo = $goals;
 }
Ejemplo n.º 10
0
 public function __construct(GoalRepo $goals, StatRepo $stats)
 {
     parent::__construct();
     $this->goalsRepo = $goals;
     $this->repo = $stats;
 }