Tuesday, April 4, 2017

where are route matches processed in Laravel 4?

Working on a laravel project, here are some sample entries in the /app/routes.php file:

    Route::get('contact',             'StaticController@getContact');

    // Search page
    Route::get('search',              'StaticController@getSearch');

    // Configurator/selection tool
    Route::get('selection-tool',      'StaticController@getConfigurator');

I understand that what's being done is, an array of routes is being built, and then based on matching, the correct one is called. My question is, where does that calling happen? It's obvious the entire routes.php file is processed and the actual selection happens later.



via Oliver Williams

Advertisement