Bersihkan cache komposer
composer clearcache
//Then autoload composer
composer dump-autoload
Disgusted Dog
composer clearcache
//Then autoload composer
composer dump-autoload
composer clearcache
#You can also use
composer clear-cache
#which is an alias for clearcache.
$ composer clearcache
composer require VENDOR/PACKAGE --no-cache
Route::get('/clear-cache', function() {
$exitCode = Artisan::call('cache:clear');
// return what you want
});