Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel login redirect to previous page

public function showLoginForm()
{
    if(!session()->has('url.intended'))
    {
        session(['url.intended' => url()->previous()]);
    }
    return view('auth.login');    
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #login #redirect #previous #page
ADD COMMENT
Topic
Name
9+7 =