<form class="row g-3 auto-width" action="{{route('library-tags.update',$tags->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('PUT')
    <div class="col-md-12">
        <label for="validationCustomTitle" class="form-label">Title <span class="text-danger"><b>*</b></span></label>
        <div class="input-group has-validation"> <span class="input-group-text" id="inputGroupPrepend"><i class="bi bi-tags"></i></span>
        <input type="text" class="form-control" id="validationCustomTitle" name="tag_name" aria-describedby="inputGroupPrepend" required value="{!! $tags->tag_name !!}">
        @if ($errors->has('title'))
        <span class="text-danger">{{ $errors->first('title') }}</span>
        @endif
        <span class="text-danger error_name" style="display: none;">This field is required.</span>
    </div>
</form>