Updated to v1.2.6

This commit is contained in:
Henry Whitaker
2020-04-21 23:41:44 +01:00
parent 4fa6d2d366
commit 229bb30cf5
12 changed files with 131 additions and 29 deletions

View File

@@ -15,7 +15,7 @@ class SpeedtestController extends Controller
{
public function index()
{
$data = Speedtest::orderBy('id', 'desc')
$data = Speedtest::orderBy('created_at', 'desc')
->paginate();
return response()->json([
@@ -40,6 +40,7 @@ class SpeedtestController extends Controller
}
$data = Speedtest::where('created_at', '>=', Carbon::now()->subDays($days))
->orderBy('created_at', 'asc')
->get();
return response()->json([