40 lines
905 B
PHP
40 lines
905 B
PHP
<?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',
|
|
];
|
|
}
|
|
|
|
}
|