user()->checkPermission("auth.role:update"); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'name' => 'required|string', 'email' => 'required|string', 'role_ids' => 'nullable|array', 'role_ids.*' => 'nullable|integer' ]; } }