How to write a route that returns only a view in Laravel
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: