mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-11 09:42:15 +01:00
Deactivate auditing for import and increase max_execution_time
This commit is contained in:
committed by
Constantin Graf
parent
cc10af0b97
commit
0a0b7a03b4
22
app/Models/Concerns/CustomAuditable.php
Normal file
22
app/Models/Concerns/CustomAuditable.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Models\Concerns;
|
||||
|
||||
use OwenIt\Auditing\Auditable;
|
||||
|
||||
trait CustomAuditable
|
||||
{
|
||||
use Auditable;
|
||||
|
||||
/**
|
||||
* @var array<string>|null
|
||||
*/
|
||||
protected ?array $auditEvents = null;
|
||||
|
||||
public function disableAuditing(): void
|
||||
{
|
||||
$this->auditEvents = [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user