Courses

Eloquent: The Expert Level (Laravel 9)

New Since Laravel 8.x: LatestOfMany

Previous: Use withCount When Just Counting
avatar
Devops, Pentest, S.E.O. Growth Hacker

Thanks for all those cources, I have a question though, with model for companies, companytypes and hotel model, how to structure the db and relations to relate hotels with rentals companytype specific id, this id is in the loop let's say of the companytype model

avatar

Sorry it's hard to answer such questions when you just give it all in one sentence, without a deeper understanding of how you would query such data.

avatar
You can use Markdown
avatar
You can use Markdown