Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

clear cache command in laravel controller

Route::get('/clear', function () {
        Artisan::call('cache:clear');
        Artisan::call('view:clear');
        Artisan::call('route:clear');
        Artisan::call('clear-compiled');
        Artisan::call('config:cache');
        dd("Cache is cleared");
    });
Source by duckduckgo.com #
 
PREVIOUS NEXT
Tagged: #clear #cache #command #laravel #controller
ADD COMMENT
Topic
Name
3+8 =