Skip to content

User::factory()

Constructs a User object and also takes User models into account.

User::factory(mixed $props): Kirby\Cms\User

Parameters

Name Type Default
$props * mixed

Return type

Kirby\Cms\User

This method does not modify the existing $user object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\User