Laravel Route::view tip

Laravel Route::view tip

Did you know? If your route or controller method needs to return a view. You can use Route::view('uri', 'view.name') instead of defining a full route and controller method for returning a simple view. This is particularly useful for static pages like the about, contact, faq pages.