Appzcoder\CrudGenerator\Commands\CrudViewCommand::createRadioField PHP Method

createRadioField() protected method

Create a yes/no radio button group using the form helper.
protected createRadioField ( array $item ) : string
$item array
return string
    protected function createRadioField($item)
    {
        $markup = file_get_contents($this->viewDirectoryPath . 'form-fields/radio-field.blade.stub');
        return $this->wrapField($item, sprintf($markup, $item['name']));
    }