<a onclick="javascript:history.back(); return false;">Назад</a>
public function dataIndex(Request $request, $id)
{
$data = Data::where(['server_id' => $id])->orderByDesc('created_at')->limit($request->get('limit', 25))->get();
$result = $data->sortBy('id')->values()->all();
return response($result);
}