How to fix Trying to get property 'pivot' of non-object with optional

后端 未结 0 894
别跟我提以往
别跟我提以往 2021-02-16 00:14

I am trying to prefilled form in laravel with an object. when I initialize it, it does not have a pivot, after user fills the form I have to save object with its pivot items. th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题