mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
12 lines
No EOL
673 B
Markdown
12 lines
No EOL
673 B
Markdown
---
|
|
title: 'There''s great value in understanding how object state of Models works. This is mostly relevant in (Feature) tests because they touch many parts of your codebase in one PHP/Laravel App state'
|
|
tweet_id: '1308082893865005068'
|
|
thread_slug: 1-rt-1-tip
|
|
author_username: samuelstancl
|
|
images:
|
|
- 'https://pbs.twimg.com/media/Eic9xP2XsAoo8ay.png'
|
|
created_at: 2020-09-21T16:37:19+00:00
|
|
slug: theres-great-value-in-understanding-how-object-state-of-models-works-this-is-mostly-relevant-in-feature-tests-because-they-touch-many-parts-of-your-codebase-in-one-phplaravel-app-state
|
|
---
|
|
|
|
For example, use $model->is($anotherModel) to check if they refer to the same row. |