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 2
2
3
3
namespace pxlrbt \LaravelDatabaseState ;
4
4
5
- use App \Console \Commands \SeedDatabaseStateCommand ;
6
5
use Illuminate \Console \Events \CommandFinished ;
7
6
use Illuminate \Support \Facades \Artisan ;
8
7
use Illuminate \Support \Facades \Event ;
@@ -26,7 +25,7 @@ public function configurePackage(Package $package): void
26
25
Commands \SeedDatabaseStateCommand::class,
27
26
]);
28
27
29
- if (class_exists ('\Stancl\Tenancy\Concerns\HasTenantOptions ' )) {
28
+ if (trait_exists ('\Stancl\Tenancy\Concerns\HasTenantOptions ' )) {
30
29
$ package ->hasCommands ([
31
30
Commands \SeedTenantsDatabaseStateCommand::class,
32
31
]);
@@ -45,7 +44,6 @@ public function packageBooted()
45
44
);
46
45
}
47
46
48
-
49
47
public function runDatabaseStateSeeder (CommandFinished $ event ): void
50
48
{
51
49
if ($ event ->exitCode !== 0 ) {
You can’t perform that action at this time.
0 commit comments