m4tthumphrey / fractal-laravel by m4tthumphrey

Laravel bindings for the Fractal library.
2,440
4
2
Package Data
Maintainer Username: m4tthumphrey
Maintainer Contact: matt@m4tt.co (Matt Humphrey)
Package Create Date: 2014-04-10
Package Last Update: 2014-06-06
Language: PHP
License: MIT
Last Refreshed: 2024-11-22 03:04:55
Package Statistics
Total Downloads: 2,440
Monthly Downloads: 6
Daily Downloads: 0
Total Stars: 4
Total Watchers: 2
Total Forks: 2
Total Open Issues: 0

m4tthumphrey/fractal-laravel

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',