Releases: mitulgolakiya/laravel-api-generator
Bug Fixes Release
This release contains minor Bug fixes.
Custom Templates, Fields from File and Search in views
This release contains three new features:
Custom App Namespace & Better migration generation
This release contains two major updates.
- Package can be used with Custom App Namespace. (refer document: https://github.com/mitulgolakiya/laravel-api-generator#using-with-custom-application-namespace)
- Better migration generation where you can give any number of inputs and options e.g.
name:string,255:nullable
amount:float,8,3
user_id:foreign:references,id:on,users:onDelete,cascade
Used Default Exception for API Response
We are no longer using our own APIExceptionsHandler
to send API fail responses and using Laravel's own HttpResponseException
to overcome App\Exceptions\Handler
overwrite problem.
Minor text fix release.
Minor Fields labels fixed.
Soft Delete Trait Added.
This release include generating model with SoftDelete trait.
If you want to use SoftDelete trait with your models then you can specify softDelete option.
e.g.
php artisan mitul.generator:api Post --softDelete
Minor Fixes Release
v1.2.2 minor fixes
Responsive Fields and Delete Confirmation
This release includes some minor fixes and following changes.
- Fields made responsive
- Delete confirmation while deleting a record.
Common Errors file and Namespace Fixes
This release includes common errors.blade.php
for all generated views.
It also contains various bug fixes of namespaces.
API Scaffold Release
New Command introduced to generate API as well Scaffold.
php artisan mitul.generator:scaffold_api Post
OtherBreaking Changes:
- API prefix
api_prefix
support inconfig/generator.php
. - API Controller is now generated in
Http/Controllers/API/
with namespaceApp\Http\Controllers\API
which can be configured as well. (path_api_controller
&namespace_api_controller
).
(Thanks to @anand-patel)