redirect to intent url after login laravel code example
Example: redirect to intent url after login laravel
session(['url.intended' => request()->getRequestUri()]);
$this->redirectTo = session()->get('url.intended');
session(['url.intended' => request()->getRequestUri()]);
$this->redirectTo = session()->get('url.intended');