tykus4 years ago Best Answer Level 104ReplyReport Spam$query = Appointment::select('id') ->whereBetween('created_at', [ Carbon::createFromFormat('m-Y', $from)->startOfMonth(), //2022-10-01 00:00:00.0 Carbon::createFromFormat('m-Y', $to)->endOfMonth() // 2022-10-31 23:59:59.999999 ]) ->get(); Like Reply 1 like