feat: increase gallery grid from 4 to 5 columns per row on desktopfeat: increase gallery grid from 4 to 5 columns per row on desktop
This commit is contained in:
140
config/scout.php
Normal file
140
config/scout.php
Normal file
@@ -0,0 +1,140 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Search Engine
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'driver' => env('SCOUT_DRIVER', 'meilisearch'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'prefix' => env('SCOUT_PREFIX', env('MEILI_PREFIX', '')),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Queue Data Syncing
|
||||
|--------------------------------------------------------------------------
|
||||
| Always queue Scout index operations so they never block HTTP requests.
|
||||
*/
|
||||
|
||||
'queue' => [
|
||||
'connection' => env('SCOUT_QUEUE_CONNECTION', env('QUEUE_CONNECTION', 'redis')),
|
||||
'queue' => env('SCOUT_QUEUE_NAME', 'search'),
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Database Transactions
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'after_commit' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Chunk Sizes
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'chunk' => [
|
||||
'searchable' => 500,
|
||||
'unsearchable' => 500,
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Soft Deletes
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'soft_delete' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Identify User
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'identify' => env('SCOUT_IDENTIFY', false),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Meilisearch
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'meilisearch' => [
|
||||
'host' => env('MEILISEARCH_HOST', 'http://localhost:7700'),
|
||||
'key' => env('MEILISEARCH_KEY'),
|
||||
|
||||
/*
|
||||
| Index-level settings pushed via: php artisan scout:sync-index-settings
|
||||
*/
|
||||
'index-settings' => [
|
||||
/*
|
||||
* Key must match the full Meilisearch index name (prefix + model index).
|
||||
* Prefix is controlled by MEILI_PREFIX / SCOUT_PREFIX env variable.
|
||||
* Default local dev: 'artworks'. Production: 'skinbase_prod_artworks'.
|
||||
*/
|
||||
env('SCOUT_PREFIX', env('MEILI_PREFIX', '')) . 'artworks' => [
|
||||
'searchableAttributes' => [
|
||||
'title',
|
||||
'tags',
|
||||
'author_name',
|
||||
'description',
|
||||
],
|
||||
'filterableAttributes' => [
|
||||
'tags',
|
||||
'category',
|
||||
'content_type',
|
||||
'orientation',
|
||||
'resolution',
|
||||
'author_id',
|
||||
'is_public',
|
||||
'is_approved',
|
||||
],
|
||||
'sortableAttributes' => [
|
||||
'created_at',
|
||||
'downloads',
|
||||
'likes',
|
||||
'views',
|
||||
],
|
||||
'rankingRules' => [
|
||||
'words',
|
||||
'typo',
|
||||
'proximity',
|
||||
'attribute',
|
||||
'sort',
|
||||
'exactness',
|
||||
],
|
||||
'typoTolerance' => [
|
||||
'enabled' => true,
|
||||
'minWordSizeForTypos' => [
|
||||
'oneTypo' => 4,
|
||||
'twoTypos' => 8,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Algolia (unused but required by package)
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'algolia' => [
|
||||
'id' => env('ALGOLIA_APP_ID', ''),
|
||||
'secret' => env('ALGOLIA_SECRET', ''),
|
||||
],
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user