Support the ongoing development of Laravel.io →

augustolima

Joined 2 Jun 2014

Statistics

Threads 2
Replies 4
Solutions 1
Articles 0
posted 9 years ago

Convert Query SQL to Laravel

please, how I can do this query with laravel? http://laravel.io/bin/3BmXm select cf.city, sum( cf.to...

0 Likes
2 Replies
posted 9 years ago

SQL Query difficult

I can't "translate" the SQL Query below to Laravel, how I can make this? SELECT SUM(transa...

0 Likes
7 Replies
Solved
replied 9 years ago

SQL Query difficult

I solved the problem with this: Transaction::select(DB::raw('SUM(transaction.amount AS total', 'prod...

0 Likes
Solved
replied 9 years ago

SQL Query difficult

I make to return the expected values with DB::select('select.."). Thanks GSheffield​​, but I ne...

0 Likes
replied 9 years ago

SQL Query difficult

intrip said: Did you try to use DB:statement($query); command? Yes and this error appears: "I...

0 Likes
replied 9 years ago

SQL Query difficult

darrencraig said: Why not just run the whole thing as a RAW query? I tried and returns empty, but...

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.