mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 21:54:02 +00:00
wip
This commit is contained in:
parent
a6c0fa21c4
commit
c0d0dc99de
10 changed files with 38 additions and 36 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue