m4tthumphrey / fractal-laravel
Laravel bindings for the Fractal library.
Installs: 2 443
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- illuminate/support: 4.2.*
- league/fractal: 0.8.*
This package is auto-updated.
Last update: 2024-12-12 06:31:12 UTC
README
Laravel bindings for the Fractal library.
Install via Composer
Add the following to your composer.json
file
{
"require": {
"m4tthumphrey/fractal-laravel" : "1.*"
}
}
Then update composer
composer update
Service provider
Add the following line to the array of providers
in app/config/app.php
'm4tthumphrey\FractalLaravel\ServiceProvider',
Facade
If you wish to utilise the facade, add the following line to your aliases
array, also in app/config/app.php
'Fractal' => 'm4tthumphrey\FractalLaravel\Facade',