Skip to content

Commit

Permalink
Merge pull request #12 from cslant/feature/install-elastic
Browse files Browse the repository at this point in the history
install scout and elastic packages #7
  • Loading branch information
mytruong-z authored Jul 27, 2024
2 parents 9c7889a + 7549736 commit 2861b49
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 2 deletions.
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -68,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",
Expand Down
3 changes: 3 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
parameters:
excludePaths:
- src/Http/Controllers/Base/*.php
9 changes: 9 additions & 0 deletions src/Http/Controllers/Base/BaseCategoryController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace CSlant\Blog\Core\Http\Controllers\Base;

use Botble\Blog\Http\Controllers\API\CategoryController as BotbleCategoryController;

class BaseCategoryController extends BotbleCategoryController
{
}
9 changes: 9 additions & 0 deletions src/Http/Controllers/Base/BasePostController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace CSlant\Blog\Core\Http\Controllers\Base;

use Botble\Blog\Http\Controllers\API\PostController as BotblePostController;

class BasePostController extends BotblePostController
{
}
9 changes: 9 additions & 0 deletions src/Http/Controllers/Base/BaseTagController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace CSlant\Blog\Core\Http\Controllers\Base;

use Botble\Blog\Http\Controllers\API\TagController as BotbleTagController;

class BaseTagController extends BotbleTagController
{
}
8 changes: 8 additions & 0 deletions src/Models/Traits/IsIncrementing.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace CSlant\Blog\Core\Models\Traits;

trait IsIncrementing
{
public $incrementing = true;
}

0 comments on commit 2861b49

Please # to comment.