Support the ongoing development of Laravel.io →

Towerful

Joined 4 Jan 2015

Statistics

Threads 3
Replies 5
Solutions 0
Articles 0

belongsToMany through belongsToMany with 'faked' pivot table (using an SQL View)

So, this question has been asked a lot, but there has to be a better way of doing it. Using a typica...

0 Likes
1 Replies
posted 9 years ago

Accessing constrained relationship is re-querying the relationship

behaviour is detailed at http://laravel.io/bin/d9vEP (model classes are at the bottom) Basically, I...

0 Likes
2 Replies
posted 9 years ago

Scope based on extra Pivot columns

Hopefully the following code will set up background. class Freelancer extends Eloquent{ public f...

0 Likes
0 Replies
replied 8 years ago

Overriding Eloquent attributes

Could you add a column to the Post table that was JSON (which can be cast to an array). You could th...

0 Likes
replied 8 years ago

belongsToMany through belongsToMany with 'faked' pivot table (using an SQL View)

I think the SQL would look like this: SELECT DISTINCT role_user.user_id as user_id, permission_role....

0 Likes
replied 8 years ago

Polymorphic Relationship with eager loading other relationships

Dont hate me if I missed something, I skimmed your code, and I think I know what you are looking for...

0 Likes
replied 8 years ago

Proper/best way to access user data

There are quite a few things to cover here. Auth::user() is the correct way to get the authenticated...

0 Likes
replied 9 years ago

Accessing constrained relationship is re-querying the relationship

Ooohhh, of course! So when I ->toArray(), 'someRelation' (ie camelCases) renames to 'some_relatio...

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.

© 2024 Laravel.io - All rights reserved.