routes.stub
TLDR
This file is part of the Demo Projects project and is located at src/Illuminate/Foundation/Console/stubs/routes.stub
. It loads the cached routes by decoding and unserializing the RouteCollection instance and then sets the compiled routes with the loaded information.
Methods
None
Classes
None
<?php
/*
|--------------------------------------------------------------------------
| Load The Cached Routes
|--------------------------------------------------------------------------
|
| Here we will decode and unserialize the RouteCollection instance that
| holds all of the route information for an application. This allows
| us to instantaneously load the entire route map into the router.
|
*/
app('router')->setCompiledRoutes(
{{routes}}
);