PHPackages                             zoparga/laravel-company-information - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zoparga/laravel-company-information

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zoparga/laravel-company-information
===================================

Add many address to many model with a single trait. E.g.: many shipping address for a customer.

0.8.1(4y ago)012MITPHPPHP ^7.3|^8.0

Since Mar 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/zoparga/laravel-company-information)[ Packagist](https://packagist.org/packages/zoparga/laravel-company-information)[ Docs](https://github.com/zoparga/laravel-company-information)[ GitHub Sponsors](https://github.com/zoparga)[ RSS](/packages/zoparga-laravel-company-information/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

Add many address to many model with a single trait. E.g.: many shipping address for a customer.
===============================================================================================

[](#add-many-address-to-many-model-with-a-single-trait-eg-many-shipping-address-for-a-customer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4c18b96baddc3f3e84db86e5bdf1e4b99cac23139242e8caa0465e3c1668f3f9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a6f70617267612f6c61726176656c2d636f6d70616e792d696e666f726d6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zoparga/laravel-company-information)[![GitHub Tests Action Status](https://camo.githubusercontent.com/bf0ae16ac7ed3b6b8985ce52a23121450c8a1897d6ff53794058e794565ba77a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7a6f70617267612f6c61726176656c2d636f6d70616e792d696e666f726d6174696f6e2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/zoparga/laravel-company-information/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/882a31f67fa91b4b56feff086e0d8235e49a1f53a528a52449689276e555de3e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7a6f70617267612f6c61726176656c2d636f6d70616e792d696e666f726d6174696f6e2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/zoparga/laravel-company-information/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/41ceaf694ea42710e3ad4fcd06c706b5af9301e73f82ac59436bc538d83885da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a6f70617267612f6c61726176656c2d636f6d70616e792d696e666f726d6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zoparga/laravel-company-information)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require zoparga/laravel-company-information
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="zoparga\CompanyInformation\CompanyInformationServiceProvider" --tag="company-information-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="zoparga\CompanyInformation\CompanyInformationServiceProvider" --tag="laravel-company-information-config"
```

This is the contents of the published config file:

Usage
-----

[](#usage)

- publish migration file
- migrate
- add trait to model
- use it

Prepare model
-------------

[](#prepare-model)

use zoparga\\CompanyInformation\\Traits\\CompanyInformationeableTrait;

class {{model}} extends Model { use CompanyInformationeableTrait; }

```
$model = \App\Models\Model::find(1);

$model->companyInformations()->create([
    'full_name' => 'YOUR INFORMATION',
    'main_address' => 'YOUR INFORMATION',
    'bank_bic' => 'YOUR INFORMATION',
    'bank_iban' => 'YOUR INFORMATION',
    'vat' => 'YOUR INFORMATION',
]);

$companyInformationId = 1;

$model->updateCompanyInformation($companyInformationId, [
    'full_name' => 'YOUR INFORMATION',
    'main_address' => 'YOUR INFORMATION',
    'bank_bic' => 'YOUR INFORMATION',
    'bank_iban' => 'YOUR INFORMATION',
    'vat' => 'YOUR INFORMATION',
]);

Get the addresses, order by ID - desc
Or you can limit it here
$model->getLatestCompanyInformationes()->get();

Or you can limit it here
$model->getLatestCompanyInformationes()->limit(3)->get();

Of course you can get last created address
$model->getLastCompanyInformation();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Papp Zoltán](https://github.com/zoparga)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~34 days

Total

2

Last Release

1477d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22a5be5fde39a2a8b568a6b58f19db59352605afe5ba0c7ae42deeb5990d1fb4?d=identicon)[zoparga](/maintainers/zoparga)

---

Top Contributors

[![zoparga](https://avatars.githubusercontent.com/u/15894503?v=4)](https://github.com/zoparga "zoparga (3 commits)")

---

Tags

laravelzopargalaravel-company-information

###  Code Quality

TestsPest

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/zoparga-laravel-company-information/health.svg)

```
[![Health](https://phpackages.com/badges/zoparga-laravel-company-information/health.svg)](https://phpackages.com/packages/zoparga-laravel-company-information)
```

###  Alternatives

[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

9169.0k4](/packages/marcelweidum-filament-expiration-notice)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[ziming/laravel-scrapingbee

A PHP Laravel Library for ScrapingBee

4310.6k](/packages/ziming-laravel-scrapingbee)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
