feat(auth): separate landlord and tenant login experience based on domain
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user