diff --git a/composer.json b/composer.json index 08b6698..2faeccc 100644 --- a/composer.json +++ b/composer.json @@ -31,14 +31,12 @@ ], "require": { "php": "^8.1|^8.2", - "outl1ne/nova-translations-loader": "^5.0" + "spatie/laravel-analytics": "^5.0.3", + "laravel/framework": "^10.0" }, "require-dev": { "laravel/nova": "^4.0", - "laravel/pint": "^1.10", - "nunomaduro/larastan": "2.0", - "orchestra/testbench": "^7.0", - "phpunit/phpunit": "^9.5" + "laravel/pint": "^1.10" }, "autoload": { "psr-4": { @@ -60,14 +58,10 @@ "config": { "sort-packages": true, "allow-plugins": { - "php-http/discovery": true, - "pestphp/pest-plugin": true + "php-http/discovery": true } }, "scripts": { - "post-autoload-dump": [ - "@php vendor/bin/testbench package:discover --ansi" - ], "lint": [ "./vendor/bin/pint" ], diff --git a/src/Abstract/GoogleAnalyticsCounter.php b/src/Abstract/GoogleAnalyticsCounter.php index e6a9a9e..f66d4f4 100644 --- a/src/Abstract/GoogleAnalyticsCounter.php +++ b/src/Abstract/GoogleAnalyticsCounter.php @@ -10,11 +10,10 @@ abstract class GoogleAnalyticsCounter extends Value { - public function __construct(string $name = null, string $metrics = null) + public function __construct(string $name = null) { parent::__construct(); $this->name = $name ?? __($this->title); - $this->metrics = $metrics; } /** diff --git a/src/NovaGoogleAnalyticsCardsServiceProvider.php b/src/NovaGoogleAnalyticsCardsServiceProvider.php index 3c864c5..7fd1a0f 100644 --- a/src/NovaGoogleAnalyticsCardsServiceProvider.php +++ b/src/NovaGoogleAnalyticsCardsServiceProvider.php @@ -19,7 +19,7 @@ public function boot() __DIR__.'/../config/nova-google-analytics-cards.php' => config_path('nova-google-analytics-cards.php'), ], 'config'); - $this->loadTranslations(__DIR__.'/../lang', 'nova-google-analytics-cards', true); +// $this->loadTranslations(__DIR__.'/../lang', 'nova-google-analytics-cards', true); } /** diff --git a/tests/.gitkeep b/tests/.gitkeep deleted file mode 100644 index e69de29..0000000