Добавил Откуда доставлен и поступил от начала заболевания (дата и время)

This commit is contained in:
brusnitsyn
2026-07-07 17:12:01 +09:00
parent a97930f18e
commit dbc1883eaf
7 changed files with 157 additions and 7 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Http;
use Inertia\Inertia;
class FiasController extends Controller
{
public function index(Request $request)
{
$search = $request->input('search');
$response = Http::post(config('fias.url') . '/find', [
'search' => $search,
'filter_by' => [
'level' => '[5,6]',
'isactive' => 1
],
'sort_by' => [
'level' => 'asc'
]
]);
return $response->json();
}
}