Skip to content

Repository to generate a CRUD system (Controller, model, repository, view using bootstrap, and more) scanning the shema of the database.

Notifications You must be signed in to change notification settings

humbertoplus/clara-entity-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clara entity generator

Installation

composer require ceddyg/clara-entity-generator

Add to your providers in 'config/app.php'

CeddyG\ClaraEntityGenerator\EntityGeneratorServiceProvider::class,

Then to publish the files.

php artisan vendor:publish --provider="CeddyG\ClaraEntityGenerator\EntityGeneratorServiceProvider"

Use

You can select all the table in it and define what file you want :

  • Controller
  • Model
  • Repository (that extend ceddyg/query-builder-repository)
  • Request
  • Index view
  • Form view (to create or edit)
  • Traduction files (en and fr)

You have just to define the relations, if they are hasMany or belongsToMany relations and what files you want to create

You can edit the generator to custom your files. The generator is in app/Services/Clara/Generator and the stubs are in ressources/stubs.

About

Repository to generate a CRUD system (Controller, model, repository, view using bootstrap, and more) scanning the shema of the database.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 91.4%
  • HTML 8.6%