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

Better Tenant facade

This commit is contained in:
Samuel Štancl 2019-09-19 20:09:06 +02:00
parent 032069af6d
commit cc5822e230

View file

@ -5,13 +5,18 @@ declare(strict_types=1);
namespace Stancl\Tenancy\Facades;
use Illuminate\Support\Facades\Facade;
use Stancl\Tenancy\Tenant as Tenant;
use Stancl\Tenancy\Tenant;
// todo2 rename to CurrentTenant?
class TenantFacade extends Facade
{
protected static function getFacadeAccessor()
{
return Tenant::class;
}
// todo test this
public static function create($domains, array $data): Tenant
{
return Tenant::create($domains, $data);
}
}