Laravel Pro Tips
#DB
Laravel tip. If you want to get the list of the columns for a certain table, it's easy.
Povilas Korop | Laravel Courses Creator & Youtuber
#eloquent #models #DB
π Eloquent tip If you need to insert or update a whole bunch of records in a loop, don't use `Model::updateOrCreate`. Instead, use the `DB` facade's `upsert` method to use your database's built-in upsert functionality to do the whole thing in one query!
Kai Sassnowski π₯
#cheatsheet #DB
πA #Laravel DB Cheatsheet Part 1/5 π₯π₯ #PHP πPart 2 coming tomorrow π
Aaron Lumsden π | Indie Hacker Dev
No articles were found.