このコミットが含まれているのは:
守矢諏訪子 2021-11-12 16:24:48 +09:00
コミット c179f8fc81
1個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -7,11 +7,11 @@ use Illuminate\Http\Request;
trait AuthorizationTrait { trait AuthorizationTrait {
public function checkLogin () { public function checkLogin () {
$viewpath = request()->route()->action['prefix']; $viewpath = str_replace('-', '_', request()->route()->action['prefix']);
$loginpage = $viewpath.'/'.($this->getGuard() == 'admins' ? 'login' : 'auth'); $loginpage = $viewpath.'/'.($this->getGuard() == 'admins' ? 'login' : 'auth');
if (Session::has($this->getGuard())) { if (Session::has($this->getGuard())) {
return redirect($viewpath.'/meeting'); return redirect(request()->route()->action['prefix'].'/meeting');
} }
return view($loginpage); return view($loginpage);