class UserModelStub

Supplies the application's user model to code generators. Kit stubs (auth, profile, admin dashboard, events, notifications) generate code that lives in the application, so they reference the application's concrete user model rather than resolving it at runtime. The class is read from auth.user_model at generation time so generated code matches whatever the application has configured.

Methods

static string
fqcn()

The fully qualified class name of the configured user model, for use in a generated use statement.

static string
shortName()

The short class name of the configured user model, for use in generated type hints and static calls.

Details

at line 22
static string fqcn()

The fully qualified class name of the configured user model, for use in a generated use statement.

Return Value

string

For example App\Models\Users.

at line 32
static string shortName()

The short class name of the configured user model, for use in generated type hints and static calls.

Return Value

string

For example Users.