20 lines
299 B
PHP
20 lines
299 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use App\Models\Role;
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class CreateRoleRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return Role::$rules;
|
|
}
|
|
}
|