PHP code example of codedge / lumen-countries

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

    

codedge / lumen-countries example snippets


$ composer 

/*
|--------------------------------------------------------------------------
| Register Service Providers
|--------------------------------------------------------------------------
|
...    

*/

$app->register(Codedge\Countries\CountriesServiceProvider::class); // [1]

/**
 * The Artisan commands provided by your application.
 *
 * @var array
 */
protected $commands = [
    // ...
    BasicIT\LumenVendorPublish\VendorPublishCommand::class
];

$this->call('CountriesSeeder'); 
bash
$ php artisan vendor:publish --provider="Codedge\Countries\CountriesServiceProvider"
bash
$ php artisan countries:migration
bash
$ php artisan migrate --seed