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/you-can-set-model-attributes-on-factories-using-the-set-method.md
2022-04-25 13:00:16 +02:00

445 B

title tweet_id thread_slug author_username images created_at slug
You can set model attributes on factories using the set() method 1517561132222844928 weekly-thread-2022-16 justsanjit
https://pbs.twimg.com/media/FQVWw4oXIAAV6Fv.jpg
2022-04-22T17:49:03+00:00 you-can-set-model-attributes-on-factories-using-the-set-method

#Laravel 9.8.0 adds a set() model factory method that allows you to set a single model attribute.