PHP code example of aecor / addressable
1. Go to this page and download the library: Download aecor/addressable 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/ */
aecor / addressable example snippets
return [
'table-name' => 'addresses'
];
bash
php artisan vendor:publish --provider="Aecor\Address\AddressServiceProvider" --tag="migrations"
php artisan migrate
bash
php artisan vendor:publish --provider="Aecor\Address\AddressServiceProvider" --tag="config"
php
$user->addresses;
php
$user->addresses()->where('type', 'home')->get();