mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
Weekly thread #51
This commit is contained in:
parent
93b528cb9f
commit
179261fceb
19 changed files with 210 additions and 4 deletions
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue