PHPackages                             flashadvocate/trinitycore-auth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. flashadvocate/trinitycore-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

flashadvocate/trinitycore-auth
==============================

Laravel package for TrinityCore Authentification

v0.3.0(8y ago)057GPL-3.0PHPPHP ^5.5.9 || ^7.0

Since Dec 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/flashadvocate/trinitycore-auth)[ Packagist](https://packagist.org/packages/flashadvocate/trinitycore-auth)[ Docs](https://github.com/Thibaud-DT/trinitycore-auth)[ RSS](/packages/flashadvocate-trinitycore-auth/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

TrinityCore Authentication for Laravel 5.6
==========================================

[](#trinitycore-authentication-for-laravel-56)

[![Latest Stable Version](https://camo.githubusercontent.com/713ca4b9f36a6b010317f29707bc65ccdd81022d31372b5110d6b6dbdd955a45/68747470733a2f2f706f7365722e707567782e6f72672f746869626175642d64742f7472696e697479636f72652d617574682f76657273696f6e3f666f726d61743d666c6174)](https://packagist.org/packages/thibaud-dt/trinitycore-auth)[![Latest Unstable Version](https://camo.githubusercontent.com/579aa3ae743d406ef003b6bb1e204432f8bb83fe6148abcd9b87c0f0eda8bd21/68747470733a2f2f706f7365722e707567782e6f72672f746869626175642d64742f7472696e697479636f72652d617574682f762f756e737461626c653f666f726d61743d666c6174)](//packagist.org/packages/thibaud-dt/trinitycore-auth)[![Total Downloads](https://camo.githubusercontent.com/7671fe1e2bc3bb8fe8b1921cc1c2d41029f5fcb7aeb9e60bf4267c2d39e6d0b4/68747470733a2f2f706f7365722e707567782e6f72672f746869626175642d64742f7472696e697479636f72652d617574682f646f776e6c6f6164733f666f726d61743d666c6174)](https://packagist.org/packages/thibaud-dt/trinitycore-auth)[![License](https://camo.githubusercontent.com/8cf3ae1aa64338f12853ec414faff731817279549c88fa4a63cfd9041f0c8c22/68747470733a2f2f706f7365722e707567782e6f72672f746869626175642d64742f7472696e697479636f72652d617574682f6c6963656e73653f666f726d61743d666c6174)](https://packagist.org/packages/thibaud-dt/trinitycore-auth)

Laravel 5.6 package for authentication based on TrinityCore Database.

TrinityCore authentication is based on a sha1 hash of a concatenation of username and password.

Requirements
============

[](#requirements)

- PHP &gt;= 5.5.9 || 7.0
- thibaud-dt/trinitycore-models &gt;= dev-master
- Laravel =&gt; 5.6

Installation
============

[](#installation)

```
composer require thibaud-dt/trinitycore-auth

```

- Add the service provider and facade in your config/app.php

Service Provider

```
'providers' => [

    [...]

    ThibaudDT\TrinityCoreAuth\Providers\TrinityCoreAuthServiceProvider::class,

    [...]
]

```

Facade

```
'aliases' => [

    [...]

    'TrinityCoreAuth' => ThibaudDT\TrinityCoreAuth\Facades\TrinityCore::class,

    [...]
]

```

- Add database connection in you config/database.php

```
'connections' => [

        [...]

        'characters' => [
            'driver'    => 'mysql',
            'host'      => env('DB_HOST_CHARACTERS', 'localhost'),
            'database'  => env('DB_DATABASE_CHARACTERS', 'forge'),
            'username'  => env('DB_USERNAME_CHARACTERS', 'forge'),
            'password'  => env('DB_PASSWORD_CHARACTERS', ''),
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix'    => '',
            'strict'    => false,
        ],

        'world' => [
            'driver'    => 'mysql',
            'host'      => env('DB_HOST_WORLD', 'localhost'),
            'database'  => env('DB_DATABASE_WORLD', 'forge'),
            'username'  => env('DB_USERNAME_WORLD', 'forge'),
            'password'  => env('DB_PASSWORD_WORLD', ''),
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix'    => '',
            'strict'    => false,
        ],

        'auth' => [
            'driver'    => 'mysql',
            'host'      => env('DB_HOST_AUTH', 'localhost'),
            'database'  => env('DB_DATABASE_AUTH', 'forge'),
            'username'  => env('DB_USERNAME_AUTH', 'forge'),
            'password'  => env('DB_PASSWORD_AUTH', ''),
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix'    => '',
            'strict'    => false,
        ]

        [...]

    ],

```

- Add variable in your .env and configure it

```
DB_HOST_WORLD=localhost
DB_DATABASE_WORLD=world
DB_USERNAME_WORLD=root
DB_PASSWORD_WORLD=root

DB_HOST_CHARACTERS=localhost
DB_DATABASE_CHARACTERS=characters
DB_USERNAME_CHARACTERS=root
DB_PASSWORD_CHARACTERS=root

DB_HOST_AUTH=localhost
DB_DATABASE_AUTH=auth
DB_USERNAME_AUTH=root
DB_PASSWORD_AUTH=root

```

- Create configuration file and views

```
php artisan vendor:publish --provider="ThibaudDT\TrinityCoreAuth\Providers\TrinityCoreAuthServiceProvider"

```

- Configure the package in config/trinitycore-auth.php
- Do migrations

```
php artisan migrate

```

**It's done ! You can now use the package**

Configuration
=============

[](#configuration)

ConfigurationValue typeDefault valueDescriptionpassportbooleanfalseActive the support of Laravel PassportUsage
=====

[](#usage)

- Change users providers or create a new one in config/auth.php

```
'providers' => [
        'users' => [
            'driver' => 'trinitycore',
            'model' => ThibaudDT\TrinityCoreAuth\Models\Auth\Account::class,
        ],
    ],

```

- Add the connection name in passwords reset configuration or create a new one in config/auth.php

```
'passwords' => [
        'users' => [
            'provider' => 'users',
            'connection' => 'auth',
            'table' => 'password_resets',
            'expire' => 60,
        ],
    ],

```

- Create Auth Route in routes/web.php with :

```
TrinityCoreAuth::routes();

```

FAQ
===

[](#faq)

- Can I active the support of Laravel Passport before a first installation without ?

Yes you can ! Change the configuration value to true and make a refresh of migrations. All accounts created before the activation of the support of Laravel Passport must reset their password to use Password Grant Authorization system.

Credits
=======

[](#credits)

- The community of [TrinityCore](https://www.trinitycore.org/%5D) for the awesome work !
- [flashadvocate](https://github.com/flashadvocate) for the work it does !

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.8% 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 ~494 days

Total

2

Last Release

2930d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/700dbbd6d042031c6501004d51d6f520b7e2855f0930a4c60123acdf284b3252?d=identicon)[flashadvocate](/maintainers/flashadvocate)

---

Top Contributors

[![Thibaud-DT](https://avatars.githubusercontent.com/u/9258596?v=4)](https://github.com/Thibaud-DT "Thibaud-DT (10 commits)")[![flashadvocate](https://avatars.githubusercontent.com/u/7848492?v=4)](https://github.com/flashadvocate "flashadvocate (7 commits)")

---

Tags

laravelauthAuthenticationtrinitycore

### Embed Badge

![Health badge](/badges/flashadvocate-trinitycore-auth/health.svg)

```
[![Health](https://phpackages.com/badges/flashadvocate-trinitycore-auth/health.svg)](https://phpackages.com/packages/flashadvocate-trinitycore-auth)
```

###  Alternatives

[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[vinkas/firebase-auth-laravel

Firebase Authentication package for Laravel PHP Framework

392.1k](/packages/vinkas-firebase-auth-laravel)

PHPackages © 2026

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