lundi 26 novembre 2018

Laravel run route when all is registered

Laravel has great route manager but i want to know how it working

In my example. I have register two router like

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

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

As I know It register a collection with $routes variable in RouteCollection (namespace Illuminate\Routing;) but i don't know how it run when all is registered (I cannot found maybe run method to check all route registered)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire