in your documention at https://docs.spatie.be/laravel-activitylog/v3/installation-and-setup/#
you are added migration step before publishing config file step, because migration depend on config fi e this make migration error.
SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name
@abdosaeedelhassan could you provide some more details on how you're getting this error. Please make sure that you've published the migration by running:
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="migrations"
it worked for me, but i mean that the error in documentation in ordering steps:
firstly: publishing config file
second: doing migration
in the documentaion described in revese, please look at https://docs.spatie.be/laravel-activitylog/v3/installation-and-setup/#
@abdosaeedelhassan I've reviewed the documentation. The order that is presented on the documentation is correct. The migrations will run successfully without publishing the config file. I've verified this on a new install this morning.
@abdosaeedelhassan try to run php artisan config:clear or php artisan config:cache before migrating and publishing the config
Most helpful comment
@abdosaeedelhassan try to run
php artisan config:clearorphp artisan config:cachebefore migrating and publishing the config