GuardHelpers (Auth)

GuardHelpers

trait GuardHelpers (View source)

These methods are typically the same across all guards.

Methods

登录查看完整内容
bool check()

Determine if the current user is authenticated.

bool guest()

Determine if the current user is a guest.

int|null id()

Get the ID for the currently authenticated user.