24 lines
451 B
PHP
24 lines
451 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Admin\Management;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class DeleteRepresentativeRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return $this->user()?->hasRole('Admin') === true;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'note' => ['nullable', 'string', 'max:2000'],
|
|
];
|
|
}
|
|
}
|