PHP code example of signifly / laravel-addresses

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

    

signifly / laravel-addresses example snippets


return [
    /*
     * The address model.
     */
    'address_model' => \Signifly\Addresses\Models\Address::class,

    /*
     * The name of the table.
     */
    'table_name' => 'addresses',
];
bash
php artisan vendor:publish --provider="Signifly\Addresses\AddressesServiceProvider" --tag="migrations"
bash
php artisan migrate
bash
php artisan vendor:publish --provider="Signifly\Addresses\AddressesServiceProvider" --tag="config"