feat: implement gate authentication with login and logout functionality

This commit is contained in:
I-Fun
2026-04-03 11:12:10 +07:00
parent 3f18dbaadf
commit a0b294fa1c
8 changed files with 205 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
declare(strict_types=1);
use App\Http\Controllers\BrandContractController;
use App\Http\Controllers\GateController;
use App\Http\Controllers\NoteController;
use App\Http\Controllers\ClientCategoryController;
use App\Http\Controllers\ClientController;
@@ -18,6 +19,11 @@ use App\Http\Controllers\SearchController;
use App\Http\Controllers\SocialHubController;
use Illuminate\Support\Facades\Route;
// ── Gate Authentication ───────────────────────────────────────────────────────
Route::get('/login', [GateController::class, 'login'])->name('gate.login');
Route::post('/login', [GateController::class, 'attempt'])->name('gate.attempt');
Route::post('/logout', [GateController::class, 'logout'])->name('gate.logout');
Route::get('/', [DashboardController::class, 'index'])->name('dashboard');
// CRM – Clients