예제 #1
0
 public function login()
 {
     if (MyAuth::check(2)) {
         return view("reception.home");
     } else {
         return view("reception.login");
     }
 }
예제 #2
0
 /**
  * singup page of patient
  */
 public function signup()
 {
     if (MyAuth::check(MyAuth::$isPatient)) {
         return redirect("patient");
     } else {
         return view("patient.signup");
     }
 }
예제 #3
0
 public function signup()
 {
     if (MyAuth::check(myAuth::$isPharmacy)) {
         return redirect("phar");
     } else {
         return view("pharmacy.signup");
     }
 }
예제 #4
0
 /**
  * signup page of doctor
  */
 public function signup()
 {
     if (MyAuth::check(1)) {
         return redirect("doctor/");
     } else {
         $hosp = DB::connection('centraldb')->select('select * from `Hospitals`');
     }
     return view("doctor.signup", compact("hosp"));
 }
예제 #5
0
 public function logout()
 {
     MyAuth::logout();
     session()->flash("error", "successfully logged out");
     return redirect("diag/login");
 }