Answers for "laravel redirect to previous page after login"

PHP
0

laravel redirect to previous page

url()->previous()
Posted by: Guest on September-09-2020
0

how to redirect to another page after login in laravel

protected function authenticated(Request $request, $user) {
	 if ($user->role_id == 1) {
	 	return redirect('/admin');
	 } else if ($user->role_id == 2) {
	 	return redirect('/author');
	 } else {
	 	return redirect('/blog');
	 }
}
Posted by: Guest on July-10-2020

Code answers related to "laravel redirect to previous page after login"

Browse Popular Code Answers by Language