php artisan config clear command code example
Example: config clear without artisan
Route::get('/clear-config', function() {
$exitCode = Artisan::call('config:clear');
// return what you want
});
Route::get('/clear-config', function() {
$exitCode = Artisan::call('config:clear');
// return what you want
});