first commit

This commit is contained in:
brusnitsyn
2025-11-30 23:04:45 +09:00
commit c9a392f84f
76 changed files with 15085 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<?php
namespace App\Http\Controllers;
abstract class Controller
{
//
}

View File

@@ -0,0 +1,23 @@
<?php
namespace App\Http\Controllers;
use App\Http\Resources\SI\SttMedicalHistoryResource;
use App\Models\SI\SttMedicalHistory;
use Illuminate\Http\Request;
use Inertia\Inertia;
class IndexController extends Controller
{
public function index(Request $request)
{
$pageSize = $request->get('pageSize', 15);
$cards = SttMedicalHistory::query();
$cards = SttMedicalHistoryResource::collection($cards->paginate($pageSize));
return Inertia::render('Home/Index', [
'cards' => $cards,
]);
}
}