訂定三種角色的登入架構
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user