PHP code example of momenoor / filament-serial
1. Go to this page and download the library: Download momenoor/filament-serial 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/ */
momenoor / filament-serial example snippets
use Filament\Forms\Components\TextInput;
TextInput::make('serial_number')
->label('Serial Number')
->serial(
prefix: 'INV', // Optional string or Closure
suffix: 'UAE', // Optional string or Closure
separator: '-', // Default is "-"
length: 6 // Default is 8
);