Skip to content

Commit dd99623

Browse files
authored
Merge pull request #6 from BirdyUK/patch-1
Added support for laravel 5.4
2 parents 0c8d393 + 10738b1 commit dd99623

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)