Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel clear route cache

php artisan cache:clear

php artisan route:cache
  
Comment

Laravel clear cache using url

//CLEAR-CACHE
Route::get('/xclean', function() {
    $exitCode1 = Artisan::call('cache:clear');
    $exitCode2 = Artisan::call('view:clear');
    $exitCode3 = Artisan::call('route:clear');
    $exitCode4 = Artisan::call('config:cache');
    dd('CACHE-CLEARED, VIEW-CLEARED, ROUTE-CLEARED & CONFIG-CACHED WAS SUCCESSFUL!');
 });
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 :: Add 5 days to the current date in PHP 
Php :: get domain name laravel 
Php :: Laravel groupby date of created_at 
Php :: setcookie in laravel 8 
Php :: how refresh the record of data in laravel 
Php :: install phpmyadmin linux 
Php :: format datetime ISO php 
Php :: laravel env asset_url 
Php :: Weronika Goretzki 
Php :: laravel print log 
Php :: check file size validation laravel 
Php :: General error: 1709 Index column size too large. The maximum column size is 767 bytes. 
Php :: php cookie never expire 
Php :: artisan mograte particular tabel 
Php :: how to truncate the given string to the specified length in blade.php 
Php :: ctrl + d in vscode in phpstorm 
Php :: table drop foreign php laravel 
Php :: how refresh object in database in laravel 
Php :: setcookie 
Php :: how to use javascript variable in php 
Php :: eloquent model sort by ascending order 
Php :: replace accent php 
Php :: factory laravel tinker 
Php :: woocommerce get product categories 
Php :: foreach total sum 
Php :: PHP Numeric String 
Php :: php exercises and solutions 
Php :: acf wp_query custom field 
Php :: Laravel Validation error message in blade or view 
Php :: Undefined index: HTTP_HOST 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =