Tim Kruger
Tim Kruger

Reputation: 897

select id attribute not getting set using Laravel 5.2 and "laravelcollective/html": "5.2.*"

select's id attribute is not getting set by using

{{ Form::select('language', $options, 'en_ZA', array('id' => 'language')) }}

In my view and "laravelcollective/html": "5.2.*" in composer.json.

I also wanted to know going forward using Laravel 5.2., if it's best to use "laravelcollective/html": "5.2." instead of "illuminate/html" in my composer.json file?

Upvotes: 1

Views: 895

Answers (1)

Tim Kruger
Tim Kruger

Reputation: 897

For anyone interested I managed to figure it out, you need to do this

{{ Form::select('language', $options, 'en_ZA', ['id' => 'language']) }}

Instead of

{{ Form::select('language', $options, 'en_ZA', ('id' => 'language')) }}

I'll create a new question regarding my second question above and mark this question as answered.

Upvotes: -2

Related Questions