Minh
0
Q:

clear cache in laravel without artisan

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
 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