vendredi 31 mars 2017

Correct way of implementing form select in Laravel 5.1?

Why is that (+) sign generates an error "Unsupported operand types" Anyone could tell me why?If so,What is the correct way?

    <div class="form-group">

        {!! Form::select('category', 
            (['0' => 'Select Province'] + $location), 
                null, 
                ['class' => 'form-control']) !!}
    </div>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire