weird behavior or misunderstanding of Laravel relations. I have got a Product model. I getting products with translations and its category. I have defined relations in both models. I can access the data in the model or in the controller. but in view It says non-object.
Trying to get property 'slug' of non-object (View:
https://flareapp.io/share/LPdxbvvP - error.
and here is a weird part.
as you can see here when I do display the category relation out using {{}}. it gives JSON string.
Where did I mess up?!