Search
 
SCRIPT & CODE EXAMPLE
 

PHP

remove controller cache laravel

php artisan queue:restart
Comment

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");
    });
Comment

PREVIOUS NEXT
Code Example
Php :: laravel auth login with phone or email 
Php :: store multiple session in laravel 
Php :: laravel csrf token off 
Php :: static modal 
Php :: hasone relation in laravel 
Php :: Add new column to table in mysql using php 
Php :: php get url parameter 
Php :: array prepend php 
Php :: warning illegal string offset 
Php :: laravel group by with where clause 
Php :: laravel redirect url 
Php :: aapanel ubuntu 20.04 
Php :: password validation rules laravel 
Php :: get 2 days before date in php 
Php :: convert array to stdclass object in php example 
Php :: show float laravel blade 
Php :: Wordpress admin settings form 
Php :: run seeder in migration laravel 
Php :: laravel select only some columns relationship 
Php :: move post to draft php wordpress 
Php :: laravel checkbox checked 
Php :: php artisan tinker PsyExceptionRuntimeException Unable to create PsySH runtime directory 
Php :: php imagick xampp windows 
Php :: check if the request is ajax request in laravel 
Php :: get if bowser supports webp php 
Php :: codeigniter 4 redirect with data 
Php :: run xampp application on windows startup 
Php :: laravel default string length migration 
Php :: if browser url is having domain name in it check using php 
Php :: title tag wordpress 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =