@@ -25,15 +25,15 @@ After updating composer, add the ServiceProvider to the providers array in `app/
2525
2626``` php
2727'providers' => [
28- ' Nqxcode\LuceneSearch\ServiceProvider' ,
28+ Nqxcode\LuceneSearch\ServiceProvider::class ,
2929],
3030```
3131
3232If you want to use the facade to search, add this to your facades in ` app/config/app.php ` :
3333
3434``` php
3535'aliases' => [
36- 'Search' => ' Nqxcode\LuceneSearch\Facade' ,
36+ 'Search' => Nqxcode\LuceneSearch\Facade::class ,
3737],
3838```
3939## Configuration
@@ -51,13 +51,13 @@ In published config file add descriptions for models which need to be indexed, f
5151
5252 // ...
5353
54- ' namespace\FirstModel' => [
54+ namespace\FirstModel::class => [
5555 'fields' => [
5656 'name', 'full_description', // fields for indexing
5757 ]
5858 ],
5959
60- ' namespace\SecondModel' => [
60+ namespace\SecondModel::class => [
6161 'fields' => [
6262 'name', 'short_description', // fields for indexing
6363 ]
@@ -90,7 +90,7 @@ Example:
9090In config file:
9191
9292``` php
93- ' namespace\FirstModel' => [
93+ namespace\FirstModel::class => [
9494 'fields' => [
9595 'name', 'full_description', // fixed fields for indexing
9696 ],
@@ -143,7 +143,7 @@ Example:
143143In config file:
144144
145145``` php
146- ' namespace\FirstModel' => [
146+ namespace\FirstModel::class => [
147147 'fields' => [
148148 'name', 'full_description',
149149 ],
@@ -168,7 +168,7 @@ By default **boost** is set in **1** for each field. For change of this behavior
168168In config file:
169169
170170``` php
171- ' namespace\FirstModel' => [
171+ namespace\FirstModel::class => [
172172 'fields' => [
173173 'name', // field with default boost
174174 'full_description' => ['boost' => 0.2], // customize boost value
@@ -198,7 +198,7 @@ This filters can be deleted or replaced with others.
198198'analyzer' => [
199199 'filters' => [
200200 // Default stemming filter.
201- ' Nqxcode\Stemming\TokenFilterEnRu' ,
201+ Nqxcode\Stemming\TokenFilterEnRu::class ,
202202 ],
203203
204204 // List of paths to files with stopwords.
0 commit comments