Questions tagged [activitylog]

56 questions
6
votes
1 answer

class xxx contains 1 abstract method and must therefore be declared abstract or implement the remaining methods App\Models\xxx::getActivitylogOptions

Hello I am using Laravel-activitylog and when i tried to add the train to Model it gives me this error Class App\Models\Setting contains 1 abstract method and must therefore be declared abstract or implement the remaining methods…
4
votes
2 answers

TDD Laravel - Feature test in laravel and spatie/laravel-activitylog get JSON encoding errors

I'm writing some tests to my models in laravel and i've getting some troubles when i enable Activity Log by using spatie/laravel-activitylog. So, i create a user, using Factory, i authenticate in system, and when i'll try to logout, i get this…
Abe
  • 1,357
  • 13
  • 31
4
votes
1 answer

How to track every user database interaction in laravel 5?

If any logged in user accesses any service then I want to track all queries run by this user. Example: If user1 logs in and wants to delete his profile details and user2 wants to update his profile details, then I want to get the data in table like…
user7597739
2
votes
1 answer

Laravel Spatie - Custom Attribute value when audit log via modal

on my modal, I have two functions which I have used to log the data when it has been changed. those are below. namespace App\Models; use Spatie\Activitylog\Traits\LogsActivity; use Spatie\Activitylog\LogOptions; use…
Mohamed Raza
  • 818
  • 7
  • 24
2
votes
2 answers

Laravel spatie/laravel-activitylog - Call to undefined relationship [user] on model [Spatie\Activitylog\Models\Activity]

I just updated my project's framework from Version 7 to Version 8 (the laravel's latest version as of this date). Everything works except for the activity logs that produces this error: Illuminate\Database\Eloquent\RelationNotFoundException Call to…
Denzell
  • 309
  • 9
  • 17
2
votes
1 answer

Laravel Activity Log won't work on Update and Delete

I'm using SPATIE laravel-activitylog I followed all the instructions but still, it only logs the Create function not update and delete while using it on a Modal My Modal
Mohammad Edris Raufi
  • 1,393
  • 1
  • 13
  • 34
2
votes
0 answers

Laravel Yajra Datatables [object Object] + spatie/laravel-activitylog properties column (json)

I'm buiding a datatables (yajra) to draw data from spatie/laravel-activitylog database table. Everything works fine so far, but the properties column in the database is json. Well, if I draw json directly into datatable I will get an [object…
hhelderneves
  • 925
  • 8
  • 24
2
votes
1 answer

Laravel Spatie Activity Log Ip Address Customize

I am using Laravel Spatie Activity Log package in my laravel application. I could customize in each module. public function tapActivity(Activity $activity, string $eventName) { $activity->description = "Category is {$eventName}. "; …
LoveCoding
  • 1,121
  • 2
  • 12
  • 33
2
votes
1 answer

How to get model attribute name based on id using Spatie/Activitylog?

I'm trying to get Employee Name based on employee_id of Task model using attributes properties of Spatie/Activitylog activity_log table. My model: use LogsActivity; protected $fillable = ['id','employee_id', 'name', 'description'......]; …
Besart Haziri
  • 67
  • 1
  • 6
2
votes
1 answer

How to view activity log on Parse.com

I'm developing a database on Parse and client messed up a Class. He don't remember what he changed and I don't know what was it like before. Can any way we can see activity log of whole db or just that Class?
Noor Ali Butt
  • 798
  • 8
  • 24
2
votes
1 answer

How can I determine which extension is problematic, and how to resolve the exception?

On opening my ASP.NET Web Pages solution (which I started in WebMatrix) in VS 2013, I am now getting this err msg: An exception has been encountered. This may be caused by an extension. You can get more information by examing the file…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
1
vote
1 answer

Finding the times that most people were in a chat room

I am trying to work out the best way that I can find out in which times during the day had the most users in the chat room. I tried grouping the dates, but it doesn't really work because of the intervals. Is there some sort of window function I can…
1
vote
3 answers

Laravel Activity Log won't work on Update

I'm using SPATIE laravel-activitylog I followed all the instructions but still it only log the Create function not update while using it on a Modal My Modal
1
vote
1 answer

Argument 1 passed to Spatie\Activitylog\ActivityLogger::performedOn() must be an instance of Illuminate\Database\Eloquent\Model, string given

I am using Spatie activity log package. Within my controller, I am trying to pass the model name but I get the on my question's title. See my Model below: class Project extends Model { // use SoftDeletes; protected $softDelete = true; …
user1783675
  • 346
  • 2
  • 7
  • 25
1
vote
2 answers

Can't install Spatie Activity-log Package in Laravel 5.8

I was going to install spatie-activitylog package in my laravel application. composer require spatie/laravel-activitylog But I got this error. Problem 1 - Conclusion: remove laravel/framework v5.8.37 - Conclusion: don't install…
LoveCoding
  • 1,121
  • 2
  • 12
  • 33
1
2 3 4