Example #1
0
 public function get($month, $year)
 {
     return \App\Models\Shop::with('key', 'client', 'geocoding')->where(DB::raw('MONTH(shops.scheduled)'), '=', $month)->where(DB::raw('YEAR(shops.scheduled)'), '=', $year)->orderBy('scheduled')->get();
 }