訂定三種角色的登入架構

This commit is contained in:
2018-08-07 18:27:50 +08:00
parent 4bbed319f2
commit 4b9b4f1880
2 changed files with 52 additions and 6 deletions

View File

@@ -18,7 +18,9 @@ class LoginController extends Controller
|
*/
use AuthenticatesUsers;
use AuthenticatesUsers{
showLoginForm as traitShowLoginForm;
}
/**
* Where to redirect users after login.
@@ -36,4 +38,47 @@ class LoginController extends Controller
{
$this->middleware('guest')->except('logout');
}
/**
* Show the application's login form.
*
* @return \Illuminate\Http\Response
*/
public function showLoginForm()
{
// return view('auth.login');
// return $this->traitShowLoginForm();
return view('auth.login');
}
/**
* 顯示接案者的登入表單
*
* @return \Illuminate\Http\Response
*/
public function showReceiverLoginForm()
{
return $this->showLoginForm();
}
/**
* 顯示發案者的登入表單
*
* @return \Illuminate\Http\Response
*/
public function showCaseBuilderLoginForm()
{
return $this->showLoginForm();
}
/**
* 顯示網站管理者的登入表單
*
* @return \Illuminate\Http\Response
*/
public function showAdminLoginForm()
{
return $this->showLoginForm();
}
}