24 lines
435 B
PHP
24 lines
435 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Ppm;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class RejectApplicationRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return $this->user()?->hasRole('PPM') === true;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'reason' => ['required', 'string', 'max:1000'],
|
|
];
|
|
}
|
|
}
|