File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 22
33namespace pxlrbt \LaravelDatabaseState ;
44
5- use App \Console \Commands \SeedDatabaseStateCommand ;
65use Illuminate \Console \Events \CommandFinished ;
76use Illuminate \Support \Facades \Artisan ;
87use Illuminate \Support \Facades \Event ;
@@ -26,7 +25,7 @@ public function configurePackage(Package $package): void
2625 Commands \SeedDatabaseStateCommand::class,
2726 ]);
2827
29- if (class_exists ('\Stancl\Tenancy\Concerns\HasTenantOptions ' )) {
28+ if (trait_exists ('\Stancl\Tenancy\Concerns\HasTenantOptions ' )) {
3029 $ package ->hasCommands ([
3130 Commands \SeedTenantsDatabaseStateCommand::class,
3231 ]);
@@ -45,7 +44,6 @@ public function packageBooted()
4544 );
4645 }
4746
48-
4947 public function runDatabaseStateSeeder (CommandFinished $ event ): void
5048 {
5149 if ($ event ->exitCode !== 0 ) {
You can’t perform that action at this time.
0 commit comments