Open rabol opened 9 months ago
Laravel/Blade it self still have many in accurate type hints. You can get around this one by using the value manually:
<option value="{{PlaceholderTypeEnum::Today->value}}">{{ __('Today') }}</option>
<option value="{{PlaceholderTypeEnum::Text->value }}">{{ __('Text') }}</option>
<option value="{{PlaceholderTypeEnum::Email->value }}">{{ __('Email') }}</option>
while using a enum in a blade I get this
Parameter #1 (App\Enums\PlaceholderTypeEnum::Checkbox) of echo cannot be converted to string.
it is uses like this: