trait HasTenancy (View source)

Properties

protected Provider|null $tenantBillingProvider
protected string $tenantBillingRouteSlug
protected bool|Closure $hasTenantMenu
protected string|null $tenantRoutePrefix
protected string|null $tenantDomain
protected string|null $tenantModel
protected string|null $tenantProfilePage
protected string|null $tenantRegistrationPage
protected string|null $tenantSlugAttribute
protected string|null $tenantOwnershipRelationshipName
protected MenuItem[] $tenantMenuItems
protected bool $isTenantSubscriptionRequired

Methods

requiresTenantSubscription(bool $condition = true)

No description

tenantMenuItems(array $items)

No description

tenantMenu(bool|Closure $condition = true)

No description

tenant(string|null $model, string|null $slugAttribute = null, string|null $ownershipRelationship = null)

No description

tenantRoutePrefix(string|null $prefix)

No description

tenantDomain(string|null $domain)

No description

tenantBillingProvider(Provider|null $provider)

No description

tenantBillingRouteSlug(string $slug)

No description

tenantProfile(string|null $page)

No description

tenantRegistration(string|null $page)

No description

bool
hasTenancy()

No description

bool
isTenantSubscriptionRequired()

No description

bool
hasTenantBilling()

No description

bool
hasTenantProfile()

No description

bool
hasTenantRegistration()

No description

bool
hasTenantRoutePrefix()

No description

string|null
getTenantRoutePrefix()

No description

bool
hasTenantDomain()

No description

string|null
getTenantDomain()

No description

Provider|null
getTenantBillingProvider()

No description

string
getTenantBillingRouteSlug()

No description

string|null
getTenantProfilePage()

No description

string|null
getTenantRegistrationPage()

No description

Model
getTenant(string $key)

No description

string|null
getTenantModel()

No description

string|null
getTenantSlugAttribute()

No description

string|null
getTenantBillingUrl(Model $tenant, array $parameters = [])

No description

string|null
getTenantProfileUrl(array $parameters = [])

No description

string|null
getTenantRegistrationUrl(array $parameters = [])

No description

bool
hasTenantMenu()

No description

array
getTenantMenuItems()

No description

string

Details

HasTenancy requiresTenantSubscription(bool $condition = true)

No description

Parameters

bool $condition

Return Value

HasTenancy

HasTenancy tenantMenuItems(array $items)

No description

Parameters

array $items

Return Value

HasTenancy

HasTenancy tenantMenu(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

HasTenancy

HasTenancy tenant(string|null $model, string|null $slugAttribute = null, string|null $ownershipRelationship = null)

No description

Parameters

string|null $model
string|null $slugAttribute
string|null $ownershipRelationship

Return Value

HasTenancy

HasTenancy tenantRoutePrefix(string|null $prefix)

No description

Parameters

string|null $prefix

Return Value

HasTenancy

HasTenancy tenantDomain(string|null $domain)

No description

Parameters

string|null $domain

Return Value

HasTenancy

HasTenancy tenantBillingProvider(Provider|null $provider)

No description

Parameters

Provider|null $provider

Return Value

HasTenancy

HasTenancy tenantBillingRouteSlug(string $slug)

No description

Parameters

string $slug

Return Value

HasTenancy

HasTenancy tenantProfile(string|null $page)

No description

Parameters

string|null $page

Return Value

HasTenancy

HasTenancy tenantRegistration(string|null $page)

No description

Parameters

string|null $page

Return Value

HasTenancy

bool hasTenancy()

No description

Return Value

bool

bool isTenantSubscriptionRequired()

No description

Return Value

bool

bool hasTenantBilling()

No description

Return Value

bool

bool hasTenantProfile()

No description

Return Value

bool

bool hasTenantRegistration()

No description

Return Value

bool

bool hasTenantRoutePrefix()

No description

Return Value

bool

string|null getTenantRoutePrefix()

No description

Return Value

string|null

bool hasTenantDomain()

No description

Return Value

bool

string|null getTenantDomain()

No description

Return Value

string|null

Provider|null getTenantBillingProvider()

No description

Return Value

Provider|null

string getTenantBillingRouteSlug()

No description

Return Value

string

string|null getTenantProfilePage()

No description

Return Value

string|null

string|null getTenantRegistrationPage()

No description

Return Value

string|null

Model getTenant(string $key)

No description

Parameters

string $key

Return Value

Model

string|null getTenantModel()

No description

Return Value

string|null

string|null getTenantSlugAttribute()

No description

Return Value

string|null

string|null getTenantBillingUrl(Model $tenant, array $parameters = [])

No description

Parameters

Model $tenant
array $parameters

Return Value

string|null

string|null getTenantProfileUrl(array $parameters = [])

No description

Parameters

array $parameters

Return Value

string|null

string|null getTenantRegistrationUrl(array $parameters = [])

No description

Parameters

array $parameters

Return Value

string|null

bool hasTenantMenu()

No description

Return Value

bool

array getTenantMenuItems()

No description

Return Value

array

string getTenantOwnershipRelationshipName()

No description

Return Value

string