⚖️ Law Farm Backend API

Comprehensive REST API for Law Firm Management

Built with Laravel 12.40.2 & Laravel Sanctum

Total Users

4

Courts

16

Cases

0

Total Records

0

📚 Quick Links

🔌 API Endpoints

Authentication (6 endpoints)

POST

Register User

/api/register
POST

Login

/api/login
POST 🔒 Auth

Logout

/api/logout
GET 🔒 Auth

Get User

/api/user
PUT 🔒 Auth

Update User

/api/user
POST 🔒 Auth

Change Password

/api/change-password

Users (2 endpoints)

GET 🔒 Auth 👑 Admin

Get All Users

/api/users
DELETE 🔒 Auth 👑 Admin

Delete User

/api/users/{id}

Courts (6 endpoints)

GET 🔒 Auth

List Courts

/api/courts
POST 🔒 Auth

Create Court

/api/courts
GET 🔒 Auth

Get Court

/api/courts/{id}
PUT 🔒 Auth

Update Court

/api/courts/{id}
DELETE 🔒 Auth

Delete Court

/api/courts/{id}
POST 🔒 Auth

Bulk Create Courts

/api/courts/bulk

Cases (10 endpoints)

GET 🔒 Auth

List Cases

/api/cases
POST 🔒 Auth

Create Case

/api/cases
GET 🔒 Auth

Get Case

/api/cases/{id}
PUT 🔒 Auth

Update Case

/api/cases/{id}
DELETE 🔒 Auth

Delete Case

/api/cases/{id}
POST 🔒 Auth

Bulk Create Cases

/api/cases/bulk
GET 🔒 Auth

Get Case with Clients

/api/cases/{id}/with-clients
GET 🔒 Auth

Get Case with Clients & Parties

/api/cases/{id}/with-clients-parties
GET 🔒 Auth

Get Case with All Details

/api/cases/{id}/with-all-details
GET 🔒 Auth

Get All Cases with Details

/api/cases/all/with-all-details

Case Clients (6 endpoints)

GET 🔒 Auth

List Case Clients

/api/case-clients
POST 🔒 Auth

Create Case Client

/api/case-clients
GET 🔒 Auth

Get Case Client

/api/case-clients/{id}
PUT 🔒 Auth

Update Case Client

/api/case-clients/{id}
DELETE 🔒 Auth

Delete Case Client

/api/case-clients/{id}
POST 🔒 Auth

Bulk Create Case Clients

/api/case-clients/bulk

Case Parties (6 endpoints)

GET 🔒 Auth

List Case Parties

/api/case-parties
POST 🔒 Auth

Create Case Party

/api/case-parties
GET 🔒 Auth

Get Case Party

/api/case-parties/{id}
PUT 🔒 Auth

Update Case Party

/api/case-parties/{id}
DELETE 🔒 Auth

Delete Case Party

/api/case-parties/{id}
POST 🔒 Auth

Bulk Create Case Parties

/api/case-parties/bulk

Case Hearings (6 endpoints)

GET 🔒 Auth

List Case Hearings

/api/case-hearings
POST 🔒 Auth

Create Case Hearing

/api/case-hearings
GET 🔒 Auth

Get Case Hearing

/api/case-hearings/{id}
PUT 🔒 Auth

Update Case Hearing

/api/case-hearings/{id}
DELETE 🔒 Auth

Delete Case Hearing

/api/case-hearings/{id}
POST 🔒 Auth

Bulk Create Case Hearings

/api/case-hearings/bulk

Case Payments (6 endpoints)

GET 🔒 Auth

List Case Payments

/api/case-payments
POST 🔒 Auth

Create Case Payment

/api/case-payments
GET 🔒 Auth

Get Case Payment

/api/case-payments/{id}
PUT 🔒 Auth

Update Case Payment

/api/case-payments/{id}
DELETE 🔒 Auth

Delete Case Payment

/api/case-payments/{id}
POST 🔒 Auth

Bulk Create Case Payments

/api/case-payments/bulk

Law Farm Backend API - Built with ❤️ using Laravel

Version 1.0.0 | Last Updated: February 2026

Developed by, Rafin Hossain