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 pivot tables

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

12 examples

monicahq/monica

  • 23656
  • Created Jul 2017
  • Updated Nov 2025

Files in this example

  • app/Models/Instance/Emotion/Emotion.php
    • database/migrations/2018_12_09_145956_create_emotion_call_table.php
View full example

JhumanJ/OpnForm

  • 3005
  • Created Sep 2022
  • Updated Nov 2025

Files in this example

  • app/Models/Workspace.php
    • database/migrations/2022_09_12_074636_remove_access_token_from_workspaces.php
View full example

serversideup/financial-freedom

  • 2748
  • Created Mar 2021
  • Updated Nov 2025

Files in this example

  • app/Models/Transactions/Transaction.php
    • app/Services/Transactions/AddTransaction.php
View full example

agorakit/agorakit

  • 434
  • Created May 2016
  • Updated Nov 2025

Files in this example

  • app/Group.php
    • app/Http/Controllers/GroupMassMembershipController.php
View full example

academico-sis/academico

  • 338
  • Created Dec 2018
  • Updated Nov 2025

Files in this example

  • app/Models/Enrollment.php
    • app/Http/Controllers/ScheduledPaymentController.php
View full example

luadotsh/lua

  • 324
  • Created Oct 2024
  • Updated Oct 2025

Files in this example

  • https://github.com/luadotsh/lua/blob/main/app/Models/Traits/HasWorkspaces.php
    • app/Http/Controllers/Setting/TeamMemberController.php
View full example

LaraBug/larabug-app

  • 218
  • Created Apr 2021
  • Updated Oct 2023

Files in this example

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

jcergolj/laravellte

  • 216
  • Created Jan 2020
  • Updated Feb 2023

Files in this example

  • app/Models/Permission.php
    • database/migrations/2023_03_26_110250_create_permission_role_table.php
      • app/Models/User.php
View full example

aschmelyun/laravel-job-board

  • 174
  • Created Mar 2021
  • Updated Apr 2025

Files in this example

  • app/Models/Listing.php
    • app/Http/Controllers/ListingController.php
View full example

JustinByrne/Mealing

  • 99
  • Created Oct 2020
  • Updated Sep 2022

Files in this example

  • app/Models/Recipe.php
    • resources/views/recipes/show.blade.php
      • database/migrations/2020_12_03_150502_add_quantity_to_ingredient_meal_pivot_table.php
View full example

familytree365/backend

  • 90
  • Created May 2021
  • Updated Aug 2021

Files in this example

  • app/Models/User.php
    • database/migrations/landlord/2021_05_30_082351_create_chat_members_table.php
View full example

archboard/tidal-ptc

  • 4
  • Created Dec 2023
  • Updated Sep 2025

Files in this example

  • app/Models/School.php
    • database/migrations/2023_12_20_075515_create_language_school_table.php
      • app/Http/Controllers/Settings/SaveSchoolLanguagesController.php
        • app/Http/Resources/LanguageResource.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.