use BookStack\Entities\Models\Entity;
use BookStack\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
+use Illuminate\Database\Eloquent\Relations\MorphTo;
use Illuminate\Support\Str;
/**
/**
* Get the entity for this activity.
*/
- public function entity()
+ public function entity(): MorphTo
{
if ($this->entity_type === '') {
$this->entity_type = null;