Fix: Add central users table and correct login redirection
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m38s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m38s
- Copy users and roles migrations to central database context - Redirect central domain root to /admin/login - Fix SuperAdminSeeder to include required role_id
This commit is contained in:
@@ -15,7 +15,7 @@ Route::middleware([
|
||||
Route::get('/', function () {
|
||||
$centralDomains = config('tenancy.central_domains');
|
||||
if (in_array(request()->getHost(), $centralDomains)) {
|
||||
return redirect()->route('super-admin.tenants.index');
|
||||
return redirect('/admin/login');
|
||||
}
|
||||
return redirect()->route('admin.session.create');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user