artisan::command('config:clear') 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
});