take a look at https://github.com/fico7489/laravel-eloquent-join
this package can help you https://github.com/fico7489/laravel-eloquent-join
take a look on this package https://github.com/fico7489/laravel-eloquent-join
this package can handle this on more elegant way https://github.com/fico7489/laravel-eloquent-join
try with this package https://github.com/fico7489/laravel-pivot
The Laravel portal for problem solving, knowledge sharing and community building.
The community