X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/4ddbc9556bf02ecd31aff093ed4acb200c9fcfd6..refs/pull/5591/head:/app/Entities/Models/Deletion.php diff --git a/app/Entities/Models/Deletion.php b/app/Entities/Models/Deletion.php index 97abb87ff..a73437c94 100644 --- a/app/Entities/Models/Deletion.php +++ b/app/Entities/Models/Deletion.php @@ -2,18 +2,23 @@ namespace BookStack\Entities\Models; -use BookStack\Auth\User; -use BookStack\Interfaces\Deletable; -use BookStack\Interfaces\Loggable; +use BookStack\Activity\Models\Loggable; +use BookStack\Users\Models\User; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\MorphTo; /** + * @property int $id + * @property int $deleted_by + * @property string $deletable_type + * @property int $deletable_id * @property Deletable $deletable */ class Deletion extends Model implements Loggable { + protected $hidden = []; + /** * Get the related deletable record. */ @@ -59,7 +64,7 @@ class Deletion extends Model implements Loggable /** * Get a URL for this specific deletion. */ - public function getUrl($path): string + public function getUrl(string $path = 'restore'): string { return url("/http/source.bookstackapp.com/settings/recycle-bin/{$this->id}/" . ltrim($path, '/')); }