liiijabn / laravel-transformer-maker
There is no license information available for the latest version (1.0.0) of this package.
A Laravel 5 package to create model Fractal Transformers
1.0.0
2018-10-30 10:38 UTC
This package is auto-updated.
Last update: 2025-03-29 00:41:12 UTC
README
A Laravel 5 package to create model Fractal Transformers
Installation
composer require liiijabn/laravel-transformer-maker
If your Laravel version is < 5.5, then register the service provider:
// config/app.php
'providers' => [
// ...
Liiijabn\TransformerMaker\TransformerMakeServiceProvider::class,
];
Usage
Artisan make
command:
php artisan make:transformer User
Notice:
You should put models in App/Models
Folder, or change the code use App\Models\User;
in App/Transformers/UserTransform.php
to use App\User;
manually.