A clean, versioned API boilerplate using Laravel, Sanctum, Spatie Data, and Pest.
- Laravel 12 / PHP 8.3
- Sanctum token auth
- Spatie Data DTOs
- Pest tests
- JSON responses
composer create-project fperdomo/laravel-api-starter-kit my-apigit clone https://github.com/masterfermin02/laravel-api-starter-kit.git my-api
cd my-api
cp .env.example .env
composer install
php artisan key:generate
php artisan migrate
php artisan serveGET /api/v1/auth/me POST /api/v1/auth/login POST /api/v1/auth/logout