App\Http\Controllers\Frontend\Auth\LoginController::redirectPath PHP Method

redirectPath() public method

Where to redirect users after login
public redirectPath ( ) : string
return string
    public function redirectPath()
    {
        if (access()->allow('view-backend')) {
            return route('admin.dashboard');
        }
        return route('frontend.user.dashboard');
    }