Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB connection activity-log. #549

Closed
bahmanenayati opened this issue Jun 1, 2019 · 4 comments
Closed

DB connection activity-log. #549

bahmanenayati opened this issue Jun 1, 2019 · 4 comments
Assignees
Labels

Comments

@bahmanenayati
Copy link

Can I change the database connection?

I do not want to be hit hard by the site's main database, so I'm going to use another database.

@Gummibeer
Copy link
Collaborator

Atm you only can customize the table via config. But you are able to override the whole model and set your connection as normal with eloquent.

@Gummibeer Gummibeer self-assigned this Jun 1, 2019
@bahmanenayati
Copy link
Author

Atm you only can customize the table via config. But you are able to override the whole model and set your connection as normal with eloquent.

Yes, I know the table.
Please explain more about the model.

@Gummibeer
Copy link
Collaborator

'activity_model' => \Spatie\Activitylog\Models\Activity::class,

Only extend the default activity model and set the connection property and put the new model FQCN in the config.

@bahmanenayati
Copy link
Author

'activity_model' => \Spatie\Activitylog\Models\Activity::class,

Only extend the default activity model and set the connection property and put the new model FQCN in the config.

Thanks 🌹

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants