diff --git a/composer.json b/composer.json index 5511056..0fbb934 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "torann/laravel-meta-tags", + "name": "howsy/laravel-meta-tags", "keywords": ["meta tags", "meta", "tags", "head", "laravel"], "description": "A package to manage Header Meta Tags", "license": "MIT", @@ -15,10 +15,10 @@ ], "require": { "php": ">=5.5.9", - "illuminate/support": "~5.1" + "illuminate/support": "^7.0|^8.0|^9.0" }, "require-dev": { - "phpunit/phpunit": "~5.0", + "phpunit/phpunit": "^5.0", "mockery/mockery": "^0.9.4" }, "autoload": { diff --git a/src/Torann/LaravelMetaTags/MetaTag.php b/src/Torann/LaravelMetaTags/MetaTag.php index 8446592..561c388 100644 --- a/src/Torann/LaravelMetaTags/MetaTag.php +++ b/src/Torann/LaravelMetaTags/MetaTag.php @@ -58,10 +58,10 @@ class MetaTag /** * @param \Illuminate\Http\Request $request - * @param array $config * @param string $defaultLocale + * @param array $config */ - public function __construct(Request $request, array $config = [], $defaultLocale) + public function __construct(Request $request, $defaultLocale, array $config = []) { $this->request = $request; $this->config = $config; diff --git a/src/Torann/LaravelMetaTags/MetaTagsServiceProvider.php b/src/Torann/LaravelMetaTags/MetaTagsServiceProvider.php index 6a794a1..2eb3e37 100644 --- a/src/Torann/LaravelMetaTags/MetaTagsServiceProvider.php +++ b/src/Torann/LaravelMetaTags/MetaTagsServiceProvider.php @@ -36,8 +36,8 @@ public function register() $this->app->singleton('metatag', function ($app) { return new MetaTag( $app['request'], - $app['config']['meta-tags'], - $app['config']->get('app.locale') + $app['config']->get('app.locale'), + $app['config']['meta-tags'] ); }); }