Merge branch 'childnoko' of https://github.com/nakazawakan/kikikanri into c_account
このコミットが含まれているのは:
コミット
0ea3e6ebc3
|
@ -8,11 +8,12 @@ use Illuminate\Http\Request;
|
|||
trait AuthorizationTrait {
|
||||
public function checkLogin () {
|
||||
$viewpath = str_replace('-', '_', request()->route()->action['prefix']);
|
||||
$loginpage = $viewpath.'/'.($this->getGuard() == 'admins' ? 'login' : 'auth');
|
||||
|
||||
if (Session::has($this->getGuard())) {
|
||||
return redirect($viewpath.'/meeting');
|
||||
}
|
||||
|
||||
return view($viewpath.'/login');
|
||||
return view($loginpage);
|
||||
}
|
||||
}
|
新しいイシューから参照