You are misusing the select
method because the Role::select(...)
only returns a query object (Builder) and not the result itself.
So need to use the other methods like get
to execute the query and get the actual result.
So you need to write something liek:
$query = Role::select(array('roles.id', ... , 'roles.created_at'));
$roles = $query->get();
return Response::json($roles, 200, array('Content-Type' => 'application/json'));