Laravel Artisan Route Command: The route:clear Command

December 7, 2016 —John Koster

The route:clear command is used to clear any previously generated route cache files. It does this by removing the bootstrap/cache/routes.php cache file. It defines no parameters or options can can be called like so:

1# Clear the route cache file.
2php artisan route:clear

The route:cache command will call the route:clear command before it generates new route cache files. Therefore, calling this command before calling route:cache is not necessary.

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.