You can write a route that only returns a view in your routes/web.php using the Route::view method instead of closure function inside the Route:get method. See the example below: You can also pass additional data to the view with this method:
In this recent addition in Laravel (since version 8.8), you can use a route controller group instead of using the controller in each route in your routes/web.php file. See the example below: Enjoy!
You can easily eliminate the annoying problem with your URLs in Laravel
This code snippet can be useful in authorizing form requests. For example, you get the post instance from the request and then check the user rights.
If you like to use route names in your Laravel projects, this tip might be helpful to you. You can assign the named method on a route instance to find if the current request was directed to a given named route.