From 32235fa106b8aefc3c0faceb7305641c2dbdda82 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Wed, 10 Aug 2022 16:09:38 +0200 Subject: [PATCH] Add note to laravel-activitylog integration (#177) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update spatie.blade.md * Add markdown style * Use "For example" instead of "E.g." Co-authored-by: Samuel Štancl * Update note * Minor fix * Rephrase ActivityLog note Co-authored-by: Samuel Štancl --- source/docs/v3/integrations/spatie.blade.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/docs/v3/integrations/spatie.blade.md b/source/docs/v3/integrations/spatie.blade.md index 2381e13..fc68946 100644 --- a/source/docs/v3/integrations/spatie.blade.md +++ b/source/docs/v3/integrations/spatie.blade.md @@ -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.