How To Clear Route Cache In Laravel ?
Hello Friends,
In this blog, I will show you how to clear route cache in laravel application. We will talk about laravel route cache clear example. You will learn laravel 8 clear cache route. This article will give you simple example of laravel 8 cache clear route.
We will look at example of laravel 8 cache clear route. You just need to some step to done laravel 8 route cache clear command.
commerce website with gitlab. I was fetching one issue suddenly my view cache with error during development. i did try lot to refresh and something other but i can't see any more change in my view, but at last I did resolve my problem using laravel command so, let's see i added several command for clear cache from view, route, confir etc.
Clear Cache:
php artisan cache:clear
Clear Route Cache:
php artisan route:cache
Clear View Cache:
php artisan view:cache
Clear Config Cache:
php artisan config:cache
You can also clear route cache without command using route. so you can create route as like bellow:
Route::get('/route-cache-clear', function() {
Artisan::call('route:cache');
dd("route cache clear");
});
It will help you....
- How to Notifications With database Driver in Laravel 11?
- How to Send Email Via Notification in Laravel 11?
- How to Install and Configure Laravel 11 Debugbar?
- How to Like Dislike System in Laravel 11?
- How to Paginate a Model with Relationship in Laravel 11?
- Laravel 11 Upload Files to Amazon S3 Example
- Laravel 11 Send WhatsApp Messages Example
- Laravel 11 Rest API Authentication Using JWT Tutorial