This commit is contained in:
2022-12-28 06:15:13 +01:00
parent 45b2143353
commit 8c4601144a
146 changed files with 18941 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Person;
use App\Http\Controllers\JsonResponse;
class PersonController extends Controller
{
public function index()
{
$persons = Person::skip(10)
->take(5)
->get();
return response()->json($persons);
}
}