php artisan config clear code example
Example 1: laravel artisan clear cache
//laravel artisan clear cache
php artisan view:clear
php artisan cache:clear
php artisan route:clear
php artisan config:clear
Example 2: config clear laravel
php artisan config:clear
Example 3: config clear without artisan
Route::get('/clear-config', function() {
$exitCode = Artisan::call('config:clear');
// return what you want
});