Support the ongoing development of Laravel.io →

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 10 years ago
0 Likes
replied 10 years ago

Order by pivot table attribute in Eloquent

Ok I found a solution myself, It's as simple as this: Auth::user()->jobs() ->order...

0 Likes
Solved
replied 10 years ago

Order by pivot table attribute in Eloquent

jarektkaczyk said: Use join because eager loading runs 2nd query, so you'll end up with jobs ordere...

0 Likes
replied 10 years ago

Get view data

revati said: $view = View::make('view', $data); $viewData = $view->getData(); This should work....

0 Likes
replied 10 years ago

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

thepsion5 said: Specify a table alias in your join, like so (using jazpur's example): $collection =...

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.