petenys/laravel-json-api-generator

PeteNys Laravel JsonApi Generator

Installs: 573

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 2

Open Issues: 0

pkg:composer/petenys/laravel-json-api-generator

dev-master 2020-01-29 23:26 UTC

This package is auto-updated.

Last update: 2025-12-29 03:32:49 UTC


README

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