Reputation: 11
my code test.blade.php
<div class="col-lg-10">
{{ Form::text('movie', ['class' => 'form-control'])}}
</div>
and error is
ErrorException in helpers.php line 519: htmlspecialchars() expects parameter 1 to be string, array given (Vi
Upvotes: 0
Views: 100
Reputation: 163768
Second parameter for Form::text()
should be a string, but you're trying to pass an array. This will work:
{!! Form::text('movie', '', ['class' => 'form-control']) !!}
Upvotes: 2