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
rm -rf ~/.composer/cache
Route::get('/clear-cache', function() {
$exitCode = Artisan::call('cache:clear');
// return what you want
});