rollback on artisan call command

another solution must be found aprt from calling the CLI version
This commit is contained in:
Olivier Legat 2022-03-20 11:58:49 +01:00
parent bac1ea1386
commit 94befc1f3f

View file

@ -48,7 +48,9 @@ class SettingsController extends Controller
$redirector = redirect()->route('bo.settings')->with('success', 'Modifications enregistrés !');
//all settings saved : cache routes
Artisan::call('route:cache');
//doesn't work : put Ignition routes in route cache
//doesn't execute in the same context as CLI call
//Artisan::call('route:cache');
return $redirector;
}