# Product Overview

This is a Laravel API application with role-based access control system.

## Core Purpose

-   Provide secure authentication with Laravel Sanctum
-   Manage users with role-based permissions using Spatie Laravel Permission
-   Support flexible role and permission management
-   API-first architecture for frontend integration

## Key Features

-   **Authentication**: Laravel Sanctum token-based authentication
-   **Role Management**: Create, update, and delete roles with permissions
-   **Permission Management**: Granular permission control
-   **User Management**: List users and drivers with role filtering
-   **Multi-role Support**: Admin (full access), Kurir (driver role), User (basic role)
-   **API Documentation**: Auto-generated with Scramble

## Technical Stack

-   Laravel 12.x with PHP 8.2+
-   PostgreSQL database
-   Spatie Laravel Permission for RBAC
-   Laravel Sanctum for API authentication
