{!! Form::open(['method' => 'POST', 'action' => 'App\Http\Controllers\PostController@store', 'files' => true]) !!}
{!! Form::label('title', 'Title:', ['class' => 'mb-2']) !!}
@error('title')
*required
@enderror
{!! Form::text('title', null, ['class' => 'form-control']) !!}
{!! Form::label('content', 'Content:', ['class' => 'mb-2']) !!}
@error('content')
*required
@enderror
{{ Form::textarea('My text', null, ['class' => 'form-control',
'rows' => 1,
'name' => 'content',
'id' => 'myeditorinstance',
]) }}
{!! Form::label('short_description', 'Short Description:', ['class' => 'mb-2']) !!}
@error('short_description')
*required
@enderror
{!! Form::text('short_description', null, ['class' => 'form-control']) !!}
{!! Form::label('picture', 'Picture:', ['class' => 'mb-2']) !!}
{!! Form::file('picture', null, ['class' => 'form-control']) !!}
{!! Form::label('published_at', 'Published at:', ['class' => 'mb-2']) !!}
{{ Form::date('published_at', \Carbon\Carbon::now()->format('Y-m-d'),['class' => 'form-control']) }}
{!! Form::submit('Post', ['class' => 'btn btn-primary button-hover']) !!}
{!! Form::close() !!}