Adding custom attributes to Select field in laravelcollective HTML
Most of the time we use HTML select without any custom attributes. But in some cases adding custom attributes like data-*
helps to easily access extra data related to the Option selected without making additional ajax call.
LaravelCollective HTML is an awesome package to created HTML forms in Laravel. It provides a lot of features to help to build simple and complex forms.
If you wanted to add some custom attributes in Select-Option tag, that is something like this: