I'm trying to dynamically the select option selected just using php in laravel but I'm getting this error:
Use of undefined constant selected - assumed 'selected' (this will throw an Error in a future version of PHP) (View: C:\xampp\htdocs\laralast\resources\views\view.blade.php)
below is my view blade
<select class="form-control" name="assign_to" id="assign_to">
<option selected disabled>Select support</option>
@foreach($supports as $support)
<option value="" ></option>
@endforeach
</select>
Can you help me with this.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire