Support the ongoing development of Laravel.io →

augustolima

Joined 2 Jun 2014

Statistics

Threads 2
Replies 4
Solutions 1
Articles 0
posted 8 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...

Likes Replies
posted 8 years ago

SQL Query difficult

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

Likes Replies
Solved
replied 8 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 8 years ago

SQL Query difficult

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

0 Likes
replied 8 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 8 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.

© 2023 Laravel.io - All rights reserved.