bigkud
0
Q:

php cache clear in laravel

php artisan cache:clear
php artisan route:clear
php artisan config:clear 
php artisan view:clear 
15
//laravel artisan clear cache 
php artisan view:clear 
php artisan cache:clear
php artisan route:clear
php artisan config:clear
7
//[SAFE] Clears all cache with 1 line! 
php artisan route:clear &&  php artisan view:clear && php artisan config:clear && php artisan cache:clear && php artisan clear-compiled
5
php artisan cache:clear
3
php artisan cache:clear
php artisan view:clear
php artisan route:clear
php artisan clear-compiled
php artisan config:cache
1
php artisan view:clear 
2
 Route::get('/clear-cache', function() {
     $exitCode = Artisan::call('cache:clear');
     return 'Application cache cleared';
 });
0
 Route::get('/route-cache', function() {
     $exitCode = Artisan::call('route:cache');
     return 'Routes cache cleared';
 });
0

Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in C:\xampp\htdocs\project\datatable\Laravel-Datatables-Demo\bootstrap\app.php:14
Stack trace:
#0 C:\xampp\htdocs\project\datatable\Laravel-Datatables-Demo\artisan(20): require_once()
#1 {main}
  thrown in C:\xampp\htdocs\project\datatable\Laravel-Datatables-Demo\bootstrap\app.php on line 14
0

New to Communities?

Join the community