<commit_before># Laravel Doctrine Scout

```php
'providers' => [
    LaravelDoctrine\Scout\ScoutServiceProvider::class`
]
```

```
'events'     => [
    'listeners'   => [],
    'subscribers' => [
        LaravelDoctrine\Scout\Subscribers\SearachableSubscriber::class
    ]
],
```

```php
class Post implements LaravelDoctrine\Scout\Searchable
{
    use LaravelDoctrine\Scout\Indexable;
}
```

To index all records of a certain entity:

```
php artisan doctrine:scout:import "App\Post"
```

```php
class PostRepository extends LaravelDoctrine\Scout\SearchableRepository 
{
}
```

```php
$this->app->bind(PostRepository::class, function($app) {
    return new PostRepository(
        $app['em'],
        $app['em']->getClassMetadata(Post::class),
        $app->make(Laravel\Scout\EngineManager::class)
    );
});
```

```php
$repository->search('Hello World')->get();
```<commit_msg>Update the readme<commit_after># Laravel Doctrine Scout

<img src="https://cloud.githubusercontent.com/assets/7728097/12726966/cf009822-c91a-11e5-8f19-63ce1d77e8b2.jpg"/>

[![GitHub release](https://img.shields.io/github/release/laravel-doctrine/orm.svg?style=flat-square)](https://packagist.org/packages/laravel-doctrine/orm)
[![Travis](https://img.shields.io/travis/laravel-doctrine/orm.svg?style=flat-square)](https://travis-ci.org/laravel-doctrine/orm)
[![StyleCI](https://styleci.io/repos/39036008/shield)](https://styleci.io/repos/39036008)
[![Scrutinizer](https://img.shields.io/scrutinizer/g/laravel-doctrine/orm.svg?style=flat-square)](https://github.com/laravel-doctrine/orm)
[![Packagist](https://img.shields.io/packagist/dm/laravel-doctrine/orm.svg?style=flat-square)](https://packagist.org/packages/laravel-doctrine/orm)
[![Packagist](https://img.shields.io/packagist/dt/laravel-doctrine/orm.svg?style=flat-square)](https://packagist.org/packages/laravel-doctrine/orm)

*A drop-in Doctrine ORM 2 implementation for Laravel Scout*

```php
$repository->search('<NAME>')->get()
```

## Documentation

[Read the full documentation](http://www.laraveldoctrine.org/docs/current/scout).

## Versions

Version | Supported Laravel Versions
:---------|:----------
1.0.x | 5.3.x

Require this package  

```php
composer require "laravel-doctrine/scout"
```

After adding the package, add the ServiceProvider to the providers array in `config/app.php`

```php
Laravel\Scout\ScoutServiceProvider::class,
LaravelDoctrine\Scout\ScoutServiceProvider::class,
```

To publish the config use:

```php
php artisan vendor:publish --tag="config"
```

## License

This package is licensed under the [MIT license](https://github.com/laravel-doctrine/orm/blob/master/LICENSE).
{'fraction_non_alphanumeric': 0.18291761148904007, 'fraction_numerical': 0.021541950113378686, 'mean_word_length': 4.975169300225733, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 14, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3446421', 'n_tokens_mistral': 989, 'n_tokens_neox': 919, 'n_words': 127}