PHP code example of itparlour / laravel-location

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

    

itparlour / laravel-location example snippets




return [
    'countries_table' => 'countries',
    'cities_table' => 'cities',
    'states_table' => 'states',
    'routes' => [
        'prefix' => 'location',
        'middleware' => 'web'
    ]
];
shell
php artisan migrate
shell
php artisan db:seed --class=Itparlour\Location\Seeds\LocationDatabaseSeeder