PHP Trait Spatie\Activitylog\Traits\LogsActivity

Inheritance: use trait DetectsChanges
Show file Open project: spatie/laravel-activitylog

Public Methods

Method Description
activity ( ) : Illuminate\Database\Eloquent\Relations\MorphMany
attributesToBeIgnored ( ) : array
getDescriptionForEvent ( string $eventName ) : string
getLogNameToUse ( string $eventName = '' ) : string

Protected Methods

Method Description
bootLogsActivity ( )
eventsToBeRecorded ( ) : Collection * Get the event names that should be recorded.
shouldLogEvent ( string $eventName ) : boolean

Method Details

activity() public method

public activity ( ) : Illuminate\Database\Eloquent\Relations\MorphMany
return Illuminate\Database\Eloquent\Relations\MorphMany

attributesToBeIgnored() public method

public attributesToBeIgnored ( ) : array
return array

bootLogsActivity() protected static method

protected static bootLogsActivity ( )

eventsToBeRecorded() protected static method

* Get the event names that should be recorded.
protected static eventsToBeRecorded ( ) : Collection
return Illuminate\Support\Collection

getDescriptionForEvent() public method

public getDescriptionForEvent ( string $eventName ) : string
$eventName string
return string

getLogNameToUse() public method

public getLogNameToUse ( string $eventName = '' ) : string
$eventName string
return string

shouldLogEvent() protected method

protected shouldLogEvent ( string $eventName ) : boolean
$eventName string
return boolean