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 626
Enjoy all the features. Browse jobs, articles, questions, scholarships and many more! in just one App