1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 21:54:02 +00:00
This commit is contained in:
Abrar Ahmad 2022-11-25 11:00:22 +05:00
parent a6c0fa21c4
commit c0d0dc99de
10 changed files with 38 additions and 36 deletions

View file

@ -5,10 +5,16 @@ declare(strict_types=1);
namespace Stancl\Tenancy\Features;
use Illuminate\Http\RedirectResponse;
use Stancl\Tenancy\Contracts\TenantUnwareFeature;
use Stancl\Tenancy\Contracts\Feature;
use Stancl\Tenancy\Tenancy;
class CrossDomainRedirect implements TenantUnwareFeature
class CrossDomainRedirect implements Feature
{
public function __construct(
protected Tenancy $tenancy
) {
}
public function bootstrap(): void
{
RedirectResponse::macro('domain', function (string $domain) {