Dingo Api Transformer not working properly. Return array instead of the transformer
<p>This is my first Dingo Api implementation. This is my </p>

<p><strong><code>RoleTransformer</code> class</strong></p>

<pre><code>namespace App\Api\V1\Transformers;

use League\Fractal\TransformerAbstract;
use App\Role;

class RoleTransformer extends TransformerAbstract
{

    public function transform(Role $role)
    {

        return [
            'role_id' =&gt; (int)$role-&gt;id,
            'name'    =&gt; $role-&gt;name
        ];
    }

}
</code></pre>

<p><strong>This is <code>RoleController</code></strong></p>

<pre><code>namespace App\Http\Controllers;

use Dingo\Api\Routing\Helpers;
use Illuminate\Http\Request;
use Dingo\Api\Http\Response;
use App\Role;
use App\Http\Requests;
use App\Api\V1\Transformers\RoleTransformer;

class RoleController extends Controller
{
    use Helpers;

    public function index(){
        $roles = Role::all();

        return $this-&gt;response-&gt;collection($roles, new RoleTransformer())
                              -&gt;setStatusCode(200);
    }
}
</code></pre>

<p>Though I was supposed to get only <code>role_id</code> and <code>name</code></p>

<pre><code>[

    {
        "id": 1,
        "name": "admin",
        "display_name": "Admin",
        "description": "Administrator",
        "created_at": "2016-07-18 08:11:44",
        "updated_at": "2016-07-18 08:11:44"
    },
    {
        "id": 2,
        "name": "director",
        "display_name": "Director",
        "description": "Country Manager",
        "created_at": "2016-07-18 08:11:44",
        "updated_at": "2016-07-18 08:11:44"
    },
    {
        "id": 3,
        "name": "manager",
        "display_name": "Manager",
        "description": "Team Manager",
        "created_at": "2016-07-18 08:11:44",
        "updated_at": "2016-07-18 08:11:44"
    }

]
</code></pre>

<p>Not sure what I am doing wrong.</p>

<p>Using Laravel 5.2 and Dingo 1.0.x@dev.</p>