I'm encounter issues that my 'admin/login' still shows up even my admin account already logged in. I checked in RedirectIfAuthenticated.php but it's not working.
`<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class RedirectIfAuthenticated
{
/**
Handle an incoming request.
@param \Illuminate\Http\Request $request
@param \Closure $next
@param string|null $guard
@return mixed
/
public function handle($request, Closure $next, $guard = null)
{
/if (Auth::guard($guard)->check()) {
return redirect('/home');
}*/
Hi guys,
I'm encounter issues that my 'admin/login' still shows up even my admin account already logged in. I checked in RedirectIfAuthenticated.php but it's not working. `<?php
namespace App\Http\Middleware;
use Closure; use Illuminate\Support\Facades\Auth;
class RedirectIfAuthenticated { /**
@return mixed / public function handle($request, Closure $next, $guard = null) { /if (Auth::guard($guard)->check()) { return redirect('/home'); }*/
} } ` I'm using Laravel 5.5. I don't think version can affecting this. Any help?