Skip to content

Commit 3b97a3b

Browse files
committed
Use DetectsApplicationNamespace, that only exists in Laravel 5.4
1 parent 264dec6 commit 3b97a3b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"minimum-stability": "dev",
1212
"require": {
1313
"php": ">=5.6.4",
14-
"laravel/framework": "5.3.*|5.4.*",
14+
"laravel/framework": "5.4.*",
1515
"laravel/scout": "^2.0"
1616
},
1717
"autoload": {

src/Services/IndexService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
namespace DamianTW\MySQLScout\Services;
44

5+
use Illuminate\Console\DetectsApplicationNamespace;
56
use Laravel\Scout\Searchable;
6-
use Illuminate\Console\AppNamespaceDetectorTrait;
77
use Illuminate\Support\Facades\DB;
88
use DamianTW\MySQLScout\Events;
99

1010
class IndexService
1111
{
12-
use AppNamespaceDetectorTrait;
12+
use DetectsApplicationNamespace;
1313

1414
protected $modelService;
1515

0 commit comments

Comments
 (0)