Amalmax
530
3
Laravel

how to convert laravel form collective to normal html form

Posted 1 year ago by Amalmax

I am working with laravel project. and need convert following laravel form collective to normal collective,

<div class="form-group row">
                {!! Form::label("image","Image",["class"=>"col-form-label col-md-3"]) !!} // need change this
                <div class="col-md-5">
                    <img id="preview"
                         src="{{asset((isset($image) && $image->image!='')?'uploads/'.$image->image:'images/noimage.jpg')}}"
                         height="200px" width="200px"/>
                    {!! Form::file("image",["class"=>"form-control","style"=>"display:none"]) !!} // need change this
                    <br/>
                    <a href="javascript:changeProfile();">Add Image</a> |
                    <a style="color: red" href="javascript:removeImage()">Remove</a>
                    <input type="hidden" style="display: none" value="0" name="remove" id="remove">
                </div>
            </div>

actually I need change this to normal html form

{!! Form::label("image","Image",["class"=>"col-form-label col-md-3"]) !!}
{!! Form::file("image",["class"=>"form-control","style"=>"display:none"]) !!}

how can I do this?

Please sign in or create an account to participate in this conversation.