Skip to content

VenAuthServiceProvider

class Vendidit\AuthServer\Laravel\VenAuthServiceProvider Source: src/VenAuthServiceProvider.php

Registers everything the Laravel adapter exposes:

  • The auth-php Config + AuthClient as container singletons.
  • The “vendidit-jwt” Guard + “vendidit” UserProvider with Auth::extend / Auth::provider.
  • Middleware aliases: vauth, vauth.role, vauth.permission, vauth.app, vauth.org, vauth.no_imp.
  • Blade directives: @vauth / @vguest / @vrole / @vperm / @vapp / @vimpersonating.
  • Publishable config (and scaffold routes when AUTH_SCAFFOLD_ROUTES=true).