1. Go to this page and download the library: Download eom-plus/nova-input-group 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/ */
eom-plus / nova-input-group example snippets
...
use EomPlus\NovaInputGroup\InputGroup;
public function fields(Request $request)
{
return [
ID::make('ID', 'id')->sortable(),
Text::make('Name', 'name'),
InputGroup::make('Subdomain', 'subdomain')
->appendIcon('cube', 'after')
->append('<i>@example.com</i>')
->prependIcon('cube')
->prepend('test')
->prependExtraClasses('bg-green-500 text-white')
->asHtml()
];
}
...
...
use EomPlus\NovaInputGroup\InputGroup;
public function fields(Request $request)
{
return [
ID::make('ID', 'id')->sortable(),
Text::make('Name', 'name'),
InputGroup::make('Subdomain', 'subdomain')
->position('after')
->text('@example.com'),
];
}
...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.