mustang-framework/location-container

Location Container for Mustang Framework.

dev-master 2023-04-24 09:38 UTC

This package is auto-updated.

Last update: 2024-11-24 13:05:06 UTC


README

Mustang Location Container

Add address to required model like User, Customer or etc.

    /**
     * Get all of the models addresses.
     */
    public function addresses(): MorphMany
    {
        return $this->morphMany(Address::class, 'addressable');
    }