I am using Tenancy for Laravel but failing to use sanctum on subdomains as I have to define SESSION_DOMAIN and SANCTUM_STATEFUL_DOMAINS wildcard or related to the Main domain. Anyone can help me out.
Asked
Active
Viewed 117 times
1
-
You could try `parse_url($_SERVER['HTTP_HOST']);` instead for the domain, i don't know if it gonna work but worth a try – Lk77 Sep 02 '22 at 06:42
-
Already tried got " ErrorException" = Undefined array key "HTTP_HOST" – Md Eshan Sep 02 '22 at 08:26