Skip to content
rw3iss Auth

HasVenAuth

class rw3iss\AuthServer\Laravel\Concerns\HasVenAuth src/Concerns/HasVenAuth.php ↗

Drop onto your existing App\Models\User to gain role/permission accessors proxied to the request’s principal. Used in Pattern B (composable) — see AUTH-PHP-LARAVEL-DESIGN §4.4.

class User extends Authenticatable { use HasVenAuth; }

auth()->user()->hasRole(‘seller’) // ← reads from JWT, not DB