In Laravel to register route for all pages except home?

Good evening

For the main page in Laravel there is a simple route:

Route::get('/', function () {
 return view('main');
});


I have a template inner, which needs to connect on all the pages except the main one. How to register for a route?
June 3rd 19 at 19:02
2 answers
June 3rd 19 at 19:04
No way. Routh is the connection of logic with the fact that in the address bar.

If you need to display something in a General pattern everywhere except the main one, it would be logical to place a conditional section is not displayed on the home page.
June 3rd 19 at 19:06
Route::get('/', function () {
 return view('main');
});

// for all other pages through the groups write 
Route::group();

Find more questions by tags Laravel