mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 15:14:04 +00:00
Remove Facade suffix from facades, fix #386
This commit is contained in:
parent
d900929264
commit
d684931b3c
5 changed files with 10 additions and 11 deletions
20
src/Facades/Tenant.php
Normal file
20
src/Facades/Tenant.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stancl\Tenancy\Facades;
|
||||
|
||||
use Illuminate\Support\Facades\Facade;
|
||||
|
||||
class Tenant extends Facade
|
||||
{
|
||||
protected static function getFacadeAccessor()
|
||||
{
|
||||
return Tenant::class;
|
||||
}
|
||||
|
||||
public static function create($domains, array $data = []): \Stancl\Tenancy\Tenant
|
||||
{
|
||||
return Tenant::create($domains, $data);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue