lumoauth / laravel
LumoAuth for Laravel: service provider, LumoAuth facade and a permission middleware.
v1.0.1
2026-10-08 17:25 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^10.0 || ^11.0 || ^12.0
- illuminate/http: ^10.0 || ^11.0 || ^12.0
- illuminate/support: ^10.0 || ^11.0 || ^12.0
- lumoauth/lumoauth: ^1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-10-08 23:53:51 UTC
README
composer require lumoauth/laravel
php artisan vendor:publish --tag=lumoauth-config # optional; env vars work without it
LUMOAUTH_URL=https://app.lumoauth.dev LUMOAUTH_ORG_ID=acme-corp LUMOAUTH_API_KEY=lk_…
use LumoAuth\LumoAuth; public function __construct(private LumoAuth $lumo) {} if ($this->lumo->permissions->check('document.edit', userId: $request->user()->id)) { … } Route::put('/documents/{id}', UpdateDocument::class) ->middleware('lumoauth.permission:document.edit');
Inject LumoAuth\LumoAuth anywhere the container resolves, or use the
LumoAuth facade; the middleware alias lumoauth.permission requires every
listed permission for the signed-in user.