Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Artisan::call for all catch clear in laravel

//Clear Cache facade value:
Route::get('/clear-cache', function() {
    $exitCode = Artisan::call('cache:clear');
    return '<h1>Cache facade value cleared</h1>';
});

//Reoptimized class loader:
Route::get('/optimize', function() {
    $exitCode = Artisan::call('optimize');
    return '<h1>Reoptimized class loader</h1>';
});

//Route cache:
Route::get('/route-cache', function() {
    $exitCode = Artisan::call('route:cache');
    return '<h1>Routes cached</h1>';
});

//Clear Route cache:
Route::get('/route-clear', function() {
    $exitCode = Artisan::call('route:clear');
    return '<h1>Route cache cleared</h1>';
});

//Clear View cache:
Route::get('/view-clear', function() {
    $exitCode = Artisan::call('view:clear');
    return '<h1>View cache cleared</h1>';
});

//Clear Config cache:
Route::get('/config-cache', function() {
    $exitCode = Artisan::call('config:cache');
    return '<h1>Clear Config cleared</h1>';
});
Comment

PREVIOUS NEXT
Code Example
Php :: php remove charictors from a string 
Php :: create empty 2d array php 
Php :: get categories wordpress query 
Php :: ext-curl install php 7.2 
Php :: get category post in wordpress 
Php :: php time difference in hours 
Php :: Merge Cell phpoffice phpexcel 
Php :: how to calculate days difference between two dates in php 
Php :: php check for empty string 
Php :: PHP Warning: Version warning: Imagick was compiled against Image Magick version 1654 but version 1650 is loaded. 
Php :: sql repare php 
Php :: blade set variable 
Php :: pdo bindparam string 
Php :: display image in laravel 
Php :: $_GET["name"] 
Php :: php compare two versions return true or false if version is big 
Php :: read-json-data-response-using-php 
Php :: laravel check record exists 
Php :: wordpress get custom post type posts 
Php :: How to pass JavaScript variables to PHP? 
Php :: aravel 8 how to order by using eloquent orm 
Php :: php count amount of times a value appears in array 
Php :: php clone object 
Php :: wc php get product category in product page 
Php :: php random string 
Php :: composer create project version 
Php :: run a server php terminal 
Php :: table has column laravel 
Php :: laravel database select 
Php :: php convert string to url 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =