From 4a643588dd56fe8f31d798dd4c35ef7dbd1c35aa Mon Sep 17 00:00:00 2001 From: edalzell Date: Sat, 21 Nov 2020 22:38:43 -0800 Subject: [PATCH] maybe this will work? --- src/ServiceProvider.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 64938ea..eeba4be 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -16,6 +16,8 @@ public function boot() { parent::boot(); - Statamic::booted(fn () => Forma::all()->each->boot()); + if (! app()->runningInConsole()) { + Statamic::booted(fn () => Forma::all()->each->boot()); + } } }