lundi 26 décembre 2016

How to properly define the home (/) route in Laravel?

Let's say I am defining the following route in Laravel 5.3:

Route::resource('bands', 'BandController');

The default route example coming when you start a new Laravel project has the following:

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

How do I make bands route to be the default one when no controller is called instead of welcome? Meaning /?

I did read docs here but didn't found anything. Any?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire