2.0 documentation

Orchestra\Facile simplify the need to create API based response in your Laravel 4 application, with just the following code you are able to return multi format Response, either it be HTML (using View), json or etc.

Installation

To install through composer, simply put the following in your composer.json file:

{
    "require": {
        "orchestra/facile": "2.0.*"
    }
}

Configuration

Next add the service provider in app/config/app.php.

'providers' => array(

    // ...

    'Orchestra\Facile\FacileServiceProvider',
),

You might want to add Orchestra\Support\Facades\Facile to class aliases in app/config/app.php:

'aliases' => array(

    // ...

    'Facile' => 'Orchestra\Support\Facades\Facile',
),

Resources