1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 20:34:03 +00:00

remove dead code

This commit is contained in:
Samuel Štancl 2024-05-28 02:55:13 +02:00
parent 97ccbbe1f9
commit 7572911d87
2 changed files with 2 additions and 21 deletions

View file

@ -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);
}
}

View file

@ -93,9 +93,9 @@ if (! function_exists('global_cache')) {
} }
if (! function_exists('tenant_route')) { 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. * The original hostname in the generated route.