I am trying to combine results of two queries: For my first query, dd($sales) array:3 [▼ 0...
I am trying to merge two queries $sales = DB::table('sales') ->join('drugs', 'drugs.id', '=',...
I want an average of all sales for the month of January in the whole table. My date_sold is in the f...
Does anyone have any ideas on how to perform validations on fields from different tables.? I have qu...
astroanu said: try calling groupBy() before the get() instead of after still doesn't work.. error...
w1n78 said: in your request validation, you can query to get the value you want to check against. s...
Thanks, it worked after a small modification $rules = array( 'product_id' =>'required', 'quantity...
The Laravel portal for problem solving, knowledge sharing and community building.
The community