I'm not 100% clear on what symptoms you're experience that would suggest things are going poorly. However, almost all issues w/ retrieving incomplete data from model relationships for me occurs in how I set up those relationships. I took a peak at yours and you have all entities (Frames, Menus and Banners) pointing to each other with ->belongsToMany(). That may be correct, but I'd make sure that a ->hasMany() relationship isn't required for one of them, or a ->hasManyThrough().
Perhaps you could share your db schema.
Also, if you've set your schema up using standard naming conventions, all you need is ->belongsToMany('Menu'), instead of passing all those arguments in ->belongsToMany('Menu', 'banner_menu', etc, etc). It appears as though you've used standard naming conventions.
yes, it may be a foreign key issue, or a eloquent relationship problem, post ur schema related to the models
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community