Create an authentication API feature using JWT in Laravel for the students table. Architecture: - Use Service and Repository Pattern - Implement StudentAttendanceService - Use database transactions for create operation Requirements: 1️⃣ Use JWT Authentication Use package: tymon/jwt-auth Authentication guard should use JWT driver dont a make migration because i already have students table 2️⃣ Use students Table as Auth User Students table structure: id (bigint, primary key) name (string) email (string, unique) password (string, hashed) school_id (bigint) class_id (bigint) photo (string) address (string) pob (string) gender (string) created_at (timestamp) updated_at (timestamp) 3️⃣ Create Student Model Model name: Student Must implement JWTSubject Use Authenticatable instead of default User Hide password in response Hash password automatically 4️⃣ Configure Auth Set default guard to api Guard driver: jwt Provider model: Student 5️⃣ Create AuthController with endpoints: 🔐 Register Student Endpoint: POST /api/student/register Validate: name required email required & unique password min 6 Return: student data jwt token Login Student Endpoint: POST /api/student/login Validate email & password Return: access_token token_type expires_in student data 👤 Get Profile Endpoint: GET /api/student/me Require JWT Token Return authenticated student data 🚪 Logout Endpoint: POST /api/student/logout Invalidate token 6️⃣ Protect Routes Use middleware: auth:api 7️⃣ Response Format (Standardized) { "success": true, "message": "Login successful", "data": { "student": {}, "access_token": "", "token_type": "bearer", "expires_in": 3600 } }