zofe / addresses-module
address module for rapyd-admin application
Installs: 4
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:rapyd-module
Requires
- php: ^8.2
- illuminate/config: ^11.0
- illuminate/contracts: ^11.0
Requires (Dev)
- orchestra/testbench: ^9.0
- phpunit/phpunit: 11.0.10
README
This is an utility model of Rapyd Admin, a Laravel application bootstrap for your projects
It embed:
- address management for users (addresses migration & crud)
- address management for any model (via morphable relationship)
Installation
composer require zofe/addresses-module php artisan migrate
Usage
This module give you out of the box a way to manage addresses for users and any other model via morphable relationship Simply place the following code in your blade file to embed the addresses table for a user:
<livewire:addresses::addresses-table-embed
addressableType="user"
:addressableId="$user->id"
/>
then you can enable add/editing via another component
<livewire:addresses::addresses-button-add-embed
addressableType="user"
:addressableId="$user->id"
/>
<livewire:addresses::addresses-modal-edit-embed />