You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I have issue with this error when try to set relationship #[BelongsTo(Subject::class, 'subject')] on Course model.
When I query Course::with('subject')->query()..
it's showing error "Typed Property Must Not be Accessed Before Initialisation "
Not sure how to fix it.
Tables:
courses : id, name, subject_id
subjects: id, name
Thank you.
The text was updated successfully, but these errors were encountered:
Hello,
I have issue with this error when try to set relationship #[BelongsTo(Subject::class, 'subject')] on Course model.
When I query Course::with('subject')->query()..
it's showing error "Typed Property Must Not be Accessed Before Initialisation "
Not sure how to fix it.
Tables:
courses : id, name, subject_id
subjects: id, name
Thank you.
The text was updated successfully, but these errors were encountered: