Support the ongoing development of Laravel.io →
posted 6 years ago
Last updated 2 years ago.
0

Hello,I think you must store all of your datas as an array,then try save()

$item = ['name'=>"abcd"
         'inv_name' => "abcd",
         ......
         .... 
        ];
    $item->save();
0

Thanks for the idea. Will try. If I replace save() with direct update through DB::update() it works perfect, but I prefer to use the Model semantics for cleaner code.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Panda Gm Panda Gm pandagm Joined 26 Jul 2017

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.