mercredi 31 juillet 2019

Syntax form create

I want to remove this syntax for my form

<div class="form-group ">
            
            
            <br>
            {!! $errors->first('name', '<span class="help-block">:message</span>') !!}
        </div>

        <div class="form-group ">

            
            
            <br>
            {!! $errors->first('firstname', '<span class="help-block">:message</span>') !!}

            
            
        </div>

And put that syntax:

 
     <input type="hidden" name="_token" value="" />


     <fieldset class="form-group ">
       <label for="form-group-input-1">Name</label>
       <input type="text" name="name" id="name" class="form-control" required="required" value=""/>
       {!! $errors->first('name', '<span class="help-block">:message</span>') !!}
       </fieldset>

       <fieldset class="form-group ">
        <label for="form-group-input-1">Firstname</label>
        <input type="text" name="firstname" id="firstname" class="form-control" required="required" value=""/>
        {!! $errors->first('firstname', '<span class="help-block">:message</span>') !!}
       </fieldset>

Is it a version problem? I am currently with version 5.4.13.

I have to update my version is that right?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire