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

0.12.0 2025-02-23 10:06 UTC

This package is auto-updated.

Last update: 2025-02-23 18:09:30 UTC


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 />