Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Code Examples of hasManyThrough

Discover how to use Laravel's hasManyThrough method in real-world applications. Browse 9 examples from popular open-source projects.

9 examples

koel/koel

  • 16858
  • Created Dec 2015
  • Updated Nov 2025

Files in this example

  • app/Models/Artist.php
View full example

akaunting/akaunting

  • 9348
  • Created Sep 2017
  • Updated Nov 2025

Files in this example

  • app/Models/Common/Widget.php
View full example

pterodactyl/panel

  • 8314
  • Created Dec 2016
  • Updated Nov 2025

Files in this example

  • app/Models/Server.php
    • app/Models/Location.php
View full example

pixelfed/pixelfed

  • 6813
  • Created Apr 2018
  • Updated Nov 2025

Files in this example

  • app/Status.php
View full example

Paymenter/Paymenter

  • 1096
  • Created Jul 2024
  • Updated Nov 2025

Files in this example

  • app/Models/AffiliateUser.php
View full example

ploi-deploy/roadmap

  • 527
  • Created May 2022
  • Updated Nov 2025

Files in this example

  • app/Models/Project.php
    • app/Http/Controllers/ItemController.php
View full example

agorakit/agorakit

  • 434
  • Created May 2016
  • Updated Nov 2025

Files in this example

  • app/User.php
View full example

LaraBug/larabug-app

  • 218
  • Created Apr 2021
  • Updated Oct 2023

Files in this example

  • app/Models/Project.php
View full example

nabilhassen/larasense

  • 62
  • Created Nov 2024
  • Updated Oct 2025

Files in this example

  • app/Models/Publisher.php
    • app/Livewire/Publishers/Show.php
View full example

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.