fix the polygon

This commit is contained in:
2025-09-15 08:47:31 +03:30
parent c86b001ff6
commit 48c0e458ea
8 changed files with 41 additions and 11 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Http\Requests\V3\AccidentReceipt;
use App\Enums\AccidentStates;
use Illuminate\Foundation\Http\FormRequest;
class SubmitInvoiceRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return $this->accident->status === AccidentStates::SABT_FISH->value;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
//
];
}
}