October\Rain\Database\Traits\UserFootprints

Overview

UserFootprints adds created_user_id and updated_user_id fields to a model and populates them using the logged in user via the backend.auth provider.


Public Methods

public getCreatedUserIdColumn()

public getCreatedUserIdColumn(): string 

getCreatedUserIdColumn gets the name of the "created user id" column.

public getUpdatedUserIdColumn()

public getUpdatedUserIdColumn(): string 

getCreatedUserIdColumn gets the name of the "updated user id" column.

public initializeUserFootprints()

public initializeUserFootprints(): void

initializeUserFootprints trait for a model.

public updateUserFootprints()

public updateUserFootprints(): void

Protected Methods

protected getUserFootprintAuth()

protected getUserFootprintAuth(): void