I am trying to implement a drop down for a form of a open source project. I am looking at line below and wondering where is $organizations coming from? There is no such indications in the file.
{!! Form::select('suggest_organization',$organizations,null,['class'=> 'form-control selectpicker','id' => 'suggest_organization','data-live-search' => 'true','data-size' => '5']) !!}
Link to the complete source code: https://github.com/sarapis/orservices/blob/master/resources/views/frontEnd/suggest/create.blade.php
Thank you for your time to help!
The declaration of the variable is declared in the app/Http/Controllers/frontEnd/SuggestController.php
file. You can see it on this line.
由于无法连接控制器,我通过直接导入指定表并在当前php文件中使用pluck选择想要的列来解决此问题。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.