1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/use-the-quietly-methods-to-create-models-without-firing-events-using-your-factories.md
2021-11-19 16:10:01 +01:00

774 B

title tweet_id thread_slug author_username images created_at slug
Use the *quietly() methods to create models without firing events using your factories 1461703827355168772 weekly-thread-2021-46 pascalbaljet
https://pbs.twimg.com/media/FEEXi0zXoAAtd7b.jpg
2021-11-19T14:32:04+00:00 use-the-quietly-methods-to-create-models-without-firing-events-using-your-factories

📝 Here's part 2 of the new Database and Eloquent ORM features in @laravelphp 8.x since the release in September 2020.

One of my favorites is the ability in Model Factories to create models without dispatching any events 🔥

Blog post: https://protone.media/en/blog/database-and-eloquent-orm-new-features-and-improvements-since-the-original-laravel-8-release-22

#Laravel #PHP