Skip to content

Commit 10738b1

Browse files
authored
Added support for laravel 5.4
removed share() method and replaced with singleton as per laravel 5.4^.
1 parent 0c8d393 commit 10738b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Torann/LaravelMetaTags/MetaTagsServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public function boot()
3232
*/
3333
public function register()
3434
{
35-
$this->app['metatag'] = $this->app->share(function ($app) {
35+
// $this->app['metatag'] = $this->app->share(function ($app) { // Removed to support laravel 5.4
36+
$this->app->singleton('metatag', function ($app) {
3637
return new MetaTag(
3738
$app['request'],
3839
$app['config']['meta-tags'],

0 commit comments

Comments
 (0)