PHP code example of laravel-enso / countries
1. Go to this page and download the library: Download laravel-enso/countries 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/ */
laravel-enso / countries example snippets
route('core.countries.options');
use LaravelEnso\Countries\Models\Country;
$romania = Country::whereIso31662('RO')->firstOrFail();
$label = $romania->regionLabel();
bash
php artisan migrate
bash
php artisan vendor:publish --tag=countries-seeder
bash
php artisan db:seed --class="LaravelEnso\Countries\Database\Seeders\CountrySeeder"