PHPackages                             thotam/thotam-plus - 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. thotam/thotam-plus

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

thotam/thotam-plus
==================

ThoTam additional features

0.0.2(5y ago)06MITPHPPHP ^7.3|^8.0

Since Apr 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/thotam/thotam-plus)[ Packagist](https://packagist.org/packages/thotam/thotam-plus)[ Docs](https://github.com/thotam/thotam-plus)[ RSS](/packages/thotam-thotam-plus/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cff66fec1afa969e8f88ff9c9758281cd737c17fa9c74b531488777741bb06fa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74686f74616d2f74686f74616d2d706c75732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thotam/thotam-plus)[![Build Status](https://camo.githubusercontent.com/cbb559dec4ff13ba32937c0d284901f3aea3814bfc44da111961853e1b64c280/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f74686f74616d2f74686f74616d2d706c75732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thotam/thotam-plus)[![Quality Score](https://camo.githubusercontent.com/9f80e3f5f9f9adee78f40d2d5c677152b265410f78956b5704a64d1983626d83/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f74686f74616d2f74686f74616d2d706c75732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thotam/thotam-plus)[![Total Downloads](https://camo.githubusercontent.com/888f88483465654468f4a0b3740f5a4e8581df8cc6848b3ccc2d3997186ac8f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74686f74616d2f74686f74616d2d706c75732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thotam/thotam-plus)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

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

[](#installation)

You can install the package via composer:

```
composer require thotam/thotam-plus
```

Usage
-----

[](#usage)

```
Add "Thotam\ThotamPlus\Traits\ThoTamPlusTrait" to Models you want to use
```

```
For ChiNhanh add:
$table->bigInteger('chinhanh_id')->unsigned()->nullable()->default(null);
$table->foreign('chinhanh_id')->references('id')->on('chinhanhs')->onDelete('SET NULL')->onUpdate('cascade');
to table
```

```
For KenhKinhDoanh add:
$table->bigInteger('kenh_kinh_doanh_id')->unsigned()->nullable()->default(null);
$table->foreign('kenh_kinh_doanh_id')->references('id')->on('kenh_kinh_doanhs')->onDelete('SET NULL')->onUpdate('cascade');
to table
```

```
For NhomSanPham add:
$table->bigInteger('nhom_san_pham_id')->unsigned()->nullable()->default(null);
$table->foreign('nhom_san_pham_id')->references('id')->on('nhom_san_phams')->onDelete('SET NULL')->onUpdate('cascade');
to table
```

```
Add "Thotam\ThotamPlus\Traits\TinhHuyenXaTrait" to Models you want to TinhHuyenXa
```

```
For Tinh add:
$table->bigInteger('tinh_id')->unsigned()->nullable()->default(null);
$table->foreign('tinh_id')->references('id')->on('list_tinhs')->onDelete('SET NULL')->onUpdate('cascade');
to table
```

```
For Huyen add:
$table->bigInteger('huyen_id')->unsigned()->nullable()->default(null);
$table->foreign('huyen_id')->references('id')->on('list_huyens')->onDelete('SET NULL')->onUpdate('cascade');
to table
```

```
For Xa add:
$table->bigInteger('xa_id')->unsigned()->nullable()->default(null);
$table->foreign('xa_id')->references('id')->on('list_xas')->onDelete('SET NULL')->onUpdate('cascade');
to table
```

```
Add "Thotam\ThotamPlus\Traits\ChiNhanhTrait" to "Thotam\ThotamHr\Models\HR" Model
```

#### Next, you must migrate your database:

[](#next-you-must-migrate-your-database)

```
php artisan migrate
```

#### Next, you should run seed:

[](#next-you-should-run-seed)

```
php artisan db:seed
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

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

[](#contributing)

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

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [thotam](https://github.com/thotam)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~20 days

Total

2

Last Release

1886d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/78630736?v=4)[thotam](/maintainers/thotam)[@thotam](https://github.com/thotam)

---

Top Contributors

[![thotam](https://avatars.githubusercontent.com/u/78630736?v=4)](https://github.com/thotam "thotam (44 commits)")

---

Tags

thotamthotam-plus

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thotam-thotam-plus/health.svg)

```
[![Health](https://phpackages.com/badges/thotam-thotam-plus/health.svg)](https://phpackages.com/packages/thotam-thotam-plus)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M184](/packages/laravel-ai)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M145](/packages/laravel-mcp)[illuminate/queue

The Illuminate Queue package.

21332.6M1.5k](/packages/illuminate-queue)

PHPackages © 2026

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