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