eab-dsvenss / php-laravel-crud-generator
Package for generating CRUD structure for Laravel models
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 2
pkg:composer/eab-dsvenss/php-laravel-crud-generator
Requires
- php: ^7.0
- backpack/base: ^0.9.2
- backpack/crud: ^3.4
- eab-dsvenss/php-classtailor: dev-master
- eab-dsvenss/php-laravel-model-generator: dev-master
- laravel/framework: 5.5.*
- spatie/laravel-translatable: ^2.2
Requires (Dev)
- codeception/aspect-mock: ^3.0
- codeception/codeception: ^2.4
This package is not auto-updated.
Last update: 2025-10-26 10:53:39 UTC
README
CRUD generator for existing models
Installation
eab-crudgenerator:install
Usage
Configure the models according to the eab-dsvenss/php-laravel-model-generator-package.
Each model in the modelgenerator-configfile that should have a crud-structure generated need to have the key crud appended to the extras array.
Each model that have translatable content should also be appended with translatable in the extras section.
Each translatable model also need to have the following added in a specific model-adjustments file:
public $translatable = ['name'];
That is it needs to have an instance variable with an array specifying the translatable columns as a value. See Spatie laravel-translatable for details regarding a model and how to make it translatable.
Specify which models to generate CRUD operations for in the config-file eab-modelconfig from the eab-dsvenss:php-laravel-model-generator package
by adding a "crud"-key with value true to the modelarray.
Generate CRUD structure
eab-crudgenerator:generate --type="backpack"