Support the ongoing development of →
Requests Input
Last updated 2 years ago.

Do you add $fillable variable in your category model?

Last updated 9 years ago.

barisbora said:

Do you add $fillable variable in your category model?

i think u didnt read my issue

i dont have issue with mass assignment as it work in the second condition

and also it work when i need to store a new category


no need i just find a way

$category->update([ 'name'=> $request->get('name'), 'image' => $request->get('image') ]);

will solve it

i dono why


have an issue >_<


Sign in to participate in this thread!


Your banner here too?

8lbiasian 8lbiasian Joined 6 Apr 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.