PHP code example of codicastudio / conditional-radio-field
1. Go to this page and download the library: Download codicastudio/conditional-radio-field library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
codicastudio / conditional-radio-field example snippets
use OwenMelbz\RadioField\RadioButton;
public function fields(Request $request)
{
return [
RadioButton::make('Can view skip adverts?')
->options([
0 => 'No',
1 => ['Yes' => 'This means that users will not have to watch adverts.'],
])
->default(0) // optional
->stack() // optional (