clear cache laravel and composer

PHP
php artisan cache:clear
php artisan route:clear
php artisan config:clear 
php artisan view:clear Route::get('/clear-cache', function() {
    $exitCode = Artisan::call('cache:clear');
    // return what you want
});
Source

Also in PHP: