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.
∎