mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 22:44:05 +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 */
|
||||
$class = config('tenancy.models.tenant');
|
||||
|
||||
$model = new $class;
|
||||
|
||||
return $model;
|
||||
return new $class;
|
||||
}
|
||||
|
||||
/** Name of the column used to relate models to tenants. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue