mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Add note to laravel-activitylog integration (#177)
* Update spatie.blade.md * Add markdown style * Use "For example" instead of "E.g." Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com> * Update note * Minor fix * Rephrase ActivityLog note Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
This commit is contained in:
parent
e6e3fc3a23
commit
32235fa106
1 changed files with 3 additions and 0 deletions
|
|
@ -8,6 +8,9 @@ section: content
|
|||
|
||||
## **laravel-activitylog** {#laravel-activitylog}
|
||||
|
||||
> Note: The package requires logged models to have integer IDs. We recommend extra security measures when using integer IDs for tenants. Because the IDs become enumerable, they get vulnerable to enumeration attacks (which UUIDs are safe against).
|
||||
> For example, to use the LogsActivity trait on the Tenant model, modify the model to have an integer ID.
|
||||
|
||||
### For the tenant app: {#for-the-tenant-app}
|
||||
|
||||
- Set the `database_connection` key in `config/activitylog.php` to `null`. This makes activitylog use the default connection.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue