PHP code example of jolanuk / filament-postcodes
1. Go to this page and download the library: Download jolanuk/filament-postcodes 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/ */
jolanuk / filament-postcodes example snippets
use jolanUK\FilamentPostcodes\Forms\Components\PostcodeField;
PostcodeField::make('postcode')
->bindQualityField('quality')
->bindEastingsField('eastings')
->bindNorthingsField('northings')
->bindCountryField('country')
->bindNHSHAField('nhs_ha')
->bindLongitudeField('longitude')
->bindLatitudeField('latitude')
->bindEuropeanElectoralRegionField('european_electoral_region')
->bindPrimaryCareTrustField('primary_care_trust')
->bindRegionField('region')
->bindLSOAField('lsoa')
->bindMSOAField('msoa')
->bindIncodeField('incode')
->bindOutcodeField('outcode')
->bindParliamentaryConstituencyField('parliamentary_constituency')
->bindParliamentaryConstituency2024Field('parliamentary_constituency_2024')
->bindAdminDistrictField('admin_district')
->bindParishField('parish')
->bindAdminCountyField('admin_county')
->bindDateOfIntroductionField('date_of_introduction')
->bindAdminWardField('admin_ward')
->bindCEDField('ced')
->bindCCGField('ccg')
->bindNUTSField('nuts')
->bindPFAField('pfa')
->bindNHSRegionField('nhs_region')
->bindTTWAField('ttwa')
->bindNationalParkField('national_park')
->bindBUAField('bua')
->bindICBField('icb')
->bindCancerAllianceField('cancer_alliance')
->bindLSOA11Field('lsoa11')
->bindMSOA11Field('msoa11')
->bindLSOA21Field('lsoa21')
->bindMSOA21Field('msoa21')
->bindOA21Field('oa21')
->bindRUC11Field('ruc11')
->bindRUC21Field('ruc21')
->bindLEP1Field('lep1')
->bindLEP2Field('lep2'),
TextInput::make('quality'),
TextInput::make('eastings'),
TextInput::make('northings'),
TextInput::make('country'),
TextInput::make('nhs_ha'),
TextInput::make('longitude'),
TextInput::make('latitude'),
TextInput::make('european_electoral_region'),
TextInput::make('primary_care_trust'),
TextInput::make('region'),
TextInput::make('lsoa'),
TextInput::make('msoa'),
TextInput::make('incode'),
TextInput::make('outcode'),
TextInput::make('parliamentary_constituency'),
TextInput::make('parliamentary_constituency_2024'),
TextInput::make('admin_district'),
TextInput::make('parish'),
TextInput::make('admin_county'),
TextInput::make('date_of_introduction'),
TextInput::make('admin_ward'),
TextInput::make('ced'),
TextInput::make('ccg'),
TextInput::make('nuts'),
TextInput::make('pfa'),
TextInput::make('nhs_region'),
TextInput::make('ttwa'),
TextInput::make('national_park'),
TextInput::make('bua'),
TextInput::make('icb'),
TextInput::make('cancer_alliance'),
TextInput::make('lsoa11'),
TextInput::make('msoa11'),
TextInput::make('lsoa21'),
TextInput::make('msoa21'),
TextInput::make('oa21'),
TextInput::make('ruc11'),
TextInput::make('ruc21'),
TextInput::make('lep1'),
TextInput::make('lep2'),