mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 19:14:03 +00:00
Laravel 6 support
This commit is contained in:
parent
d23dbf18ce
commit
0049a48383
5 changed files with 9 additions and 5 deletions
|
|
@ -21,8 +21,10 @@ class Domain extends Model implements Contracts\Domain
|
|||
|
||||
protected $guarded = [];
|
||||
|
||||
public static function booted()
|
||||
public static function boot()
|
||||
{
|
||||
parent::boot();
|
||||
|
||||
$ensureDomainIsNotOccupied = function (Domain $self) {
|
||||
if ($domain = Domain::where('domain', $self->domain)->first()) {
|
||||
if ($domain->getKey() !== $self->getKey()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue