so insert may be from direct DB query builder. I did not find any clear documentation on this. That is the reason i posted it here.
I think so yes. From official docs:
App\Flight::create(['name' => 'Flight 10']);
is for mass assignment on Eloquent class
DB::table('users')->insert(['email' => '[email protected]', 'votes' => 0]);
is used with query builder
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community