upgrade for laravel 10

This commit is contained in:
spektra2147 2023-11-13 16:39:54 +03:00
parent f64ca05759
commit 8ab99a2935
3 changed files with 79 additions and 25 deletions

View File

@ -15,7 +15,7 @@
}, },
{ {
"name": "Vedat Akdogan", "name": "Vedat Akdogan",
"email" "vedatakdogan@live.com", "email": "vedatakdogan@live.com",
"role": "Developer" "role": "Developer"
} }
], ],

View File

@ -1,8 +1,5 @@
<?php <?php
use Sentry\Laravel\Facade;
use Sentry\Laravel\ServiceProvider;
return [ return [
/* /*
@ -208,8 +205,6 @@ return [
* Streams Service Provider * Streams Service Provider
*/ */
Anomaly\Streams\Platform\StreamsServiceProvider::class, Anomaly\Streams\Platform\StreamsServiceProvider::class,
Sentry\Laravel\ServiceProvider::class,
\Fruitcake\Cors\CorsServiceProvider::class
], ],
/* /*
@ -260,7 +255,6 @@ return [
'URL' => Illuminate\Support\Facades\URL::class, 'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class, 'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class, 'View' => Illuminate\Support\Facades\View::class,
'Sentry' => Sentry\Laravel\Facade::class,
/** /**

View File

@ -11,11 +11,11 @@ return [
| using Laravel Scout. This connection is used when syncing all models | using Laravel Scout. This connection is used when syncing all models
| to the search service. You should adjust this based on your needs. | to the search service. You should adjust this based on your needs.
| |
| Supported: "algolia", "null" | Supported: "algolia", "meilisearch", "database", "collection", "null"
| |
*/ */
'driver' => env('SCOUT_DRIVER', 'search'), 'driver' => env('SCOUT_DRIVER', 'null'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -28,7 +28,7 @@ return [
| |
*/ */
'prefix' => env('SCOUT_PREFIX', 'tntsearch'), 'prefix' => env('SCOUT_PREFIX', ''),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -41,7 +41,64 @@ return [
| |
*/ */
'queue' => false, 'queue' => env('SCOUT_QUEUE', false),
/*
|--------------------------------------------------------------------------
| Database Transactions
|--------------------------------------------------------------------------
|
| This configuration option determines if your data will only be synced
| with your search indexes after every open database transaction has
| been committed, thus preventing any discarded data from syncing.
|
*/
'after_commit' => false,
/*
|--------------------------------------------------------------------------
| Chunk Sizes
|--------------------------------------------------------------------------
|
| These options allow you to control the maximum chunk size when you are
| mass importing data into the search engine. This allows you to fine
| tune each of these chunk sizes based on the power of the servers.
|
*/
'chunk' => [
'searchable' => 500,
'unsearchable' => 500,
],
/*
|--------------------------------------------------------------------------
| Soft Deletes
|--------------------------------------------------------------------------
|
| This option allows to control whether to keep soft deleted records in
| the search indexes. Maintaining soft deleted records can be useful
| if your application still needs to search for the records later.
|
*/
'soft_delete' => false,
/*
|--------------------------------------------------------------------------
| Identify User
|--------------------------------------------------------------------------
|
| This option allows you to control whether to notify the search engine
| of the user performing the search. This is sometimes useful if the
| engine supports any analytics based on this application's users.
|
| Supported engines: "algolia"
|
*/
'identify' => env('SCOUT_IDENTIFY', false),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -55,28 +112,31 @@ return [
*/ */
'algolia' => [ 'algolia' => [
'id' => env('ALGOLIA_APP_ID'), 'id' => env('ALGOLIA_APP_ID', ''),
'secret' => env('ALGOLIA_SECRET'), 'secret' => env('ALGOLIA_SECRET', ''),
], ],
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| TNT Configuration | Meilisearch Configuration
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| Here you may configure your TNT settings. TNT is the default search | Here you may configure your Meilisearch settings. Meilisearch is an open
| indexing mechanism for the Streams Platform. TNT Search is a fully | source search engine with minimal configuration. Below, you can state
| featured full text search engine for PHP. | the host and key information for your own Meilisearch installation.
|
| See: https://www.meilisearch.com/docs/learn/configuration/instance_options#all-instance-options
| |
*/ */
'tntsearch' => [ 'meilisearch' => [
'fuzziness' => env('TNTSEARCH_FUZZINESS', false), 'host' => env('MEILISEARCH_HOST', 'http://localhost:7700'),
'fuzzy' => [ 'key' => env('MEILISEARCH_KEY'),
'prefix_length' => 2, 'index-settings' => [
'max_expansions' => 10, // 'users' => [
'distance' => 2, // 'filterableAttributes'=> ['id', 'name', 'email'],
// ],
], ],
'searchBoolean' => env('TNTSEARCH_BOOLEAN', true),
], ],
]; ];