Scanning routes in laravel

the Laravel application must process the annotations. For this chore, Artisan is used to scan the routes.

The following command is used to scan the routes. The output will be Routes scanned! as shown here:

$ php artisan route:scan

Routes scanned!

The results of this scan will produce a file named routes.scanned.php in the storage/framework directory.

The following code writes to storage/framework/routes.scanned.php file:

$router->get('search-accommodation', [
  'uses' => '[email protected]',
  'as' => NULL,
  'middleware' => [],
  'where' => [],
  'domain' => NULL,


Note that the storage/framework/routes.scanned.php file does not need to be put into source code control as it is generated.


About the author

Deven Rathore

I'm Deven Rathore, a multidisciplinary & self-taught designer with 3 years of experience. I'm passionate about technology, music, coffee, traveling and everything visually stimulating. Constantly learning and experiencing new things.

Pin It on Pinterest