You can check Date Mutators
: https://laravel.com/docs/5.3/eloquent-mutators#date-mutators
You need set in your User
model column from_date
in $dates
array and then you can change format in $dateFormat
The another option is also put this method to your User
model:
public function getFromDateAttribute($value) {
return \Carbon\Carbon::parse($value)->format('d-m-Y');
}
and then in view if you run {{ $user->from_date }}
you will be see format that you want.