phpvms/app/Http/Requests/CreateRoleRequest.php

20 lines
299 B
PHP
Raw Normal View History

<?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;
}
}