marshmallow / addressable
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Installs: 6 078
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 2
Requires
- php: ^7.4|^8.0
- marshmallow/commands: ^1.0
- marshmallow/dataset-country: ^1.2
- marshmallow/sluggable: ^1.0
This package is auto-updated.
Last update: 2024-10-30 02:10:41 UTC
README
Marshmallow Addressable
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Installatie
composer require marshmallow/example
php artisan migrate
Nova
Are you using Nova? We have a command for you to generate the Nova Resource. Run the commands below and the resources will be available to you in Nova. We hide the Address resource by default in the Nova navigation. If you wish to have it available in the navigation, add public static $displayInNavigation = true;
to app/Nova/Address.php
.
php artisan marshmallow:resource Address Addressable
php artisan marshmallow:resource AddressType Addressable
Run the seeder if you wish to have some defaults in the address type table. This will create a type of Shipping address
and a type of Postal address
. These types will be added to your database in your setup locale. Currently we only support English and Dutch for seeding these records.
php artisan db:seed --class=Marshmallow\\Addressable\\Seeders\\AddressTypeSeeder
To make the address visable on your Nova resource, you need to add MorphMany::make('Addresses'),
to your fields()
method.
Tests during development
php artisan test packages/marshmallow/addressable
...
Copyright (c) 2020 marshmallow