PHP code example of tomatophp / filament-locations

1. Go to this page and download the library: Download tomatophp/filament-locations 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/ */

    

tomatophp / filament-locations example snippets


->plugin(\TomatoPHP\FilamentLocations\FilamentLocationsPlugin::make())

->plugin(\TomatoPHP\FilamentLocations\FilamentLocationsPlugin::make()->settingsHub(false))

->plugin(
\TomatoPHP\FilamentLocations\FilamentLocationsPlugin::make()
    ->countries(false)
    ->languages(false)
    ->currency(false)
    ->locations(false)
)

    'driver' => 'database'

    'driver' => 'json',
    
    'json' => [
        'countries' => base_path('resources/json/countries.json'),
        'cities' => base_path('resources/json/cities.json'),
        'areas' => base_path('resources/json/areas.json'),
        'languages' => base_path('resources/json/languages.json'),
        'currencies' => base_path('resources/json/currencies.json'),
    ],

dollar($amount) // Output $100.00
bash
php artisan filament-locations:install
bash
php artisan vendor:publish --tag="filament-locations-config"
bash
php artisan migrate
bash
php artisan filament-locations:seed
bash
php artisan vendor:publish --tag="filament-locations-config"
bash
php artisan vendor:publish --tag="filament-locations-views"
bash
php artisan vendor:publish --tag="filament-locations-lang"
bash
php artisan vendor:publish --tag="filament-locations-migrations"