Closed DiarQoroviqi closed 1 year ago
Hi, @DiarQoroviqi ,
I tried to reproduce the issue with steps mentioned and some simple data but I was not able to reproduce it.
May be you can help me to reproduce it by sharing your use case data.
php
=> 8.1.18
laravel
=> 10.10
spatie/laravel-activitylog
=> "^4.7"
Dear contributor,
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
Describe the bug When running the db:seed command from terminal it does not save the logs, it only save the logs when running a seed for a specific seeder.
To Reproduce I have a model that already uses the trait LogsActivity;
and a seeder for it
ContentEntrySeeder
. So when running directly the seederphp artisan db:seed --class=ContentEntrySeeder
it works fine and adds the logs, but when running only db:seed(there a other seeders) without specifying the --class it do not add logs forContentEntry
modelVersions (please complete the following information)