formers / former

A powerful form builder, for Laravel and other frameworks (stand-alone too)
https://formers.github.io/former/
1.34k stars 205 forks source link

Add class to radio label #528

Closed mackhankins closed 8 years ago

mackhankins commented 8 years ago

I'm trying to figure out how I can add a class to the true / false label in this scenario

                <div class="mt-radio-inline">
                    {!! Former::inline_radios($name)->radios([
                        'True' => [
                            'name' => $name, 'value' => 'true',
                        ],
                        'False' => [
                            'name' => $name, 'value' => 'false',
                        ],
                    ])
                    ->check($value)->required()
                    !!}
                </div>