laravel/laravel — Issue #153: Use the equal operator not the identical operator for default selected option with Form::select
Author: jaysonic
Created: 2011-11-13 06:45:37+00:00
State: open

When specifying a default selected item with Form::select() the types must be identical as well. I found I had to typecast some of my variables to the correct type because it wasn't setting them as defaults.

The Form class was originally using the equals operator a few months ago but it has since been changed to the identical operator.

My suggestion is to keep at as the equals operator.