https://github.com/matthewbdaly/laravel-postgres-full-text-search
Add Postgres full text search to your models
https://github.com/matthewbdaly/laravel-postgres-full-text-search
Last synced: 3 months ago
JSON representation
Add Postgres full text search to your models
- Host: GitHub
- URL: https://github.com/matthewbdaly/laravel-postgres-full-text-search
- Owner: matthewbdaly
- License: mit
- Created: 2017-12-02T17:46:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-06T23:51:36.000Z (over 7 years ago)
- Last Synced: 2025-01-21T07:09:09.202Z (5 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-postgres-full-text-search
[](https://travis-ci.org/matthewbdaly/laravel-postgres-full-text-search)
[](https://coveralls.io/github/matthewbdaly/laravel-postgres-full-text-search?branch=master)Add Postgres full text search to your models. Currently in development.
Installation
------------```
composer require matthewbdaly/laravel-postgres-full-text-search
```Usage
-----This package provides a trait that you can add to your models. You need to specify the searchable fields as follows:
```php
protected $searchable = [
'title',
'content'
];
```You can then use the `search($text)` scope with Eloquent to search against the searchable fields.