1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
laravel-tips/content/tips/compare-models-using-is-instead-of-directly-comparing-attributes.md
2022-01-07 18:37:55 +01:00

545 B

title tweet_id thread_slug author_username images created_at slug
Compare models using is() instead of directly comparing attributes 1479467936700010504 weekly-thread-2022-01 archtechx
https://pbs.twimg.com/media/FHJNmt3VEAIYtCy.jpg
2022-01-07T15:00:17+00:00 compare-models-using-is-instead-of-directly-comparing-attributes

🔥 Tip: Compare models using ->is() instead of doing direct attribute value comparisons

This is a simpler version of the tip below https://twitter.com/archtechx/status/1465334771349811219