Support the ongoing development of Laravel.io →
ammont

ammont

Joined 10 Feb 2014

Statistics

Threads 7
Replies 8
Solutions 1
Articles 0

Laravel Session Gets Expired Randomly

Hi Guys, We have this problem on our website (we use laravel 4.1) that sometimes the session gets ex...

0 Likes
0 Replies

Issue with Login on Subdomains

Hi Guys, I have a laravel website which has several subdomains like job.example.com, blog.example.co...

0 Likes
2 Replies

Raw statement in Laravel's Eloquent whereIn method

I would simply like to run such query: select * from `users` where SUBSTRING_INDEX(`email`, '@' ,-1)...

0 Likes
0 Replies

Inline css in the Laravel mailer for email views

Hi Guys, I'm using laravel layouts and templating language for my email views, I need to Inline the...

0 Likes
4 Replies

Order by pivot table attribute in Eloquent

Hi Guys I have this query: $user = Auth::user(); $user->jobs()->get(); where jobs is a bel...

0 Likes
6 Replies
Solved
replied 11 years ago

Joined table IDs are returned in the Model Collection instead of the main table IDs

gilr said: You can try to execute the sql query under phpmyadmin, you should see that the resulting...

0 Likes
replied 11 years ago

Joined table IDs are returned in the Model Collection instead of the main table IDs

It seems that laravel is putting the 'locations.id' as the $job->id instead of 'jobs.id', maybe a...

0 Likes
replied 11 years ago

Joined table IDs are returned in the Model Collection instead of the main table IDs

jazpur said: Try putting the columns in your get(). Like: ->get (['jobs.*']) tried, no help.

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.