Skip to content

Commit 01c3302

Browse files
committed
Updated documentation
1 parent e0dfb94 commit 01c3302

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,20 @@ Setup index settings for a model by implementing the method provided by the cont
4949
```php
5050
use Dwarf\MeiliTools\Contracts\Indexes\MeiliSettings;
5151
use Illuminate\Database\Eloquent\Model;
52+
use Illuminate\Database\Eloquent\SoftDeletes;
5253
use Laravel\Scout\Searchable;
5354

5455
class Article extends Model implements MeiliSettings
5556
{
5657
use Searchable;
58+
use SoftDeletes;
5759

5860
/**
5961
* {@inheritdoc}
6062
*/
6163
public function meiliSettings(): array
6264
{
65+
// When using soft deletes '__soft_deleted' will automatically be added to filterable attributes.
6366
return ['filterableAttributes' => ['status']];
6467
}
6568
}

0 commit comments

Comments
 (0)