Tools to use with Professional Laravel APIs

v1.0.7 2021-11-22 17:28 UTC

This package is auto-updated.

Last update: 2024-04-22 22:28:00 UTC


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.