Thank for this amazing package, i am having an issue
Trait method activity has not been applied, because there are collisions with other trait methods on App\User
if a model uses both traits LogsActivity and CausesActivity it throws the error.
I can implement my own but is their a different solution?
Thanks
i figured out the way around this using php traits conflict handling.
if we have a user model and want to log activity on user model and we also want it to be the causer
use CausesActivity, LogsActivity {
LogsActivity::activity insteadof CausesActivity;
CausesActivity::activity as log;
}
now we have 2 available methods, activity and log.
Thanks.
Not closing the issue because this doesn't work by default
Thanks for posting your solution. Closing this for now and will fix the collision in the next major version of the package.
Most helpful comment
i figured out the way around this using php traits conflict handling.
if we have a user model and want to log activity on user model and we also want it to be the causer
now we have 2 available methods, activity and log.
Thanks.
Not closing the issue because this doesn't work by default