C.A.R. 911 uses Laravel’s built-in authentication system to secure access to the application. The authentication system handles user login, logout, registration, and password reset functionality.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/exechoko/dashboard_roles/llms.txt
Use this file to discover all available pages before exploring further.
Login System
The login system is managed by theLoginController which uses Laravel’s AuthenticatesUsers trait.
Login Controller
The authentication controller is located at:The system uses the
guest middleware to prevent authenticated users from accessing login pages. The exception is the logout route, which requires authentication.Login Flow
Submit Credentials
Enter your email and password. The system validates credentials using Laravel’s authentication mechanism.
Middleware Protection
The LoginController applies middleware to control access:Logout Functionality
The logout functionality is included in theAuthenticatesUsers trait. Users can log out by accessing the logout route, which is protected by authentication middleware.
Password Reset
C.A.R. 911 includes a complete password reset system for users who forget their credentials.Forgot Password
TheForgotPasswordController handles password reset email requests:
Reset Password Flow
Request Reset Link
Users request a password reset by providing their email address. The system sends a reset link via email.
Set New Password
Users enter and confirm their new password. The Reference: app/Http/Controllers/Auth/ResetPasswordController.php:9-30
ResetPasswordController processes the request:Authentication Routes
Laravel’s authentication routes are registered using:GET|POST /login- Login page and authenticationPOST /logout- Logout functionalityGET|POST /register- User registrationGET|POST /password/reset- Password reset requestGET|POST /password/email- Send password reset email
Protected Routes
All application routes are protected by theauth middleware:
Users must be authenticated to access any route within the middleware group. Unauthenticated users are automatically redirected to the login page.
User Model
The User model extends Laravel’sAuthenticatable class and includes authentication-related traits: