mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Add UTF charset
This commit is contained in:
parent
8c15a4e0c6
commit
22fdd05314
|
@ -50,11 +50,9 @@ class ReportsController extends Controller
|
||||||
$offset = request('offset', 0);
|
$offset = request('offset', 0);
|
||||||
$limit = request('limit', 50);
|
$limit = request('limit', 50);
|
||||||
$total = $actionlogs->count();
|
$total = $actionlogs->count();
|
||||||
$actionlogs = $actionlogs->orderBy($sort, $order);
|
$actionlogs = $actionlogs->orderBy($sort, $order)->skip($offset)->take($limit)->get();
|
||||||
$actionlogs = $actionlogs->skip($offset)->take($limit)->get();
|
|
||||||
return (new ActionlogsTransformer)->transformActionlogs($actionlogs, $total);
|
|
||||||
|
|
||||||
|
|
||||||
|
return response()->json((new ActionlogsTransformer)->transformActionlogs($actionlogs, $total), 200, ['Content-Type' => 'application/json;charset=utf8'], JSON_UNESCAPED_UNICODE);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue