public function login() { if (MyAuth::check(2)) { return view("reception.home"); } else { return view("reception.login"); } }
/** * singup page of patient */ public function signup() { if (MyAuth::check(MyAuth::$isPatient)) { return redirect("patient"); } else { return view("patient.signup"); } }
public function signup() { if (MyAuth::check(myAuth::$isPharmacy)) { return redirect("phar"); } else { return view("pharmacy.signup"); } }
/** * 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")); }
public function logout() { MyAuth::logout(); session()->flash("error", "successfully logged out"); return redirect("diag/login"); }