1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 09:04:04 +00:00

Move DatabaseManager

This commit is contained in:
Samuel Štancl 2020-05-30 15:38:29 +02:00
parent 16a598bb17
commit 579779b88b
9 changed files with 13 additions and 27 deletions

View file

@ -19,11 +19,11 @@ trait GeneratesIds
public function getIncrementing()
{
return ! $this->shouldGenerateId();
return ! app()->bound(UniqueIdentifierGenerator::class);
}
public function shouldGenerateId(): bool
{
return app()->bound(UniqueIdentifierGenerator::class);
return ! $this->getIncrementing();
}
}