Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
FrittenKeeZ committed Dec 5, 2022
1 parent e0dfb94 commit 01c3302
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,20 @@ Setup index settings for a model by implementing the method provided by the cont
```php
use Dwarf\MeiliTools\Contracts\Indexes\MeiliSettings;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Laravel\Scout\Searchable;

class Article extends Model implements MeiliSettings
{
use Searchable;
use SoftDeletes;

/**
* {@inheritdoc}
*/
public function meiliSettings(): array
{
// When using soft deletes '__soft_deleted' will automatically be added to filterable attributes.
return ['filterableAttributes' => ['status']];
}
}
Expand Down

0 comments on commit 01c3302

Please sign in to comment.