Ok, This works well $total_sales = OrderLine::where('product_id', '=', $product->id)->sum('qua...
This is probably very simple, in Laravel anyway :-) I have a table of products that I access a produ...
Hi there, Just trying my hand at selecting records by date range, it looks like this should work but...
So it turned out that when I installed AWS-SDK_PHP with 'composer install AWS-SDK_PHP' it picked a 2...
I'm putting this down a lack of coffee. I think it was my hard drive hitting full and effecting the...
If anybody is interested in future I solved it like this... $sales = DB::table('order_lines')...
Thanks atrakeur that was right on the money!
Thanks! Is there a way to just return the sum? This seems to do that and not a collection (but I can...
The Laravel portal for problem solving, knowledge sharing and community building.