From 4221201b8aa2cd0690790ad485eca56195ae539e Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Tue, 23 Jul 2024 00:43:57 +0700 Subject: [PATCH 1/4] feat: install scout and elastic packages #7 --- composer.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ab11504..f81635a 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,9 @@ } }, "require": { - "php": "^8.1" + "php": "^8.1", + "laravel/scout": "^10.10", + "matchish/laravel-scout-elasticsearch": "^v7.7" }, "require-dev": { "friendsofphp/php-cs-fixer": "^v3.0", From 3c08d000ddda562530d9bf1b6e55f030fbcf190f Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Tue, 23 Jul 2024 00:59:42 +0700 Subject: [PATCH 2/4] fix: add trust php http in config #7 --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index f81635a..8b766b5 100644 --- a/composer.json +++ b/composer.json @@ -70,7 +70,8 @@ "sort-packages": true, "allow-plugins": { "pestphp/pest-plugin": true, - "phpstan/extension-installer": true + "phpstan/extension-installer": true, + "php-http/discovery": true } }, "minimum-stability": "dev", From 4765afb27dbe256d765d96254569f5011a1880ea Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Sun, 28 Jul 2024 01:52:38 +0700 Subject: [PATCH 3/4] fix: move base code into blog core --- src/Http/Controllers/Base/BaseCategoryController.php | 9 +++++++++ src/Http/Controllers/Base/BasePostController.php | 9 +++++++++ src/Http/Controllers/Base/BaseTagController.php | 9 +++++++++ src/Models/Traits/IsIncrementing.php | 8 ++++++++ 4 files changed, 35 insertions(+) create mode 100644 src/Http/Controllers/Base/BaseCategoryController.php create mode 100644 src/Http/Controllers/Base/BasePostController.php create mode 100644 src/Http/Controllers/Base/BaseTagController.php create mode 100644 src/Models/Traits/IsIncrementing.php diff --git a/src/Http/Controllers/Base/BaseCategoryController.php b/src/Http/Controllers/Base/BaseCategoryController.php new file mode 100644 index 0000000..24b514d --- /dev/null +++ b/src/Http/Controllers/Base/BaseCategoryController.php @@ -0,0 +1,9 @@ + Date: Sun, 28 Jul 2024 01:54:49 +0700 Subject: [PATCH 4/4] fix: move phpstan baseline ignore error to blog core --- phpstan-baseline.neon | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index e69de29..9f53d0b 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -0,0 +1,3 @@ +parameters: + excludePaths: + - src/Http/Controllers/Base/*.php