Skip to content

Releases: nafiesl/SimpleCrudGenerator

4.4.0 - Add --parent-model Command Option

22 Mar 13:31
97ad278

Choose a tag to compare

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

17 Oct 14:26
9a33b8e

Choose a tag to compare

Added

  • Generate views with Bootstrap 5 classes.
  • New command option --bs4 to generate CRUD files with Bootstrap 4 views.
  • New command option --bs5 to 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

11 Jun 03:54
ff91c41

Choose a tag to compare

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

06 Mar 03:46
e6be8cf

Choose a tag to compare

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 --uuid with --form-requests options.

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

14 Nov 09:09
cf3ca8a

Choose a tag to compare

Added

  • None

Changed

  • Lang files code style.

Fixed

  • Invalid user model use namespace on the generated model factory.

Removed

  • None

2.4.0

22 Jul 02:11
7063469

Choose a tag to compare

Added

Changed

  • Use __('app.create') for the create form button.

Fixed

  • Set uuid ID column as a table primary key

Removed

  • Class docblocks

2.3.2 - Add primary method on migration for UUID

20 Apr 14:50

Choose a tag to compare

Added

Changed

Fixed

  • Add primary method on migration for UUID

Removed

2.3.1 - Resolving DB Factory Namespace Issue on Laravel 8.x

20 Apr 07:45
cf4be00

Choose a tag to compare

Added

Changed

Fixed

  • Resolving DB Factory Namespace Issue on Laravel 8.x #40

Removed

2.3.0 - Generate CRUD with UUID Primary Key

16 Apr 14:23
16ccf65

Choose a tag to compare

Added

  • Generate CRUD with UUID Primary Key #38

Changed

  • none

Removed

  • none

2.2.1 - Bugfix: Prevent Content Overrides for the Existing Models

15 Mar 15:18
1d505bf

Choose a tag to compare

  • Bugfix: Prevent Content Overrides for the Existing Models #35