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