feat: Implement DNS management with dedicated models, repositories, requests, controllers, and services, while refactoring authentication by removing Passport and Sanctum.

This commit is contained in:
pbao9
2026-03-09 16:43:06 +07:00
parent 80a5e0ca3d
commit 4e4807dbea
47 changed files with 1905 additions and 1243 deletions
@@ -720,7 +720,9 @@ class CustomerController extends Controller
if (!$customer) {
return back()->withErrors('Invalid request');
}
Auth::guard('users')->login($customer);
// TODO: impersonation feature needs redesign for JWT — session login does not work with JWT guard
// This is a legacy Livewire admin feature; will be removed when portal-admin migration is complete
Auth::guard('client')->login($customer);
session()->put('admin_login_for_customer', true);
@@ -728,7 +730,7 @@ class CustomerController extends Controller
}
public function LogoutWithCustomer()
{
Auth::guard('users')->logout();
Auth::guard('client')->logout();
return redirect()->route('customer.index');
}