Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/akr4m/searchable
Browse files Browse the repository at this point in the history
  • Loading branch information
akr4m committed Mar 5, 2019
2 parents b0d6587 + 31a039c commit f7550bf
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Searchable, a search trait for Laravel
==========================================

Searchable is a trait for Laravel 4.2+ and Laravel 5.0 that adds a simple search function to Eloquent Models.
Searchable is a trait for Laravel 4.2+ and Laravel 5.8 + that adds a simple search function to Eloquent Models.

Searchable allows you to perform searches in a table giving priorities to each field for the table and it's relations.

Expand All @@ -12,15 +12,15 @@ This is not optimized for big searches, but sometimes you just need to make it s
Simply add the package to your `composer.json` file and run `composer update`.

```
"nicolaslopezj/searchable": "1.*"
composer require akr4m/advanced-search
```

# Usage

Add the trait to your model and your search rules.

```php
use Nicolaslopezj\Searchable\SearchableTrait;
use akr4m\Searchable\SearchableTrait;

class User extends \Eloquent
{
Expand Down Expand Up @@ -133,7 +133,7 @@ Here is an example query

#### Eloquent Model:
```php
use Nicolaslopezj\Searchable\SearchableTrait;
use akr4m\Searchable\SearchableTrait;

class User extends \Eloquent
{
Expand Down Expand Up @@ -212,8 +212,3 @@ having relevance > 6.75
order by `relevance` desc
```

## Contributing

Anyone is welcome to contribute. Fork, make your changes, and then submit a pull request.

[![Support via Gittip](https://rawgithub.com/twolfson/gittip-badge/0.2.0/dist/gittip.png)](https://gratipay.com/nicolaslopezj/)

0 comments on commit f7550bf

Please sign in to comment.