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/compare-models-using-is-instead-of-directly-comparing-attributes.md
2022-01-07 18:32:23 +01:00

13 lines
No EOL
544 B
Markdown

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