towerdigital / tools
Tools to use with Professional Laravel APIs
v1.0.7
2021-11-22 17:28 UTC
Requires
- php: ^7.2|^8.0
- illuminate/database: ^8.25
- illuminate/support: ^8.24
- league/fractal: ^0.19.2
README
Installation
To install this package, run the following command:
composer require towerdigital/tools
To generate a Repository:
php artisan make:repository UserRepository --model=User
This will create a new UserRepository class file located in the Repositories
directory. The directory will be created if it doesn't yet exist.
To generate a Transformer:
php artisan make:transformer UserTransformer --model=User
Transformers are a creation from another package league/fractal
that were adopted and applied to Laravel.