Releases: ahmedesa/laravel-api-tool-kit
2.2.0 - Laravel 12 Support
What's Changed
- Update Handler to return responseConflictError when ConflictHttpException (#49) by @brainmangv in #50
- Laravel 12.x Compatibility by @laravel-shift in #51
New Contributors
- @brainmangv made their first contribution in #50
- @laravel-shift made their first contribution in #51
Full Changelog: 2.1.6...2.2.0
2.1.6
2.1.5 - Laravel 11 support
Support Laravel 11.json (#45)
2.1.4
2.1.3
New Feature: Custom File Locations for API Generator
Introducing a powerful addition to the API Toolkit: create custom file locations for API groups easily. This feature allows you to structure your codebase precisely as your project demands.
How It Works
When generating a new group with the API Generator, specify custom locations for models, controllers, and more. Enjoy a flexible and well-organized codebase tailored to your project needs.
Documentation
For details on using this feature, refer to the documentation. Here
Quick Guide
Open config/api-tool-kit.php
.
Under groups_files_paths
, define custom file locations for each file type in your new group.
Example Configuration:
'groups_files_paths' => [
'v1' => [
GeneratorFilesType::MODEL => [
'folder_path' => app_path('Models'),
'file_name' => '{ModelName}.php',
'namespace' => 'App\Models',
],
// Add locations for other file types here
],
],
'groups_url_prefixes' => [
'v1' => '/api/v1',
],
Run the command to generate files for the new group:
php artisan api:generate ModelName --all --group=v1
2.1.2
2.1.1
Full Changelog: 2.1.0...2.1.1
2.1.0
What's Changed
Fixed Enum Type Support in Migration Files
In previous versions, there was an issue with using the enum type in migration files. We've now successfully resolved this limitation. With version 2.1.1, you can use the enum type in migration files as demonstrated below:
$table->enum('status', ['Draft', 'Published']);
To take advantage of the improved enum support, use the following command when generating migrations:
php artisan api:generate Model "status:enum(Draft,Published)"
2.0.0
1.1.9
- Expanded test suite for comprehensive unit testing coverage.
- Improved code quality and overall package stability.
- Added new documentation sections to provide clearer usage instructions.
- improve MediaHelpers to enable the upload of images with custom names Media Helpers