Registry / utility / spatie-laravel-searchable

spatie-laravel-searchable

JSON →
library1.13.3phppackagistunverified

Pragmatically search through models and other sources

composer require spatie/laravel-searchable
INSTALL
IMPORT
SIG · SPATIE-LARAVEL-SEA
S
spatie-laravel-searchable
utilityphpv1.13.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Searchable
use Spatie\Searchable\Searchable;

Make a model searchable

use Spatie\Searchable\Searchable; use Spatie\Searchable\SearchResult; class Post extends Model implements Searchable { public function getSearchResult(): SearchResult { return new SearchResult($this, $this->title); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.13.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
spatie-laravel-searchable — pip install spatie-laravel-searchable · libregistry