Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel clear route cache

php artisan cache:clear

php artisan route:cache
  
Comment

how to clear cache in laravel using route file

/*
|=========================================================
| How to clear cache in laravel using route file
|=========================================================
*/

// LINK STORAGE
Route::get('/artisan/link-storage', function () {
    Artisan::call('storage:link');
    return "Done - storage linked";
});

// CLEAR CACHE
Route::get('/artisan/clear-cache', function() {
    Artisan::call('cache:clear');
    return "Done - cache are cleared";
});

// CLEAR ROUTES
Route::get('/artisan/route-cache', function() {
    Artisan::call('route:cache');
    return "Done - routes cache are cleared";
});

// CLEAR VIEWS
Route::get('/artisan/views-clear', function() {
    Artisan::call('view:clear');
    return "Done - views are cleared from cache";
});
Comment

PREVIOUS NEXT
Code Example
Php :: php start session if not started 
Php :: ubuntu restart php-fpm 
Php :: error reporting in php 
Php :: install php8.1 
Php :: how to check laravel version 
Php :: env clear cache laravel 
Php :: check directory exists in php 
Php :: php header utf8 json 
Php :: timestamp false in laravel 
Php :: codeigniter order by 
Php :: php filter validate email 
Php :: htaccess post max size 
Php :: wordpress get theme uri 
Php :: wp error log config 
Php :: laravel catch exception ex log save 
Php :: laravel check collection not empty 
Php :: How to check even or odd number in php 
Php :: laravel get current domain 
Php :: PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: 
Php :: laravel ui auth 
Php :: serve php file 
Php :: str slug laravel 
Php :: php document root 
Php :: php get referrer 
Php :: close mysql connection in php 
Php :: php code to convert to small letter 
Php :: php filter emal 
Php :: php.ini settings 
Php :: laravel https assets 
Php :: first character uppercase php 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =