Booking::select(['booking_date', 'pickup_datetime'])->get()
->map(function ($booking) {
$booking->pickup_datetime = optional($booking->pickup_time)->format('d M Y, h:i A');
$booking->booking_date = optional($booking->created_at)->format('d M Y, h:i A');
return $booking;
});
Code Example |
---|
Php :: extend multiple classes in php |
Php :: Laravel unique cheque using multiple column |
Php :: string concatenation in php |
Php :: fixing unclosed html tags |
Php :: routing with php |
Php :: wherebetween laravel |
Php :: php response image |
Php :: how to migrate new column without empty the table in laravel |
Php :: laravel "query()-find" |
Php :: cases_sensitive |
Php :: 0 |
Php :: clear the compiled classes |
Php :: Laravel 7 pagination with search filter |
Php :: serve https with php local |
Php :: php 8 Match Expression / Switch Case |
Php :: enable phpmailer cpanel |
Php :: pass variable to blade laravel |
Php :: php email sender |
Php :: php session |
Php :: attach one or multiple files laravel mail |
Php :: php form validation |
Php :: php strings |
Php :: heredoc |
Php :: check if a string contains a word |
Php :: password_verify |
Php :: red rose |
Php :: findOneBy |
Php :: hide category menu from custom post type |
Php :: how to set default php version in ubuntu |
Php :: how to pass value in app.blade |