Sample Index Page

Laravel

This root page is a simple landing screen so the domain is not blank. The API remains under /api, and this page gives quick pointers for login and protected endpoints.

Login

Send a POST request with email and password to receive a JWT bearer token.

POST /api/login
email: sample@example.com
password: 111111

Register

Create a new user account from the API if you want to test the auth flow from scratch.

POST /api/register
name, email, password
password_confirmation

Protected Calls

Pass the JWT using the Authorization header on protected endpoints.

Authorization: Bearer your_token
GET /api/dashboard
GET /api/waqf-records