Call to a member function update() on array?? laravel 5.6
Hello Everybody:
I am getting this error "Call to a member function update() on array" and I have no idea why, is it because I am updating an array? I have check other resources similar to this but not much related to array so I am not sure what to do. Thank you in advance
You are assigning a Model to $post and then immediately overwriting that variable with the contents of the request (an array). Everything you have written could be condensed to:
thank you for your answer @tykus , but i don t know why , it doesn't work , i think because i changed the name variables in the second form , i mean the edit.blade.php one . i want to make it with an array , so i did this solution , and doesn t work either :