JwtService
Table of Contents
Methods
- __construct() : mixed
- generateToken() : string
Methods
__construct()
public
__construct([User|null $user = null ]) : mixed
Parameters
- $user : User|null = null
generateToken()
public
generateToken([bool $readOnly = false ][, array<string|int, mixed> $additionalData = [] ]) : string
Parameters
- $readOnly : bool = false
- $additionalData : array<string|int, mixed> = []