Closed WebVPF closed 2 years ago
I wouldn't use this plugin yet. It's public, but it's not ready. :)
@WebVPF I'm pretty close to finalising this plugin. Would you be able to post your composer.json
if possible - I just wanna see what might be clashing with this plugin?
Never mind - the problem is because we are targeting Laravel Scout 9, which requires Laravel 8 or 9, but Winter CMS 1.1 only supports Laravel 6. From what I can tell, we can easily support Laravel Scout 8 which still works with Laravel 6.
Fixed by f8a74b7e7cb6fb7b144543853a3e296022934bb3
@bennothommo The error has changed. Plugin is not installed.
composer require winter/wn-search-plugin
composer.json
{
"name": "wintercms/winter",
"description": "Free, open-source, self-hosted CMS platform based on the Laravel PHP Framework. Originally known as October CMS.",
"homepage": "https://wintercms.com",
"type": "project",
"keywords": ["winter", "cms", "wintercms", "laravel", "cmf"],
"license": "MIT",
"authors": [
{
"name": "Alexey Bobkov",
"email": "aleksey.bobkov@gmail.com",
"role": "Original Author"
},
{
"name": "Samuel Georges",
"email": "daftspunky@gmail.com",
"role": "Original Author"
},
{
"name": "Luke Towers",
"email": "wintercms@luketowers.ca",
"role": "Lead Maintainer"
}
],
"support": {
"issues": "https://github.com/wintercms/winter/issues",
"docs": "https://wintercms.github.io/docs/",
"discord": "https://discord.gg/D5MFSPH6Ux",
"source": "https://github.com/wintercms/winter"
},
"require": {
"php": ">=7.2.9",
"winter/storm": "~1.1.2",
"winter/wn-system-module": "~1.1.2",
"winter/wn-backend-module": "~1.1.2",
"winter/wn-cms-module": "~1.1.2",
"laravel/framework": "~6.0",
"wikimedia/composer-merge-plugin": "~2.0.1",
"webvpf/wn-darkbackend-plugin": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^8.4|^9.3.3",
"mockery/mockery": "~1.3.3|^1.4.2",
"fakerphp/faker": "~1.9",
"squizlabs/php_codesniffer": "3.*",
"php-parallel-lint/php-parallel-lint": "^1.0",
"dms/phpunit-arraysubset-asserts": "^0.1.0|^0.2.1"
},
"autoload-dev": {
"classmap": [
"tests/concerns/InteractsWithAuthentication.php",
"tests/fixtures/backend/models/UserFixture.php",
"tests/TestCase.php",
"tests/PluginTestCase.php"
]
},
"scripts": {
"post-create-project-cmd": [
"php artisan key:generate",
"php artisan package:discover"
],
"post-update-cmd": [
"php artisan winter:version",
"php artisan package:discover"
],
"test": [
"phpunit --stop-on-failure"
],
"lint": [
"parallel-lint --exclude vendor --exclude storage --exclude tests/fixtures/plugins/testvendor/goto/Plugin.php ."
],
"sniff": [
"phpcs --colors -nq --report=\"full\" --extensions=\"php\""
]
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"merge-plugin": {
"include": [
"plugins/*/*/composer.json"
],
"recurse": true,
"replace": false,
"merge-dev": false
}
}
}
Darn, I was relying on the changelog being accurate. It seems that due to some commands and functionality we are using (mainly with respect to managing search indexes), we can only target Scout 9, which means that this plugin will only work with Winter 1.2.
The plugin is not installed.
Console message:
Winter CMS 1.1.8 PHP 8.0 (before that was php 7.4) Composer version 2.0.11