init project

This commit is contained in:
2026-05-25 11:08:52 +07:00
parent a388c619b5
commit 895fdd9b83
1437 changed files with 384844 additions and 27 deletions

View File

@@ -0,0 +1,91 @@
<?php
namespace App\Http\Requests\UpdateRequests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Http\Request;
class SampleUpdateRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'physician_id' => 'required|integer',
'sample_source_id' => 'required|integer',
//'sample_condition' => 'nullable',
//'reject_comment_id' => 'nullable',
'collected_date' => 'required|date',
'received_date' => 'required|date',
'admission_date' => 'required|date',
//'diagnosis' => 'nullable',
//'is_urgent' => 'accepted'
];
}
public function messages()
{
return [
];
}
}

View File

@@ -0,0 +1,39 @@
<?php
namespace App\Http\Requests\UpdateRequests;
use Illuminate\Foundation\Http\FormRequest;
class TestSampleUpdateRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'uid' => 'required',
'test_id' => 'required|integer|min:1',
'sample_type_id' => 'required|integer|min:1',
'group_result' => 'nullable|string',
'heading_id' => 'nullable',
'unit_sign' => 'nullable|string',
'usd_price' => 'nullable',
'wight' => 'nullable',
'filed_type_id' => 'required|integer|min:0',
];
}
}