jimmyhowedotcom jimmyhowedotcom
1

Multiple Pivots?

Hey, what would be the best approach for this scenario... So I want users to be able to create a challenge, then others can take part in this challenge. however the...
hachich46 hachich46
1

One table with multiple pivots tables

Hi everyone, these are relations in my models : Medecine belongsto many Pharmacologic and Pharmacologic belongsto many Medecine Medecine belongsto many Thera...
hachich46 hachich46
2

One table with multiple pivots tables

Hi everyone, these are relations in my models : Medecine belongsto many Pharmaceutic and Pharmaceutic belongsto many Medecine Medecine belongsto many...
GTHell GTHell
3

Multiple pivot table or one pivot table with multiple columns?

What is better when designing a many-to-many relation? For instance, I have a table users has relationship with projects table and the column that has many to many are like...
Tips
3
34
jbowman99 jbowman99
0

Multiple Pivot tables and relationships

I am writing a CRM and I am trying to create several pivot tables to create all of the relationships needed. Users can have several rep_id's so I want to separate these int...
thewoodcutter thewoodcutter
2

ManyToMany not gathering multiple pivot entries

Hi I've been struggling for days now with a many to many relationship where I have profiles and users models. I want to get all the followed profiles that a user is relate...
khkassem khkassem
6

morphToMany morphedByMany adding Multiple Pivot data

Hi I am trying to use polymophed relation with Laravel and Eloquent, My Databse : Employee, EmployeeWorksFor, Section, Department An employee ca...
naviocean naviocean
0

Issue get table with multiple pivot

Hello Guys, Here is my design database: Booking: id, status, transaction BookingItemOfferPair: id, booking_id, item_offer_pair_id...
vitorf7 vitorf7
1

Search on a table with multiple pivot joins

Hi everyone, I am doing a project in which I have the following tables: media_file_downloads | id | user_id | media_file_id | |----|---------|--------...
austenc austenc
0

Is there a better way to set multiple pivot values at once?

I have 3 tables: students, instructors, and instructor_student. The idea is that an instructor can be set as the 'current owner' of...
hcvbrandservices hcvbrandservices
5

Multiple Tag (Pivot Table) Searching

I'm having some trouble finding a solution to something I'm trying to implement. I have an Asset table and a Tags table. An Asset (ex. Image of a family in a pool)...
jabshire jabshire
1

Multiple Joins with Pivot Tables

I have several tables: books (collection of books) authors (collection of authors) publishers (collection of publishers) author_book...
_Zaman _Zaman
20

display pivot table multiple data into blade

Hi, I have a user table, meeting table, and a pivot table meeting_user. I need to show meeting table data and pivot table data. I can display normal foreign key data using...
Laravel
20
154
Dahdoul Dahdoul
2

Save multiple data to pivot table

Hello, I have post where belongs to many categories, I'm trying to save multiple categories for one post to pivot table (category_post), but whenever I submit the p...
Laravel
2
174
ivan2nn ivan2nn
2

Pivot table for multiple many-to-many relationships

I am no expert with databases and I have to face thsir problem. I know how to make a pivot table for many-to-many relationship between two models. I would like to know how...
lovatt lovatt
3

Multiple relationships on one pivot table?

I'm trying to have more than one relationship on a pivot table is this possible? screenshot of schema : http://sna...
FabCol FabCol
13

belongsToMany, pivot table and multiple condition

Hi All, I'm suffering. Not (yet a master at eloquent lol). I have: One table: messageTopics One table: users A belongsToMany relation between both. In table m...
Eloquent
13
258
Colin_Laws Colin_Laws
1

Access Multiple Relationships On A Pivot Model Through A Model Using That Relationship

takes a deep breath yes, it's a lengthy title, I apologize! I have a pivot table that joins three tables together: Users, Accounts, and Permissions....
oliver_s oliver_s
10

update / sync pivot table with multiple primary keys

Hello, i have a problem to handle pivot table with more than 2 primary keys. I have three tables: posts users post_user...
Eloquent
10
368

Inserting into multiple models and a pivot table

I'm trying to create a basic thesaurus. I have a words table, an alternatives table and a alternative_word pivot table. I have a Word model and an Alternative model...
Create a New Discussion Button