Path: blob/1.0-develop/app/Models/ActivityLogSubject.php
7432 views
<?php12namespace Pterodactyl\Models;34use Illuminate\Database\Eloquent\Relations\Pivot;56/**7* \Pterodactyl\Models\ActivityLogSubject.8*9* @property int $id10* @property int $activity_log_id11* @property int $subject_id12* @property string $subject_type13* @property ActivityLog|null $activityLog14* @property \Illuminate\Database\Eloquent\Model|\Eloquent $subject15*16* @method static \Illuminate\Database\Eloquent\Builder|ActivityLogSubject newModelQuery()17* @method static \Illuminate\Database\Eloquent\Builder|ActivityLogSubject newQuery()18* @method static \Illuminate\Database\Eloquent\Builder|ActivityLogSubject query()19*20* @mixin \Eloquent21*/22class ActivityLogSubject extends Pivot23{24public $incrementing = true;25public $timestamps = false;2627protected $table = 'activity_log_subjects';2829protected $guarded = ['id'];3031public function activityLog()32{33return $this->belongsTo(ActivityLog::class);34}3536public function subject()37{38$morph = $this->morphTo();39if (method_exists($morph, 'withTrashed')) {40return $morph->withTrashed();41}4243return $morph;44}45}464748