Add new activity logging code to replace audit log
This commit is contained in:
parent
c14c7b436e
commit
5bb66a00d8
11 changed files with 534 additions and 0 deletions
25
app/Facades/Activity.php
Normal file
25
app/Facades/Activity.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
namespace Pterodactyl\Facades;
|
||||
|
||||
use Illuminate\Support\Facades\Facade;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Pterodactyl\Services\Activity\ActivityLogService;
|
||||
|
||||
/**
|
||||
* @method static ActivityLogService anonymous()
|
||||
* @method static ActivityLogService event(string $action)
|
||||
* @method static ActivityLogService withDescription(?string $description)
|
||||
* @method static ActivityLogService withSubject(Model $subject)
|
||||
* @method static ActivityLogService withActor(Model $actor)
|
||||
* @method static ActivityLogService withProperties(\Illuminate\Support\Collection|array $properties)
|
||||
* @method static ActivityLogService withProperty(string $key, mixed $value)
|
||||
* @method static mixed transaction(\Closure $callback)
|
||||
*/
|
||||
class Activity extends Facade
|
||||
{
|
||||
protected static function getFacadeAccessor()
|
||||
{
|
||||
return ActivityLogService::class;
|
||||
}
|
||||
}
|
Reference in a new issue