Renaming method on laravel Router because method name has changed

parent 1af34ec8
...@@ -8,7 +8,7 @@ class UpdateMenuRequest extends FormRequest ...@@ -8,7 +8,7 @@ class UpdateMenuRequest extends FormRequest
{ {
public function rules() public function rules()
{ {
$menu = $this->route()->getParameter('menu'); $menu = $this->route()->parameter('menu');
return [ return [
'name' => 'required', 'name' => 'required',
......
...@@ -8,7 +8,7 @@ class UpdateUserRequest extends FormRequest ...@@ -8,7 +8,7 @@ class UpdateUserRequest extends FormRequest
{ {
public function rules() public function rules()
{ {
$userId = $this->route()->getParameter('users'); $userId = $this->route()->parameter('users');
return [ return [
'email' => "required|email|unique:users,email,{$userId}", 'email' => "required|email|unique:users,email,{$userId}",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment