forked from pterodactyl/panel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update backup logic to use activity logs, not audit logs
- Loading branch information
1 parent
cbecfff
commit 2fc5a73
Showing
12 changed files
with
224 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
namespace Pterodactyl\Models; | ||
|
||
use Illuminate\Database\Eloquent\Relations\Pivot; | ||
|
||
/** | ||
* \Pterodactyl\Models\ActivityLogSubject. | ||
* | ||
* @property int $id | ||
* @property int $activity_log_id | ||
* @property int $subject_id | ||
* @property string $subject_type | ||
* @property \Pterodactyl\Models\ActivityLog|null $activityLog | ||
* @property \Illuminate\Database\Eloquent\Model|\Eloquent $subject | ||
* | ||
* @method static \Illuminate\Database\Eloquent\Builder|ActivityLogSubject newModelQuery() | ||
* @method static \Illuminate\Database\Eloquent\Builder|ActivityLogSubject newQuery() | ||
* @method static \Illuminate\Database\Eloquent\Builder|ActivityLogSubject query() | ||
* @mixin \Eloquent | ||
*/ | ||
class ActivityLogSubject extends Pivot | ||
{ | ||
public $incrementing = true; | ||
public $timestamps = false; | ||
|
||
protected $table = 'activity_log_subjects'; | ||
|
||
protected $guarded = ['id']; | ||
|
||
public function activityLog() | ||
{ | ||
return $this->belongsTo(ActivityLog::class); | ||
} | ||
|
||
public function subject() | ||
{ | ||
return $this->morphTo(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.