mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 15:54:03 +00:00
Inline return
This commit is contained in:
parent
a60cfd494f
commit
c1679e6057
1 changed files with 1 additions and 3 deletions
|
|
@ -141,9 +141,7 @@ class Tenancy
|
||||||
/** @var class-string<Tenant&Model> $class */
|
/** @var class-string<Tenant&Model> $class */
|
||||||
$class = config('tenancy.models.tenant');
|
$class = config('tenancy.models.tenant');
|
||||||
|
|
||||||
$model = new $class;
|
return new $class;
|
||||||
|
|
||||||
return $model;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Name of the column used to relate models to tenants. */
|
/** Name of the column used to relate models to tenants. */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue