class UsernameSlugDriver implements SlugDriverInterface

Properties

protected UserRepository $users

Methods

__construct(UserRepository $users)

No description

string
toSlug(AbstractModel $instance)

No description

fromSlug(string $slug, User $actor)

No description

Details

__construct(UserRepository $users)

Parameters

UserRepository $users

string toSlug(AbstractModel $instance)

Parameters

AbstractModel $instance

Return Value

string

AbstractModel fromSlug(string $slug, User $actor)

Parameters

string $slug
User $actor

Return Value

AbstractModel