towerdigital / tools
Tools to use with Professional Laravel APIs
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/towerdigital/tools
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.