I am in trouble.
laravel under 5.0 code
testController.php
$prefs = ['' => 'Please Select'] + Prefectures::lists('name', 'id');
:
:
test.blade.php
{{ Form::select('pref', $prefs, null) }}
However, in laravel 5.0 or more, it is an error in this code. the blade file even if the following result was the same.
test.blade.php
{!! Form::select('pref', $prefs, null) !!}
I want to create an array that you added one item to the obtained values from the database.