1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | use Illuminate\Database\Eloquent\Model; |
||
6 | use Laravel\Scout\Searchable; |
||
7 | |||
8 | class SolrEngineTestModel extends Model |
||
9 | { |
||
10 | use Searchable; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
11 | |||
12 | /** |
||
13 | * Get the indexable data array for the model. |
||
14 | * |
||
15 | * @return array |
||
16 | */ |
||
17 | public function toSearchableArray() |
||
18 | { |
||
19 | return [ |
||
20 | 'id' => 1, |
||
21 | 'name' => 'Laravel Scout Solr Engine', |
||
22 | ]; |
||
23 | } |
||
24 | } |
||
25 |