feat(auth): separate landlord and tenant login experience based on domain
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Successful in 47s
Koori-ERP-Deploy-System / deploy-production (push) Has been skipped

This commit is contained in:
2026-01-15 13:56:11 +08:00
parent 9ce8ff4e06
commit 287ac6faa3
3 changed files with 118 additions and 0 deletions

View File

@@ -14,6 +14,12 @@ class DashboardController extends Controller
{
public function index()
{
$centralDomains = config('tenancy.central_domains', []);
if (in_array(request()->getHost(), $centralDomains)) {
return redirect()->route('landlord.dashboard');
}
$stats = [
'productsCount' => Product::count(),
'vendorsCount' => Vendor::count(),