Skip to content

Commit

Permalink
Improved Laravel Package Detect
Browse files Browse the repository at this point in the history
  • Loading branch information
eusonlito committed Sep 3, 2023
1 parent ecbf2e8 commit 00f5f3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Eusonlito/LaravelMeta/MetaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public function register()
$this->app->singleton(Meta::class, function () {
return new Meta(config('meta'));
});

$this->app->alias(Meta::class, 'meta');
}

/**
Expand All @@ -46,7 +48,7 @@ public function register()
*/
public function provides()
{
return ['meta'];
return [Meta::class, 'meta'];
}

/**
Expand Down

0 comments on commit 00f5f3e

Please sign in to comment.