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');


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2oFAlmt
via IFTTT

Aucun commentaire:

Enregistrer un commentaire