Laravel
A Laravel API that accepts LumoAuth tokens and checks a permission in route middleware.
StarterPlanned
This example is planned. Not built yet. This page is the specification for the example.
What you get
- The service provider and the
LumoAuthfacade. - A route with the middleware
lumoauth.permission:documents.edit. - The published config file.
Create it
composer require lumoauth/laravel
php artisan vendor:publish --tag=lumoauth-config
Settings
| Variable | Value |
|---|---|
LUMOAUTH_URL | https://app.lumoauth.dev, or https://eu.app.lumoauth.dev for the EU region. |
LUMOAUTH_ORG_ID | Your organization, for example acme-corp. |
LUMOAUTH_API_KEY | An API key for the permission checks. |
Next steps
- Protect your API: Protect routes in each framework.