1234567891011121314151617 |
- <?php
- namespace App\Http\Requests\Admin;
- use Illuminate\Foundation\Http\FormRequest;
- class RoleRequest extends FormRequest
- {
- public function rules()
- {
- return [
- 'name' => 'required|string',
- 'description' => 'required|string',
- 'permissions' => 'exists:permissions,name',
- ];
- }
- }
|