mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:34:03 +00:00
Add docblocks to helpers
This commit is contained in:
parent
d899dcfcce
commit
d4beae32ca
1 changed files with 3 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ use Stancl\Tenancy\Tenant;
|
|||
use Stancl\Tenancy\TenantManager;
|
||||
|
||||
if (! \function_exists('tenancy')) {
|
||||
/** @return TenantManager|mixed */
|
||||
function tenancy($key = null)
|
||||
{
|
||||
if ($key) {
|
||||
|
|
@ -17,6 +18,7 @@ if (! \function_exists('tenancy')) {
|
|||
}
|
||||
|
||||
if (! \function_exists('tenant')) {
|
||||
/** @return Tenant|mixed */
|
||||
function tenant($key = null)
|
||||
{
|
||||
if (! is_null($key)) {
|
||||
|
|
@ -28,6 +30,7 @@ if (! \function_exists('tenant')) {
|
|||
}
|
||||
|
||||
if (! \function_exists('tenant_asset')) {
|
||||
/** @return string */
|
||||
function tenant_asset($asset)
|
||||
{
|
||||
return route('stancl.tenancy.asset', ['path' => $asset]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue