Download the PHP package thibaud-dt/trinitycore-auth without Composer
On this page you can find all versions of the php package thibaud-dt/trinitycore-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thibaud-dt/trinitycore-auth
More information about thibaud-dt/trinitycore-auth
Files in thibaud-dt/trinitycore-auth
Package trinitycore-auth
Short Description Laravel package for TrinityCore Authentification
License GPL-3.0
Homepage https://github.com/Thibaud-DT/trinitycore-auth
Informations about the package trinitycore-auth
TrinityCore Authentication for Laravel 5.6
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
- PHP >= 5.5.9 || 7.0
- thibaud-dt/trinitycore-models >= dev-master
- Laravel => 5.6
Installation
composer require thibaud-dt/trinitycore-auth
- Add the service provider and facade in your config/app.php
Service Provider
Facade
-
Add database connection in you config/database.php
-
Add variable in your .env and configure it
-
Create configuration file and views
- Configure the package in config/trinitycore-auth.php
- Do migrations
It's done ! You can now use the package
Configuration
Configuration | Value type | Default value | Description |
---|---|---|---|
passport | boolean | false | Active the support of Laravel Passport |
Usage
-
Change users providers or create a new one in config/auth.php
-
Add the connection name in passwords reset configuration or create a new one in config/auth.php
- Create Auth Route in routes/web.php with :
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
- The community of TrinityCore for the awesome work !
- flashadvocate for the work it does !