Support the ongoing development of Laravel.io →
meneman

meneman

Joined 7 May 2014

Statistics

Threads 12
Replies 9
Solutions 1
Articles 0

opposite eloquent method to grabbing related data

I am looking for the opposite of getting all Data that is related in a many to many relations, thus...

0 Likes
5 Replies
Solved

eloquent relations picking elements that are not related

I have 2 tables which are related with a Many to Many relation and the relation table. (users, items...

0 Likes
0 Replies
posted 11 years ago

Indirect modification of overloaded property has no effect

I feel like this is easy to fix, but it gives me a headache. The following code throws the error Ind...

0 Likes
2 Replies
Solved
posted 11 years ago

aquivalent to "->first()"

What is the aquivalent to the first() method of the Eloquent ORM, but where i can choose the positio...

0 Likes
3 Replies
posted 11 years ago

What kind of relation is this and how do i assign it

I've found myself understanding relations the best with pictures, so insteat of explaining the relat...

0 Likes
4 Replies
Solved
replied 9 years ago

Working with Files

Okay, as i have found out the \File facades underlying class actually the Filesystem class which i i...

0 Likes
replied 11 years ago

Best practice - place large queries in model or controller?

Its common to have the your controllers very thin, so they are easy readable and are more SOLID-like...

0 Likes
replied 11 years ago

Building queries with pivot table fields

Hi, i am on my phone so i cant go into Detail, but you should look up "Working with pivots"...

0 Likes
replied 11 years ago

How to use foreign keys in Eloqeunt?

Look up eloquent ORM relations in the laravel docs. If you still have problems afterwards you are at...

0 Likes
replied 11 years ago

opposite eloquent method to grabbing related data

DavidDomain said: This should give you all the entries from game table, that are not equal to the s...

0 Likes

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.

© 2026 Laravel.io - All rights reserved.