|EntryReview newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|EntryReview newQuery() * @method static \Illuminate\Database\Eloquent\Builder|EntryReview query() * @method static \Illuminate\Database\Eloquent\Builder|EntryReview whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|EntryReview whereDeletedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|EntryReview whereDescription($value) * @method static \Illuminate\Database\Eloquent\Builder|EntryReview whereEntryId($value) * @method static \Illuminate\Database\Eloquent\Builder|EntryReview whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|EntryReview whereRating($value) * @method static \Illuminate\Database\Eloquent\Builder|EntryReview whereTitle($value) * @method static \Illuminate\Database\Eloquent\Builder|EntryReview whereUpdatedAt($value) * @property int $user_id * @method static \Illuminate\Database\Eloquent\Builder|EntryReview whereUserId($value) * @method static \Illuminate\Database\Eloquent\Builder|EntryReview onlyTrashed() * @method static \Illuminate\Database\Eloquent\Builder|EntryReview withTrashed(bool $withTrashed = true) * @method static \Illuminate\Database\Eloquent\Builder|EntryReview withoutTrashed() * @property-read string $description_html * @mixin \Eloquent */ class EntryReview extends Model { use HasXenforoUserId, SoftDeletes; protected $fillable = [ 'entry_id', 'title', 'rating', 'description', 'user_id' ]; public function entry(): BelongsTo { return $this->belongsTo(Entry::class); } public function getDescriptionHtmlAttribute(): string { $converter = new GithubFlavoredMarkdownConverter([ 'html_input' => 'strip', 'allow_unsafe_links' => false, ]); return $converter->convert($this->description)->getContent(); } }