adrema/app/Form/Presenters/DatePresenter.php

17 lines
229 B
PHP
Raw Normal View History

2024-02-09 23:22:49 +01:00
<?php
namespace App\Form\Presenters;
use Carbon\Carbon;
class DatePresenter extends Presenter
{
public function present($value): string
{
return $value ? Carbon::parse($value)->format('d.m.Y') : '';
}
}