Authentication

Login, registration, and session flow

The authentication flow: login form, credential check, session creation, and protected routes.

Browser
Server
Session
Login Form
Login
PHP
Route::get('/login', [AuthController::class, 'showLogin']);