lundi 30 septembre 2019

How you pass a named method to the fallback route in Laravel?

In Laravel routing there is fallback method:

Route::fallback(function () {
    //
});

A normal route is somethig like this:

Route::get('/user', 'UserController@list');

There is a way to use the fallback route like this:

Route::fallback('FallbackController@index');


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire