- if you are using a custom
Activity
model, you should let it implement the newSpatie\Activitylog\Contracts\Activity
interface - the preferred way to get changes on an
Activity
model is through thechanges
property instead of thechanges()
function. Change all usages from$activity->changes()
to$activity->changes
- the
activity
relation of theCausesActivity
trait has been renamed toactions
. Rename all uses from$user->activity
to$user->actions
- the
activity
relation of theLogsActivity
trait has been renamed toactivities
. Rename all uses from$yourModel->activity
to$yourModel->activities
. - the deprecated
loggedActivity
relation has been removed. Useactivities
instead. - the
HasActivity
trait has been removed. Use bothCausesActivity
andLogsActivity
traits instead.