Hi Muhammad,
Great job, but no way to use alternate table_log name, as Spatiy Activitylog config allow it ?
spatie doc
Custom table name or database connection
If you need to use a custom table name or database connection, create a custom Activity model that extends the default one:
use Spatie\Activitylog\Models\Activity as BaseActivity;
class Activity extends BaseActivity
{
protected $table = 'my_custom_activity_log';
protected $connection = 'my_custom_connection';
}
Then set it in the config:
'activity_model' => \App\Models\Activity::class,
Hi Muhammad,
Great job, but no way to use alternate table_log name, as Spatiy Activitylog config allow it ?
spatie doc
Custom table name or database connection
If you need to use a custom table name or database connection, create a custom Activity model that extends the default one:
Then set it in the config:
'activity_model' => \App\Models\Activity::class,