Releases: nafiesl/SimpleCrudGenerator
Releases · nafiesl/SimpleCrudGenerator
4.4.0 - Add --parent-model Command Option
Description
We are adding a new --parent-model option to create a CRUD feature nested with existing model.
Why I Need This?
I often creating a CRUD feature nested with the existing model, like:
- Adding payment history entries for an invoice
- Adding work orders under a project
- Adding attachments under document
- Many more
Since this package was (only) for creating the "first-class citizen" CRUD feature, I always create the nested CRUD feature manually (off course using TDD approach).
I hope this command new --parent-model option can save my time more.
Example
When 1 department has many section, then we are adding a nested controller like so:
Route::resource('departments.sections', Departements\SectionController::class);
So we will have routes like:
GET departments/{department}/sections
GET departments/{department}/sections/{section}
GET departments/{department}/sections/create
POST departments/{department}/sections
GET departments/{department}/sections/{section}
GET departments/{department}/sections/{section}/edit
PATCH departments/{department}/sections/{section}
DELETE departments/{department}/sections/{section}
Including the model, controller, views, feature test, unit tests.
When we run:
php artisan make:crud --parent-model=Department Section
We will have a working Section CRUD feature with title and description attribute under Departments namespace, completed with tests.
4.1.0 - Bootstrap 5 support
Added
- Generate views with Bootstrap 5 classes.
- New command option
--bs4to generate CRUD files with Bootstrap 4 views. - New command option
--bs5to generate CRUD files with Bootstrap 5 views. - New config
config('simple-crud.default_bootstrap_version')to define the default bootstrap version.
Changed
- Default generated views using Bootstrap 5 classes.
Fixed
- None
Removed
- None
4.0.0 - Laravel 10 support
Added
- Support for laravel version 10.x.
Changed
- None
Fixed
- None
Removed
- Remove support for laravel version 9.x and below. For laravel 9.x can use the package version 3.0.x.
3.0.0 - Laravel 9.x support
Added
- Support for laravel version 9.x.
Changed
- Move lang folder out from resources to base directory.
Fixed
- Missing UUID generator for primary key when using
--uuidwith--form-requestsoptions.
Removed
- Remove support for laravel version 8.x and below. For laravel 8.x can use the package version 2.4.x.
2.4.1
2.4.0
2.3.2 - Add primary method on migration for UUID
Added
Changed
Fixed
- Add primary method on migration for UUID
Removed
2.3.1 - Resolving DB Factory Namespace Issue on Laravel 8.x
2.3.0 - Generate CRUD with UUID Primary Key
2.2.1 - Bugfix: Prevent Content Overrides for the Existing Models
- Bugfix: Prevent Content Overrides for the Existing Models #35