mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 03:11:06 +03:30
23 lines
397 B
PHP
23 lines
397 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use App\Constants\StatusTypeEnum;
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class ChangeStatusRequest extends FormRequest
|
|
{
|
|
public function authorize()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules()
|
|
{
|
|
return [
|
|
'status' => 'required|in:'. StatusTypeEnum::APPROVED .','. StatusTypeEnum::REJECTED
|
|
];
|
|
}
|
|
|
|
}
|