Support the ongoing development of Laravel.io →
Database Eloquent

Hi,

I have 3 model tables: publishers, authors, and books (many-to-one relation between publishers-authors and authors-books).

I just want to list the publishers of a group of books in a drop down list. For that, I need a query like that it will give the publishers of these books. How can I do that?

Last updated 3 years ago.
0
 {{ Form::select('publishers', $publishers) }} 

should do the trick.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

mehmet mehmet Joined 18 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.