PHP code example of nalingia / nova-toggleable-select
1. Go to this page and download the library: Download nalingia/nova-toggleable-select 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/ */
nalingia / nova-toggleable-select example snippets
use Nalingia\ToggleableSelect\Select;
//...
public function fields()
{
return [
Select::make('Size')
->options([
'S' => 'Small',
'M' => 'Medium',
'L' => 'Large',
'C' => 'Custom',
])
->toggle([
'C' => ['note'],
]),
// ...
Text::make('Note'),
];
}