You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a bug per se, but when using Blade's echo function to render an enum it throws an exception.
I guess this is expected, but it'd be nice to add a check for this in the echo function and either render the name if it's a non-backed enum, or the value for a backed enum.
This seems like a feature request or an improvement so I'm converting this to a discussion instead. It's best to post these in the discussions section in the future to get support for your idea. After that you may send a PR to the framework. Please only use the laravel/framework issue tracker to report bugs and issues with the framework.
Description:
Not sure if this is a bug per se, but when using Blade's echo function to render an enum it throws an exception.
I guess this is expected, but it'd be nice to add a check for this in the echo function and either render the name if it's a non-backed enum, or the value for a backed enum.
framework/src/Illuminate/Support/helpers.php
Lines 109 to 121 in da859e7
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: