searchable = $searchable; return $this; } /** * Enable subtitles within the related search results. * * @return $this */ public function withSubtitles() { $this->withSubtitles = true; return $this; } /** * Set the debounce period for use in searchable select inputs. * * @param int $amount * @return $this */ public function debounce($amount) { $this->debounce = $amount; return $this; } /** * Determine if current field are searchable. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request * @return bool */ public function isSearchable(NovaRequest $request) { return is_bool($this->searchable) ? $this->searchable : call_user_func($this->searchable, $request); } }