Laravel belongsTo not working

I have 2 models in my app, 'User' & 'MedicineType' (each User belongs to one MedicineType).

I made the one-to-many relation between two model using belongsTo() and hasMany(). hasMany() relation works perfectly but belongTo() doesn't work. Does anyone know where did I make a mistake?


In Progress 03-11-2019 Awais 427

Please briefly explain why you feel this question should be reported .

Answers (0)

Leave An Answer