mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
add webln test page
This commit is contained in:
@@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
use Illuminate\Support\Facades\Cookie;
|
||||
use Spatie\Comments\Models\Concerns\HasComments;
|
||||
use Spatie\EloquentSortable\Sortable;
|
||||
use Spatie\EloquentSortable\SortableTrait;
|
||||
use Spatie\Feed\Feedable;
|
||||
@@ -27,7 +26,6 @@ class LibraryItem extends Model implements HasMedia, Sortable, Feedable
|
||||
use SortableTrait;
|
||||
use HasStatuses;
|
||||
use HasSlug;
|
||||
use HasComments;
|
||||
|
||||
/**
|
||||
* The attributes that aren't mass assignable.
|
||||
@@ -130,25 +128,6 @@ class LibraryItem extends Model implements HasMedia, Sortable, Feedable
|
||||
return $this->belongsToMany(Library::class);
|
||||
}
|
||||
|
||||
/*
|
||||
* This URL will be used in notifications to let the user know
|
||||
* where the comment itself can be read.
|
||||
*/
|
||||
|
||||
public function commentableName(): string
|
||||
{
|
||||
return __('Library Item');
|
||||
}
|
||||
|
||||
public function commentUrl(): string
|
||||
{
|
||||
if ($this->type === 'markdown_article') {
|
||||
return url()->route('article.view', ['libraryItem' => $this]);
|
||||
} else {
|
||||
return url()->route('libraryItem.view', ['libraryItem' => $this]);
|
||||
}
|
||||
}
|
||||
|
||||
public function toFeedItem(): CustomFeedItem
|
||||
{
|
||||
return CustomFeedItem::create()
|
||||
|
||||
Reference in New Issue
Block a user