Hello everyone! I have the following models. Product.php class Product extends Eloquent { protected...
Solved! I just changed the method name of the relationship to something other than the column name p...
If i do this: echo $p->category()->first()->name; I can get the category. But with this I'...
epetykom said: First for check you can try $p->category, I $p->category is non-object so you...
The Laravel portal for problem solving, knowledge sharing and community building.
The community