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-10-24 12:50:07 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');
    }