1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 12:04:03 +00:00

Merge branch '2.x' into saas

This commit is contained in:
Samuel Štancl 2019-10-24 18:46:07 +02:00
commit 0e39bec265

View file

@ -6,6 +6,7 @@ use Stancl\Tenancy\Tenant;
use Stancl\Tenancy\TenantManager; use Stancl\Tenancy\TenantManager;
if (! \function_exists('tenancy')) { if (! \function_exists('tenancy')) {
/** @return TenantManager|mixed */
function tenancy($key = null) function tenancy($key = null)
{ {
if ($key) { if ($key) {
@ -17,6 +18,7 @@ if (! \function_exists('tenancy')) {
} }
if (! \function_exists('tenant')) { if (! \function_exists('tenant')) {
/** @return Tenant|mixed */
function tenant($key = null) function tenant($key = null)
{ {
if (! is_null($key)) { if (! is_null($key)) {
@ -28,6 +30,7 @@ if (! \function_exists('tenant')) {
} }
if (! \function_exists('tenant_asset')) { if (! \function_exists('tenant_asset')) {
/** @return string */
function tenant_asset($asset) function tenant_asset($asset)
{ {
return route('stancl.tenancy.asset', ['path' => $asset]); return route('stancl.tenancy.asset', ['path' => $asset]);