1. Go to this page and download the library: Download oscabrera/model-repository library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
oscabrera / model-repository example snippets
#[Get(uri: 'models/{id}', name: 'models.read')]
public function read(string $id): JsonResponse
{
return response()->json($this->service->read($id));
}