Format Date value from database Laravel

Format Date value from database Laravel

I have a column named birth_date in MySQL database with a type of date.

I have a column named birth_date in MySQL database with a type of date.

Now, I would like to show it in my view in this format : May 23, 2008

I tried:

{{ $user->user_information->birth_date->format('m-d-Y') }}

it showed:

ErrorException (E_ERROR) Call to a member function format() on string

I also tried

{{ date('m-d-Y', $user->user_information->baptism_date) }}

it showed:

ErrorException (E_ERROR) A non well formed numeric value encountered

Can anyone assist me with the right formatting code?

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Laravel 5.8 Tutorial: Build your First CRUD App with Laravel and MySQL (PHP 7.1+)

Laravel 5.8 Tutorial: Build your First CRUD App with Laravel and MySQL (PHP 7.1+)

How To Set Up Laravel App on Docker, With NGINX and MySQL

Deploying Your Laravel App on Docker, With NGINX and MySQL ... The original post was also uploaded here: Laravel Application on Docker.

Top Laravel Development Companies Reviews

Among the list of Best Laravel development companies, TopDevelopers has chosen the most acclaimed laravel developers for the visitors so as to make them avail the extremely wonderful service ever offered. The web development companies listed here...