第二步:安装Scout Search扩展
在服务器Flarum目录下运行
composer require clarkwinkelmann/flarum-ext-scout
得到结果如下,看起来应该是OK的
composer require clarkwinkelmann/flarum-ext-scout
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
./composer.json has been updated
Running composer update clarkwinkelmann/flarum-ext-scout
Loading composer repositories with package information
Updating dependencies
Lock file operations: 11 installs, 0 updates, 0 removals
- Locking algolia/algoliasearch-client-php (3.4.1)
- Locking clarkwinkelmann/flarum-ext-scout (0.3.5)
- Locking http-interop/http-factory-guzzle (1.2.0)
- Locking illuminate/http (v8.83.27)
- Locking illuminate/pagination (v8.83.27)
- Locking laravel/scout (v9.8.1)
- Locking meilisearch/meilisearch-php (v1.11.0)
- Locking php-http/discovery (1.20.0)
- Locking symfony/error-handler (v6.3.12)
- Locking symfony/http-kernel (v5.4.48)
- Locking symfony/var-dumper (v6.4.15)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 11 installs, 0 updates, 0 removals
- Downloading php-http/discovery (1.20.0)
- Downloading meilisearch/meilisearch-php (v1.11.0)
- Downloading illuminate/pagination (v8.83.27)
- Downloading symfony/var-dumper (v6.4.15)
- Downloading symfony/error-handler (v6.3.12)
- Downloading symfony/http-kernel (v5.4.48)
- Downloading illuminate/http (v8.83.27)
- Downloading laravel/scout (v9.8.1)
- Downloading http-interop/http-factory-guzzle (1.2.0)
- Downloading algolia/algoliasearch-client-php (3.4.1)
- Downloading clarkwinkelmann/flarum-ext-scout (0.3.5)
php-http/discovery contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "php-http/discovery" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y
- Installing php-http/discovery (1.20.0): Extracting archive
- Installing meilisearch/meilisearch-php (v1.11.0): Extracting archive
- Installing illuminate/pagination (v8.83.27): Extracting archive
- Installing symfony/var-dumper (v6.4.15): Extracting archive
- Installing symfony/error-handler (v6.3.12): Extracting archive
- Installing symfony/http-kernel (v5.4.48): Extracting archive
- Installing illuminate/http (v8.83.27): Extracting archive
- Installing laravel/scout (v9.8.1): Extracting archive
- Installing http-interop/http-factory-guzzle (1.2.0): Extracting archive
- Installing algolia/algoliasearch-client-php (3.4.1): Extracting archive
- Installing clarkwinkelmann/flarum-ext-scout (0.3.5): Extracting archive
3 package suggestions were added by new dependencies, use composer suggest
to see details.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating autoload files
89 packages you are using are looking for funding.
Use the composer fund
command to find out more!
Found 3 security vulnerability advisories affecting 3 packages.
Run "composer audit" for a full list of advisories.
Using version 0.3.5 for clarkwinkelmann/flarum-ext-scout
还需要手动去系统后台
enable Scout Search