mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
update bindle
This commit is contained in:
@@ -10,6 +10,7 @@ use RalphJSmit\Laravel\SEO\Support\SEOData;
|
||||
class Gallery extends Component
|
||||
{
|
||||
public Collection $bindles;
|
||||
public string $search = '';
|
||||
|
||||
public function mount()
|
||||
{
|
||||
@@ -19,6 +20,15 @@ class Gallery extends Component
|
||||
->get();
|
||||
}
|
||||
|
||||
public function updatedSearch($value)
|
||||
{
|
||||
$this->bindles = LibraryItem::query()
|
||||
->where('type', 'bindle')
|
||||
->where('name', 'ilike', "%{$value}%")
|
||||
->latest('id')
|
||||
->get();
|
||||
}
|
||||
|
||||
public function deleteBindle($id)
|
||||
{
|
||||
LibraryItem::query()->find($id)?->delete();
|
||||
|
||||
Reference in New Issue
Block a user