Skip to main content

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.
Works with
PHPLaravel

What you get​

  • The service provider and the LumoAuth facade.
  • 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​

VariableValue
LUMOAUTH_URLhttps://app.lumoauth.dev, or https://eu.app.lumoauth.dev for the EU region.
LUMOAUTH_ORG_IDYour organization, for example acme-corp.
LUMOAUTH_API_KEYAn API key for the permission checks.

Next steps​