forms - How to include blank value in Former::select -


i'm using former package laravel 4, along twigbridge. have select field i'm populating model:

{{ former_select('parent_id').fromquery(sections, 'title', 'id') }} 

however, i'd add blank value default option. i've looked through docs not see mentioned this.

can help?

thanks

for former version 2.6.0 had use 'placeholder' method

{{ former::select('author_id')->placeholder('please select')->label('author')->fromquery(author::get(), 'username', 'id') }} 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -