Backend Overview
The backend is a Laravel 13 application requiring PHP 8.3. It follows Laravel conventions while adding attribute routes, shared responses, and system management models as a foundation for admin development.
Main layers
Authentication and user model
The project uses Laravel Sanctum personal access tokens. AppServiceProvider configures SysAccessToken as the token model, while SysUserModel is the default authenticated user. The frontend reads the token from local storage and sends it as a Bearer token.
Base controller capabilities
BaseController provides shared list-query logic:
- Field filters and quick keyword searches;
- Date-range queries;
- Frontend sorter conversion;
- Controller-level
searchFieldandquickSearchFielddeclarations.
Business controllers remain responsible for model operations, validation, and responses, while RequestJson creates the shared response envelope.
Next steps
- Attribute Routes & Permissions: Declare paths, HTTP methods, and permission keys.
- API Response Conventions: Understand
success,data,msg, andshowType.