Do you add $fillable variable in your category model?
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
$category->update($request->all());
have an issue >_<
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community