โ ๏ธ This package is Work In Progress (WIP)
This package is aimed to help developers to quickly generate PHP & TypeScript models, interfaces & classes.
-
Install package
composer require dev-made-it/laravel-model-boiler
-
Publish config file
php artisan vendor:publish --provider="DevMadeIt\Boiler\BoilerServiceProvider"
Run php artisan boiler:all MODEL_NAME
, i.e. php artisan boiler:all User
- Generate PHP annotations for Laravel model
- Generate PHP relations for Laravel model
- Generate Laravel resources & resource collections
- Resource
- Resource annotations
- Resource annotations types
- Resource collection
- Generate resource REST API controllers
- Generate TypeScript from database migrations
- interface
- model
- enums
- custom types