📜  laravel 选择选项表单添加请选择选项 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:48.048000             🧑  作者: Mango

代码示例1
{!! Form::select('shipping_pincode', 
    $deliveryLocations->prepend('Please Select Delivery Location', '0'),
    !empty($selected_location) ? $selected_location : '0',
    array("class" => "form-control"))
!!}