The spatie/laravel-activitylog package is a 3rd party package written for Laravel by software company spatie. It provides the means to log the activities of users, model events etc.
Questions tagged [spatie-activitylog]
10 questions
1
vote
1 answer
The PATCH method is not supported for route roles. Supported methods: GET, HEAD, POST
I want to make role n permission using spatie laravel. I can't edit my role because of the error :
The PATCH method is not supported for route roles. Supported methods:
GET, HEAD, POST.
Controller:
public function edit(string $id)
{
$role =…

Raymond Pratama S
- 15
- 4
1
vote
0 answers
spatie Activity log is not capturing from queue and schedulars
I am using laravel framework for developing API's and my application is a multi-tenancy database .
I am using spatie-Activity log package for capturing logs in model level it's working fine in either request came from web or api.
Based on…

Test Test
- 79
- 5
0
votes
1 answer
Assign default role to all users except the first user in database LaraveL Spatie
I'm using Spatie to manage user permissions and roles in a database.
I have two roles, Admin and Manager, i want to assign the first user to Admin role and the rest of the users to Manager role.
I tried to assign admin role to the first user like…

yucefbro
- 1
- 2
0
votes
0 answers
Sanctum Guard Error With using Spatie Package in laravel
I receive a Sanctum guard error when I try to find a specific Role_id or Permission_id using a Spatie package in Laravel. It was working fine normally when I try to get all roles or permissions but it make an error only when I try to search for a…
0
votes
0 answers
Testing eloquent model events
I'm currently using a package that logs activity via listening for model events based on changes made to them (create/update/delete). The code functions as expected locally though when it comes to writing feature tests, logging deletions fails.…

delves
- 13
- 3
0
votes
1 answer
How to store activity log in mongo db from laravel?
I am using spatie/laravel-activitylog to log the activities and jenssegers/laravel-mongodb connect to a Mongo database. In user Model, the user data is storing into mysql and log data need to be stored in mongodb. I am getting "Call to a member…

Riya
- 11
- 4
0
votes
0 answers
Spatie Laravel ActivityLog use with differences on update and on create
I have a call to getActivitylogOptions() in a model.
But I need the data saved in the log to be different in the case of insert/update/delete.
For example, when inserting a new line, I only want to save one or two info fields. But in case of an…

Phyron
- 613
- 1
- 9
- 25
0
votes
1 answer
How can we add a add extra column in activity log table ( spatie-activitylog )
I need another field in the activity log table document_Id.
Is this possible?
ActivityLog Model File code
class ActivityLog extends Model
{
public $table = 'activity_log';
const CREATED_AT = 'created_at';
const UPDATED_AT =…
0
votes
0 answers
Create a Custome Description in Activity Log
How to add a custom description in spatie laravel-activitlog.
I have read the documentation there they mentioned two ways
first way
activity()
->performedOn($someContentModel)
->log('Custome Description');
the first way only creates a log…

Mohammad Edris Raufi
- 1,393
- 1
- 13
- 34
0
votes
0 answers
Spatie Laravel Activity Log
Is there a way to include customization of ActivityLog
I'm looking for a way to included the events and properties affected in the description such that it shows specifics. For example User A updated their email address to abc@xyz.com. Considering…

Sharada Sharma
- 129
- 1
- 11