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