2017 © Pedro Peláez
 

library php-laravel-crud-generator

Package for generating CRUD structure for Laravel models

image

eab-dsvenss/php-laravel-crud-generator

Package for generating CRUD structure for Laravel models

  • Monday, April 23, 2018
  • by eab-dsvenss
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

php-laravel-crud-generator

CRUD generator for existing models, (*1)

Installation

eab-crudgenerator:install, (*2)

Usage

Configure the models according to the eab-dsvenss/php-laravel-model-generator-package., (*3)

Each model in the modelgenerator-configfile that should have a crud-structure generated need to have the key crud appended to the extras array., (*4)

Each model that have translatable content should also be appended with translatable in the extras section., (*5)

Each translatable model also need to have the following added in a specific model-adjustments file:, (*6)

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., (*7)

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., (*8)

Generate CRUD structure

eab-crudgenerator:generate --type="backpack", (*9)

The Versions