79825412

Date: 2025-11-20 10:56:41
Score: 1.5
Natty:
Report link

$fillable is a property you put on an Eloquent model to control which fields are allowed for mass assignment but if you don't define $fillable on model and use Model::create($request->all()) will throw exception MassAssignmentException and if you use initialize a model and assign values one by one will not throw error and will work even you don't define $fillable

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): is a
  • Low reputation (1):
Posted by: HamzaWakrim