Skip to content

towerdigitalservices/tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tools for Building a Professional Laravel API

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.