Replies: 1 comment
-
define |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
I have two table "archives" and "archives_permission" and data
and Models/Archives.php
When I use
![1659083092241](https://user-images.githubusercontent.com/5563956/181717339-c1f75729-bc4b-4300-b217-0d473a208741.jpg)
Archives::with(['archivesPermission'])->first()
,then archivesPermission is empty collectionBut When I use
![image](https://user-images.githubusercontent.com/5563956/181717196-11f22e5d-72a8-4af6-925b-a22b54edb2eb.png)
Archives::first()->archivesPermission()->get()
will get correct dataIf I change uuid from "96e45fe0-27d2-499e-8bbc-79c4e1d4d015" to "96d45fe0-27d2-499e-8bbc-79c4e1d4d015", then
Archives::with(['archivesPermission'])->first()
,then archivesPermission will get correct dataSteps To Reproduce:
Beta Was this translation helpful? Give feedback.
All reactions