New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

deegitalbe/laravel-trustup-io-authentification

Connect your Laravel project to our centralized authentication service
6,250
Install
composer require deegitalbe/laravel-trustup-io-authentification
Latest Version:v4.0.1
PHP:^8.2
Laravel:12
Older releases:8 – 11
License:MIT
Last Updated:Oct 16, 2026
Links: GitHub  ·  Packagist
Maintainer: fhusquinet

Connect your Laravel project to our centralized authentication service

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Compatibility

Laravel Package
8.x / 9.x 1.x
10.x / 11.x 3.x
12.x 4.x

Installation

Require package

composer require deegitalbe/laravel-trustup-io-authentification

Publish config

php artisan vendor:publish --tag="trustup-io-authentification-config"

This will publish trustup-io-authentification.php in config folder

Define roles

You should define roles that have access in config file trustup-io-authentification.php.

'roles' => [
    'Super Admin',
    'Employee',
    'Translator'
],

Define guards

In config file auth.php redefine your guards

'guards' => [
    'web' => [
        'driver' => 'session',
        'provider' => 'users',
        'driver' => 'trustup.io',
    ],
    'api' =>[
        'driver' => 'trustup.io'
    ]
],

Activate docker

In case your application is using docker-integration, define this env variable

TRUSTUP_IO_AUTH_DOCKER_ACTIVATED=true

Optionally override the docker service URL (must include a scheme, default http://trustup-io-auth)

TRUSTUP_IO_AUTH_DOCKER_URL=http://trustup-io-auth

Add middleware to protect your restricted routes

use Illuminate\Support\Facades\Route;
use Deegitalbe\LaravelTrustupIoAuthentification\Http\Middleware\TrustUpIoAuthMiddleware;

Route::middleware(TrustUpIoAuthMiddleware::class)->group(function() {
    // Your restricted routes ...
});

Route::middleware(TrustUpIoAuthMiddleware::class.':Super Admin|Translator')->group(function() {
    // Your restricted routes only accessible by super admins or translators ...
});

Docker compatibility

Update package to latest version

composer require deegitalbe/laravel-trustup-io-authentification

Force config publication and set correct values (model, roles, guard, ...)

php artisan vendor:publish --tag="trustup-io-authentification-config" --force

Define env variables

TRUSTUP_IO_AUTH_DOCKER_ACTIVATED=true
# Optional, must include a scheme (default http://trustup-io-auth)
TRUSTUP_IO_AUTH_DOCKER_URL=http://trustup-io-auth

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

deegitalbe/laravel-trustup-io-translations-loader

Load translations from our centralized translations service (translations.trustu...

5,680 0
deegitalbe/laravel-trustup-io-notifier

This is my package laravel-trustup-io-notifier

4,595 0
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982

Version History

Version Released PHP Laravel License
v4.0.1 ^8.2 ^12.0 MIT
v4.0.0 ^8.2 ^12.0 MIT
v3.0 ^8.2 ^10.0||^11.0 MIT
v2.1.0 ^8.1 ^10.0 MIT
v2.0.2 ^8.1 ^10.0 MIT
Pre-releases (4)
Version Released PHP Laravel License
v0.0.18-alpha.3 ^8.0 ^8.0|^9.0 MIT
v0.0.18-alpha.2 ^8.0 ^8.0|^9.0 MIT
v0.0.18-alpha.1 ^8.0 ^8.0|^9.0 MIT
v0.0.18-alpha.0 ^8.0 ^8.0|^9.0 MIT