Difference between route:clear and route:cache
php artisan route:cache
This command will generate a cached version of our routes. Once the routes are cached,
Laravel
will use the cached version instead of parsing and compiling the routes on each request, which helps to improve the overall performance of your application When we make changes to our routes, we need to regenerate it to reflect the updated routes
php artisan route:clear
This command will remove the cached routes, and the application will revert to parsing and compiling the routes dynamically
by Valeri Tandilashvili
1 year ago
Laravel
0
Pro tip: use ```triple backticks around text``` to write in code fences