-
-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tapactivity description does not save properly #562
Comments
Hey, |
Ok, I've checked the code and found the problem: laravel-activitylog/src/Traits/LogsActivity.php Lines 41 to 50 in 9b0e2da
laravel-activitylog/src/ActivityLogger.php Line 135 in 9b0e2da
The description is the only attribute set after the |
Confirming that
|
@rxng could you please test and verify dev-fix-issue-562? The unittest passes but a realworld test would be great. |
@Gummibeer sure thing, how do I get this? I ran composer require spatie/laravel-activitylog but got Using version ^3.2 for spatie/laravel-activitylog |
You have to run it with the version, or just edit the version in
|
"Package spatie/laravel-activitylog at version dev-fix-issue-562 has a PHP requirement incompatible with your PHP version (7.1.25) " |
That's right - the latest versions require PHP7.2. |
I'm having trouble installing this into my Laravel 5.5 after upgrading to php 7.2 Noticed, you released into 3.6.2, so I tried to get that version but am getting this spatie/laravel-activitylog 3.6.2 requires illuminate/database ~5.8.0 Any chance I can try and get the fix in? Sorry for the inconvenience but I am stuck! Thanks :) |
As first solution I can only recommend you to upgrade to the latest laravel version. => LTS is a lie As second solution you could override the Because it's not a security fix I won't add it to an older version. |
Thank you, Tom. I will try to work around that until I can safely upgrade all my systems. Sorry to be a pain, could you advise on how we might achieve this override? Hopefully someone else can benefit from this too! |
Hey, You just have to create a new class which extends the package $this->app->bind(
ActivityLogger::class,
YourNewActivityLogger::class
); |
Hi,
Not sure if this is a bug, but I am trying to get
tapActivity()
to save meaningful descriptions besides just "Update".For example, when a user logs in, I need it to save a log with description "Logged in"
However, this code doesn't work and description keeps defaulting back to "Update". It's really frustrating and wonder if anyone has a solution?
The text was updated successfully, but these errors were encountered: