Skip to content

Commit 387a90b

Browse files
committed
Removed deprecated trait Illuminate\Console\DetectsApplicationNamespace
fixed #14
1 parent b8ed136 commit 387a90b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/InstallCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function handle()
5151
*/
5252
protected function registerServiceProvider()
5353
{
54-
$namespace = Str::replaceLast('\\', '', $this->getAppNamespace());
54+
$namespace = Str::replaceLast('\\', '', $this->getLaravel()->getNamespace());
5555

5656
$config = file_get_contents(config_path('app.php'));
5757
$line = "{$namespace}\Providers\MetaTagsServiceProvider::class";
@@ -77,7 +77,7 @@ protected function setAppNamespace()
7777
{
7878
$this->setAppNamespaceOn(
7979
app_path('Providers/MetaTagsServiceProvider.php'),
80-
$this->getAppNamespace()
80+
$this->getLaravel()->getNamespace()
8181
);
8282
}
8383

0 commit comments

Comments
 (0)