PHP code example of jeffersongoncalves / filament-cep-field
1. Go to this page and download the library: Download jeffersongoncalves/filament-cep-field 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/ */
jeffersongoncalves / filament-cep-field example snippets
use JeffersonGoncalves\Filament\CepField\Forms\Components\CepInput;
// Basic usage
CepInput::make('cep')
-> 'prefix' or 'suffix' (default: 'suffix')
->setActionLabel('Buscar CEP') // Custom search button label
->setActionLabelHidden(false) // Show/hide action label (default: false)
->setErrorMessage('CEP não encontrado.') // Custom error message
->setStreetField('street') // Field to populate with street name
->setNeighborhoodField('neighborhood') // Field to populate with neighborhood
->setCityField('city') // Field to populate with city name
->setStateField('state'), // Field to populate with state