I've been trying to figure out which one to use when, and if I should even use both.
Been looking at Laravel docs and they have both in there. From what I can make out of it, DB::insert()
provides more "tailored" query than DB::table()->insert()
does.
Would anyone be able to clarify what exactly the difference is in the two when it comes to how and when to use which?