Laravel-activitylog: IN installation-and-setup

Created on 4 Jun 2020  路  4Comments  路  Source: spatie/laravel-activitylog

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

bug

Most helpful comment

@abdosaeedelhassan try to run php artisan config:clear or php artisan config:cache before migrating and publishing the config

All 4 comments

@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

Was this page helpful?
0 / 5 - 0 ratings