You can show a link to the previous page by using url()->previous() in a Blade view

You can show a link to the previous page by using url()->previous() in a Blade view

💡 Check if there's a previous URL when showing error pages instead of linking to static page!

It's incredibly useful if your marketing and app pages share the same error pages! It makes sure your users won't get lost :)

We're writing a book, you can get it for free here.