We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0dfb94 commit 01c3302Copy full SHA for 01c3302
README.md
@@ -49,17 +49,20 @@ Setup index settings for a model by implementing the method provided by the cont
49
```php
50
use Dwarf\MeiliTools\Contracts\Indexes\MeiliSettings;
51
use Illuminate\Database\Eloquent\Model;
52
+use Illuminate\Database\Eloquent\SoftDeletes;
53
use Laravel\Scout\Searchable;
54
55
class Article extends Model implements MeiliSettings
56
{
57
use Searchable;
58
+ use SoftDeletes;
59
60
/**
61
* {@inheritdoc}
62
*/
63
public function meiliSettings(): array
64
65
+ // When using soft deletes '__soft_deleted' will automatically be added to filterable attributes.
66
return ['filterableAttributes' => ['status']];
67
}
68
0 commit comments