PHP code example of fayne / laravel-filament-advanced-text
1. Go to this page and download the library: Download fayne/laravel-filament-advanced-text 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/ */
fayne / laravel-filament-advanced-text example snippets
use Fayne\AdvancedText\Forms\Components\AdvancedText;
AdvancedText::make('sku')
->prefix('SKU-')->suffix('-STD')
->prefixConcatenate()->suffixConcatenate()
->options(['基础版' => 'basic', '专业版' => 'pro'])
->datalist(['suggested-value'])
->copyable()->maxLength(40);
bash
php artisan vendor:publish --tag=filament-advanced-text-config