how redirect page on refresh in laravel\ code example
Example 1: laravel redirect to previous page
url()->previous()
Example 2: how to redirect to another page after login in laravel
$this->redirectTo = route('dashboard');
url()->previous()
$this->redirectTo = route('dashboard');