php代码在下拉列表中显示选定值laravel

在下拉列表中显示选定值laravel php代码

<select class=js-states browser-default select2 name=shopping_id required id=shopping_id>
        <option value=option_select disabled selected>Shoppings</option>
        @foreach($shoppings as $shopping)
            <option value={{ $shopping->id }} {{$company->shopping_id == $shopping->id  ? 'selected' : ''}}>{{ $shopping->fantasyname}}</option>
        @endforeach
    </select>


相关文章

php分解代码片段$colors  = "red,blue,...
php替换代码片段str_replace ($search, $replace,...
php curl示例function getUrl($url){   &nb...
多维数组按值搜索php代码$key = array_search(...
在下拉列表中显示选定值laravel php代码<select&nbs...
php检查对象是否为空代码:if($users->count()==0){ &nb...