mercredi 25 décembre 2019

Is it possible in laravel 5.5 put protected $guarded = []; to put in controller but not in model? [closed]

I'm using mass-assignment dynamically in controller.

 $mod = 'App\\'.$modelName;
 foreach ($request->fields as $key => $value) {
     $mod::create($value);
 }


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2ZucqVm
via IFTTT

Aucun commentaire:

Enregistrer un commentaire