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/example-checking-a-parent-relationship-for-some-things.md
2021-04-06 18:27:18 +02:00

14 lines
No EOL
447 B
Markdown

---
title: 'Example: Checking a parent relationship for some things'
tweet_id: '1308114701415571457'
thread_slug: 1-rt-1-tip
author_username: samuelstancl
images:
- 'https://pbs.twimg.com/media/EidbX_UWAAMeB6-.png'
created_at: 2021-04-06T16:07:45+00:00
slug: example-checking-a-parent-relationship-for-some-things
---
Such as, checking if an Order is locked inside an OrderProduct.
OrderProducts cannot be added to/changed in a locked order.