Currently I am using web middleware explicitly, by applying it to group routes like this:
Route::group(['middleware' => 'web'], function () {
Route::get( ... );
});
However, what I am really asking is why, although I am composer-updating my project to 5.2.39, the App\RouteServiceProvider.php file has not been updated to apply the web middleware in all routes.
This is my RouteServiceProvider.php map() function (after updating to 5.2.39)
public function map(Router $router)
{
$router->group(['namespace' => $this->namespace], function ($router) {
require app_path('Http/routes.php');
});
}
Apparently this is not the same as the one in official laravel's github page here.
Should I update it manually? Why has not been updated when running composer-update ?