AxiamServiceProvider
extends ServiceProvider
in package
Auto-discovered Laravel bridge entry point (D-01): listed under `composer.json` `extra.laravel.providers`, so a Laravel consumer gets this provider registered with ZERO manual wiring beyond `composer require axiam/axiam-sdk` (true zero-config auto-discovery, unlike the Symfony bridge which has no equivalent mechanism without a published Flex recipe).
register() binds a singleton AxiamClient configured from
config('axiam.*') (falling back to AXIAM_* environment variables so a
consumer never needs to publish a config file to get started). boot()
registers the axiam.auth middleware alias (AxiamMiddleware) and the
axiam Gate ability (AxiamGate, D-02) — can:axiam,<resource>,<action>
route middleware then works out of the box — plus the axiam.access middleware
alias (AxiamAccessMiddleware, backed by AccessEnforcer, CONTRACT.md
§11) for the declarative #[RequireAuth]/#[RequireAccess]/#[RequireRole]
helpers.
Table of Contents
Methods
- boot() : void
- Registers the `axiam.auth` route-middleware alias so applications can guard routes with `->middleware('axiam.auth')` (D-02, §10) instead of referencing the middleware class.
- register() : void
Methods
boot()
Registers the `axiam.auth` route-middleware alias so applications can guard routes with `->middleware('axiam.auth')` (D-02, §10) instead of referencing the middleware class.
public
boot() : void
register()
public
register() : void