Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Simple Crud Generator Laravel Package

luthfi/simple-crud-generator

View on GitHub
Deep Wiki
Context7
4.4.0

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

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

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

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

Added

  • None

Changed

  • Lang files code style.

Fixed

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

Removed

  • None
2.4.0

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

Added

Changed

Fixed

  • Add primary method on migration for UUID

Removed

2.3.1

Added

Changed

Fixed

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

Removed

2.3.0

Added

  • Generate CRUD with UUID Primary Key #38

Changed

  • none

Removed

  • none
1.6.2
  • Bugfix: Prevent Content Overrides for the Existing Models #36
2.2.1
  • Bugfix: Prevent Content Overrides for the Existing Models #35
2.2.0
  • [2.x] Publish stub files for customization #30
1.6.0
  • Add feature to publish and use the published stubs files #31
2.1.0
  • Change "name" attribute to "title" #29
  • Add orderBy title column for browse model query #29
2.0.0
  • CRUD generator for Laravel 8.x and Beyond
1.5.0
  • Generate CRUD files for existing model #25 (resolves #24)
  • Update for Laravel 8.x support (mostly for the previous Laravel version upgraded to Laravel 8.x, not for the new Laravel 8.x project) c2f5a88.
1.2.12

This release is created to support laravel projects that has upgraded from laravel 5.7 to 5.8. Since laravel 5.7 using integer increments and laravel 5.8 is using big integer increments.

So, if we are using this package with fresh laravel 5.8 installation, use 1.3.x version. If we are using this package with laravel 5.7 or older, use 1.2.x instead.

1.2.8
1.2.7

In this version, we add --form-requests command option. This option will:

  • Generate CreateRequest and UpdateRequest class in app\Http\Requests\PluralModelName directory.
  • Generate a controller that uses CreateRequest class in store method, and uses UpdateRequest in update method.
1.2.6
  • Separate validation test for name and description fields on create and edit feature.
  • Add validation test on simple feature test.
  • Add validation test on API feature test.
1.2.1

In this release, we support Bootstrap 4, and generate Bootstrap 4 views by default.

  • Add support for Laravel 5.7.
  • Support Bootstrap 4.1.
  • Generates Bootstrap 4 views by default.
  • We can generate Bootstrap 3 views using --bs3 command option.
1.2.0

In this release, we remove the dependency of luthfi/formfield package. So the package will generate basic html structure on each view creations.

Changelog:

  • Use singular entity on controller name, eg. VehicleController instead of VehiclesController.
  • Remove FormField class facade usage. Now this package will generate views in plain html markup.
  • The FormField version of views and forms still can be generated by passing --formfield command option.
$ php artisan make:crud Vehicle --formfield
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui