mardi 19 juin 2018

What is the advantage of using laravelcollective/html component over using the regular simple HTML tags to build view elements?

Do we really need extra component to build HTML elements when we can do it with simple html tags?

{!! Form::open(['action' => 'Controller@method']) !!}
...
{!! Form::close() !!}

is equivalent with

<form action="">
...
</form>

Form::label('email', 'E-Mail Address', ['class' => 'awesome']);

is equivalent with

<label class='awesome' name='email'> E-Mail Address</label>

etc...

Are there things we can not achieve using the regular html tags? And if so, Is it ok to use mixed? (html tags and laravelcollective elemnts)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire