mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
544 B
544 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| Compare models using is() instead of directly comparing attributes | 1479467936700010504 | weekly-thread-2021-01 | archtechx |
|
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