Support the ongoing development of Laravel.io →

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...

0 Likes
0 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', '=',...

0 Likes
2 Replies
posted 7 years ago

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...

0 Likes
1 Replies
Solved
posted 7 years ago

Validations

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

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

Validations

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

0 Likes
replied 7 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?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.