Skip to content

I wish to add company_id column #815

Answered by Gummibeer
MicroDreamIT asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,
the easiest way to do this would be an observer for the activity model.
Another solution would be to override and rebind the `` class and adjust one of the methods:

public function causedBy($modelOrId)
{
if ($modelOrId === null) {
return $this;
}
$model = $this->normalizeCauser($modelOrId);
$this->getActivity()->causer()->associate($model);
return $this;
}

protected function getActivity(): ActivityContract
{
if (! $this->activity instanceof ActivityCont…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Gummibeer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants