Answer the question
In order to leave comments, you need to log in
How to put value in the form in a more beautiful way in Laravel, how would ngmodel work?
We all know that, as a rule, in Angular (which I am so attached to), we make one form for creating and editing and include it here and there. And when we have data, they themselves are substituted for editing from ngModel.
So how to do this in Laravel? After all, when I put in the form
<input required name="name" value="{{blabla}}" class="form-control" placeholder="Enter text">
Answer the question
In order to leave comments, you need to log in
Just use the form model binding and pass an empty model when you create it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question