PHP code example of shahmy / sri_lanka_administrative_boundaries
1. Go to this page and download the library: Download shahmy/sri_lanka_administrative_boundaries 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/ */
shahmy / sri_lanka_administrative_boundaries example snippets
// database/seeder/DatabaseSeeder.php
use Illuminate\Database\Seeder;
use Shahmy\SriLankaAdministrativeBoundaries\database\seeders\SriLankaAdministrativeBoundariesSeeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
$this->call([
// Other seeders...
SriLankaAdministrativeBoundariesSeeder::class,
]);
}
}
bash
php artisan vendor:publish --tag=sri-lanka-administrative-boundaries-migrations
bash
php artisan migrate --seed
bash
php artisan db:seed --class=\Shahmy\SriLankaAdministrativeBoundaries\database\seeders\SriLankaAdministrativeBoundariesSeeder