PHP code example of louiscoetzee / laravel-location

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

    

louiscoetzee / 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=louiscoetzee\\Location\\Seeds\\LocationDatabaseSeeder