28 lines
431 B
PHP
28 lines
431 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Modules\Authentication\Http\Requests;
|
||
|
|
|
||
|
|
use Illuminate\Foundation\Http\FormRequest;
|
||
|
|
|
||
|
|
class PermissionUpdateRequest extends FormRequest
|
||
|
|
{
|
||
|
|
public function authorize()
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function rules()
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'name' => 'required|string|max:255',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
|
||
|
|
public function message(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
//
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|