lundi 28 octobre 2019

How replace input name in Laravel validation?

I am beginner in Laravel. I use in my project Laravel 5.8.

I have this code:

<form  method="post" name="contactformXX"
action="" enctype="multipart/form-data">

<input type="text" value=""
name="form_link1" maxlength="150">
</form>

I show error with this code:

@if ($errors->any())
<div class="row alert alert-danger">
<li>Uzupełnij poprawnie wszystkie wymagane
pola! </li>
</div>
@endif

When I post empty form I have error:

"Uzupełnij poprawnie wszystkie wymagane pola! Format form link1 jest nieprawidłowy."

How can I replace name input traditional name: "form link1" => "facebook url"?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire