You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@nileshlets Do you use this package in laravel ? If so, the method withCollection will return a instance of Illuminate\Contracts\Routing\ResponseFactory. See EllipseSynergie\ApiResponse\Laravel::withArray(). The purpose of this package is to simplify the way we transform and return the data in the response.
Steps to reproduce
$this->response->withCollection(
$users,
new UserTransformer
);
$array = json_decode($adminUserList);
Expected behavior
It should return an array
Actual behavior
It shows blank. I tested with json_last_error and showing error 4 which means bad syntax.
Server configuration
Ubuntu
Apache
Mysql
PHP 7.0
Client configuration
Chrome
The text was updated successfully, but these errors were encountered: