Merge branch 'childnoko' of https://github.com/nakazawakan/kikikanri into c_account

このコミットが含まれているのは:
dragon1211 2021-11-04 16:10:43 +09:00
コミット 0ea3e6ebc3
1個のファイルの変更2行の追加1行の削除

ファイルの表示

@ -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);
}
}