mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 15:54:03 +00:00
remove dead code
This commit is contained in:
parent
97ccbbe1f9
commit
7572911d87
2 changed files with 2 additions and 21 deletions
|
|
@ -1,19 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stancl\Tenancy\Database\Concerns;
|
||||
|
||||
/**
|
||||
* @property-read string $primary_domain_hostname
|
||||
*/
|
||||
trait PrimaryDomain
|
||||
{
|
||||
// This string should usually come from a relationship implemented by you.
|
||||
abstract public function getPrimaryDomainHostnameAttribute(): string;
|
||||
|
||||
public function route($route, $parameters = [], $absolute = true)
|
||||
{
|
||||
return tenant_route($this->primary_domain_hostname, $route, $parameters, $absolute);
|
||||
}
|
||||
}
|
||||
|
|
@ -93,9 +93,9 @@ if (! function_exists('global_cache')) {
|
|||
}
|
||||
|
||||
if (! function_exists('tenant_route')) {
|
||||
function tenant_route(string $domain, string $route, array $parameters = [], bool $absolute = true): string
|
||||
function tenant_route(string $domain, string $route, array $parameters = []): string
|
||||
{
|
||||
$url = route($route, $parameters, $absolute);
|
||||
$url = route($route, $parameters, absolute: true);
|
||||
|
||||
/**
|
||||
* The original hostname in the generated route.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue