You can do this the following way
$query = "SELECT DATE_FORMAT(created_at, '%Y-%m-%d') as formatted-date FROM visit_plans WHERE created_at >= '$date' ";
$yourDates = DB::select(DB::raw($query));
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community