Заменить файл
{{ Form::open(['url' => route('direction_descriptions.update', $directionDescription), 'method' => 'PATCH', 'files'=>'true', 'class' => 'needs-validation', 'novalidate']) }}
{{ Form::label('direction_code', 'Направление', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.department_id')]) }}
*
{{ Form::select('direction_code', $directionCodes, null, ['class' => 'form-select', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.department_id'), 'required']) }}
Поле "Направление" обязательно!
@if ($errors->any())
{{ $errors->first('direction_code') }}
@endif
{{ Form::label('file', 'Путь к Файлу', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.department_id')]) }}
*
{{ Form::file('file', ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.department_id'), 'required']) }}
Поле "Путь к документу" обязательно!
@if ($errors->any())
{{ $errors->first('file') }}
@endif
{{ Form::label('file_name', 'Имя файла') }}
{{ Form::text('file_name', $directionDescription->file_name, ['class' => 'form-control']) }}
@if ($errors->any())
{{ $errors->first('name') }}
@endif
{{ Form::label('position', 'Позиция') }}
{{ Form::text('position', $directionDescription->position, ['class' => 'form-control']) }}
@if ($errors->any())
{{ $errors->first('position') }}
@endif
{{ Form::submit('Загрузить файл', ['class' => 'btn btn-primary'])}}
{{Form::close()}}