Support the ongoing development of Laravel.io →

onlin3play3r

Joined 24 Mar 2014

Statistics

Threads 2
Replies 4
Solutions 1
Articles 0

Free Sublime license

Just incase if anybody is interested to participate. http://sublimetexttips.com/giveaways/sublime-te...

0 Likes
0 Replies
posted 9 years ago

orderBy High Medium Low

Hello, I have a table with priority field which has values 'High', 'Medium' and 'Low'. I need the re...

0 Likes
9 Replies
Solved
replied 9 years ago

orderBy High Medium Low

stidges said: Sorry, I did an edit later. It's the quoting of risk_rating that is the problem, it w...

0 Likes
Solved
replied 9 years ago

orderBy High Medium Low

stidges said: Try removing the select: finding()->orderByRaw("FIELD('risk_rating', 'High',...

0 Likes
replied 9 years ago

orderBy High Medium Low

stidges said: That's strange.. Are you sure that last 'High' doesn't contain extra spacing or anyth...

0 Likes
replied 9 years ago

orderBy High Medium Low

stidges said: Try this: // Start query... $query->orderByRaw("FIELD(priority, 'High', 'Medi...

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.