trait HasRoutes (View source)

Properties

protected array $routes
protected array $authenticatedRoutes
protected array $tenantRoutes
protected array $authenticatedTenantRoutes
protected string|Closure|null $homeUrl
protected string[] $domains
protected string $path

Methods

path(string $path)

No description

domain(string|null $domain)

No description

domains(array $domains)

No description

homeUrl(string|Closure|null $url)

No description

routes(Closure|null $routes)

No description

authenticatedRoutes(Closure|null $routes)

No description

tenantRoutes(Closure|null $routes)

No description

authenticatedTenantRoutes(Closure|null $routes)

No description

string
route(string $name, mixed $parameters = [], bool $absolute = true)

No description

string
generateRouteName(string $name)

No description

array
getRoutes()

No description

array
getAuthenticatedRoutes()

No description

array
getTenantRoutes()

No description

array
getAuthenticatedTenantRoutes()

No description

string|null
getHomeUrl()

No description

array
getDomains()

No description

string
getPath()

No description

string|null
getUrl(Model|null $tenant = null)

No description

Details

HasRoutes path(string $path)

No description

Parameters

string $path

Return Value

HasRoutes

HasRoutes domain(string|null $domain)

No description

Parameters

string|null $domain

Return Value

HasRoutes

HasRoutes domains(array $domains)

No description

Parameters

array $domains

Return Value

HasRoutes

HasRoutes homeUrl(string|Closure|null $url)

No description

Parameters

string|Closure|null $url

Return Value

HasRoutes

HasRoutes routes(Closure|null $routes)

No description

Parameters

Closure|null $routes

Return Value

HasRoutes

HasRoutes authenticatedRoutes(Closure|null $routes)

No description

Parameters

Closure|null $routes

Return Value

HasRoutes

HasRoutes tenantRoutes(Closure|null $routes)

No description

Parameters

Closure|null $routes

Return Value

HasRoutes

HasRoutes authenticatedTenantRoutes(Closure|null $routes)

No description

Parameters

Closure|null $routes

Return Value

HasRoutes

string route(string $name, mixed $parameters = [], bool $absolute = true)

No description

Parameters

string $name
mixed $parameters
bool $absolute

Return Value

string

string generateRouteName(string $name)

No description

Parameters

string $name

Return Value

string

array getRoutes()

No description

Return Value

array

array getAuthenticatedRoutes()

No description

Return Value

array

array getTenantRoutes()

No description

Return Value

array

array getAuthenticatedTenantRoutes()

No description

Return Value

array

string|null getHomeUrl()

No description

Return Value

string|null

array getDomains()

No description

Return Value

array

string getPath()

No description

Return Value

string

string|null getUrl(Model|null $tenant = null)

No description

Parameters

Model|null $tenant

Return Value

string|null