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
21
app/Facades/LogTarget.php
Normal file
21
app/Facades/LogTarget.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace Pterodactyl\Facades;
|
||||
|
||||
use Illuminate\Support\Facades\Facade;
|
||||
use Pterodactyl\Services\Activity\ActivityLogTargetableService;
|
||||
|
||||
/**
|
||||
* @method static void setActor(\Illuminate\Database\Eloquent\Model $actor)
|
||||
* @method static void setSubject(\Illuminate\Database\Eloquent\Model $subject)
|
||||
* @method static \Illuminate\Database\Eloquent\Model|null actor()
|
||||
* @method static \Illuminate\Database\Eloquent\Model|null subject()
|
||||
* @method static void reset()
|
||||
*/
|
||||
class LogTarget extends Facade
|
||||
{
|
||||
protected static function getFacadeAccessor()
|
||||
{
|
||||
return ActivityLogTargetableService::class;
|
||||
}
|
||||
}
|
Reference in a new issue