Skip to content

petenys/laravel-json-api-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PeteNys Laravel Generator

lets say you build a new table and run the migration (invoices)... you then just run the following command

php artisan petenys:json_api Invoice --fromTable --tableName=invoices --relations

builds the Model, Repository, Policy, Observer, Adapter, Schema, Validator and adds the route, json-api-v1 resource and adds the Observer to the ObserverProvider adds all the relations it can figure out from foreign keys as well

--include=controller,tests will also add those objects

or you can call any build by itself... petenys:adapter or petenys:controller or etc

About

Package to generate laravel json-api classes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages