feat: ✨ add models to the activity log history

This commit is contained in:
Alexis Gousseau 2025-09-24 12:33:25 +02:00
parent d5d7730aad
commit 32307bf55c
No known key found for this signature in database
GPG key ID: 4A614CB3DBBA2406
2 changed files with 4 additions and 0 deletions

View file

@ -13,6 +13,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Str;
use Illuminate\Validation\ValidationException;
use Uwil\LaravelActivityLogs\Traits\ActivityLog;
use Uwil\LaravelCommon\Helpers\FileHelper;
use Uwil\LaravelCommon\Helpers\ToolboxHelper;
@ -29,6 +30,7 @@ use Uwil\LaravelCommon\Helpers\ToolboxHelper;
*/
class DynamicPage extends Model implements TranslatableModel
{
use ActivityLog;
use HasFactory;
use HasTranslations;
use SoftDeletes;

View file

@ -9,6 +9,7 @@ use App\Traits\Models\HasTranslations;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Uwil\LaravelActivityLogs\Traits\ActivityLog;
/**
* @property string $label Label of the page configuration.
@ -20,6 +21,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
*/
class PageConfig extends Model implements TranslatableModel
{
use ActivityLog;
use HasFactory;
use HasTranslations;
use SoftDeletes;