Convert DATE_FORMAT to Y-m-d? Using Larave Eloquent Raw Select
问题 Currently I have this eloquent select in laravel $queryBooking = Booking::where('id',$id)->select('starts_at','ends_at')->first(); Now I want to put specific format to starts_at and ends_at using this format Y-m-d Data should be shown somethings like this 2020-05-29 (Y-m-d) How can I do that using laravel eloquent? UPDATE tried the answer of spiny did some modification. $queryBooking = Booking::where('id',$id)->select('starts_at','ends_at')->first(); $booking = PropertyBooking::where(