Level 19
You have to wrap your Form:: calls in {!! !!} instead of {{ }}.
https://laravel.com/docs/9.x/blade#displaying-unescaped-data
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
How to show the data in the date field. I also tried without the date() function it also does not show the data in the field.
Form:
<div class="form-group">
{{Form::label('schedule post', 'Schedule Post', ['class' => 'control-label mb-1'])}}
{{Form::date('pubish_date', date('F j Y', strtotime($article->published_at)))}}
{{Form::label('remove post', 'Remove Post', ['class' => 'control-label mb-1'])}}
{{Form::date('remove_date', date('F j Y', strtotime($article->expired_at)))}}
</div>
Also, cast published_at and expired_at to datetime in the Article model, and then you can just call $aticle->expired_at->format('F j Y')
Please or to participate in this conversation.