Support the ongoing development of Laravel.io →
Gertie1

Gertie1

Joined 28 Oct 2016

Statistics

Threads 4
Replies 3
Solutions 0
Articles 0

Combining results of queries

I am trying to combine results of two queries: For my first query, dd($sales) array:3 [▼ 0...

Likes Replies

Call to a member function groupBy on a non-object

I am trying to merge two queries $sales = DB::table('sales') ->join('drugs', 'drugs.id', '=',...

Likes Replies

laravel queries calculating average

I want an average of all sales for the month of January in the whole table. My date_sold is in the f...

Likes Replies
Solved

Validations

Does anyone have any ideas on how to perform validations on fields from different tables.? I have qu...

Likes Replies
Solved
5 years ago

Call to a member function groupBy on a non-object

astroanu said: try calling groupBy() before the get() instead of after still doesn't work.. error...

0 Likes
5 years ago

Validations

w1n78 said: in your request validation, you can query to get the value you want to check against. s...

0 Likes
5 years ago

Validations

Thanks, it worked after a small modification $rules = array( 'product_id' =>'required', 'quantity...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.