When doing simply this:
Route::get('users/{user}', function($user) {
return User::find($user);
});
I get this:
However if I use a Transformer, it changes and I can't seem to find the option to change it back:
API::transform('Users' 'UserTransformer');
Any way to achieve this?
When doing simply this:
I get this:
{ "user": { } }However if I use a Transformer, it changes and I can't seem to find the option to change it back:
{ "data": { } }Any way to achieve this?