Giter Club home page Giter Club logo

Comments (5)

freekmurze avatar freekmurze commented on May 13, 2024 3

You're right, it isn't ideal and I haven't foreseen this situation.

On first thought it would be better if I named those methods loggedActivity and causedActivity. For now I'd only use one of the two trait on your model and add your own loggedActivity and causedActivity methods.

I'll fix this in the next major release.

from laravel-activitylog.

cdave3 avatar cdave3 commented on May 13, 2024 1

I ran into this issue as well with the same use case (a user who causes & logs activity). I'll use the recommended solution but it'd be nice if the package handled this out of the box.

By the way, I really appreciate all the many contributions by spatie. Great packages!

from laravel-activitylog.

hackel avatar hackel commented on May 13, 2024

I think for now I'm not actually using the CausesActivity trait relationships at all, so I'll just remove it entirely. Thanks!

from laravel-activitylog.

rbridge avatar rbridge commented on May 13, 2024

@freekmurze Does this have something that can be tracked to see when it would be implemented? I have hit a scenario where I want to monitor activity against a model as well as monitor any activity it causes. Thanks!

from laravel-activitylog.

freekmurze avatar freekmurze commented on May 13, 2024

Just keep an eye on this repo, our my blog. This problem alone does not warrant an new major version in my mind, so it might take a while until a new major version will be released.

from laravel-activitylog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.