redirect to previous url laravel code example Example: laravel redirect to previous page url()->previous()