Support the ongoing development of Laravel.io →
zam3858

zam3858

Joined 14 Jun 2015

Statistics

Threads 1
Replies 10
Solutions 1
Articles 0

Is there a way to sort whole collection based on related model.

Hi, all. I have a query builder question. I want the result to be sorted by a field in a related mod...

0 Likes
0 Replies
replied 9 years ago

Session issues in Laravel 5.2

i wrote similar code to yours on my fresh 5.2 and the session worked. mine doesn't have that perm mi...

0 Likes
replied 9 years ago

Query Builder - "orderBy()" when fetching data with "with()"

what you want is for the whole collection to be ordered by the customer_name, right? i did something...

0 Likes
replied 9 years ago

Pagination links "Method Not Allowed" after Ajax Request returns paginated view

is your route set correctly? you might be using 'get' for a route that you set as 'post'.

0 Likes
replied 10 years ago

Laravel 5.1 lists() inconsistency? (Eloquent vs Query Builder)

They've updated the docs. to get it to return as array() we'll have to use all(). Applicants::lists(...

0 Likes
replied 10 years ago

Trying to get property of non-object (Ask)

your raw query returns an array of objects. a quick ugly way would be to use $books[0]->title; be...

0 Likes
Solved

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.