mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
search
This commit is contained in:
@@ -75,12 +75,6 @@ class LibraryTable extends Component
|
||||
fn($query) => $query
|
||||
->where('libraries.name', $this->currentTab)
|
||||
)
|
||||
->orWhereHas('libraries',
|
||||
fn($query) => $query
|
||||
->where('libraries.parent_id', $parentLibrary->id)
|
||||
->when($term,
|
||||
fn($query) => $query->where('name', 'ilike', '%'.$term.'%'))
|
||||
)
|
||||
)
|
||||
->when(count($this->filters) > 0, fn($query) => $query->whereHas('tags',
|
||||
fn($query) => $query->whereIn('tags.id', $this->filters)))
|
||||
|
||||
@@ -71,9 +71,9 @@ class Library extends Resource
|
||||
ID::make()
|
||||
->sortable(),
|
||||
|
||||
BelongsTo::make(__('Parent'), 'parent', __CLASS__)
|
||||
/*BelongsTo::make(__('Parent'), 'parent', __CLASS__)
|
||||
->searchable()
|
||||
->nullable(),
|
||||
->nullable(),*/
|
||||
|
||||
Text::make('Name')
|
||||
->rules('required', 'string'),
|
||||
|
||||
Reference in New Issue
Block a user