From 17b18e8290225b3adef1d19d30a0936b601c80ad Mon Sep 17 00:00:00 2001 From: Eduardo Bizarro Date: Sun, 20 May 2018 19:44:50 -0300 Subject: [PATCH] Laraflux --- composer.json | 10 +++++----- src/Facades/{InfluxDB.php => Laraflux.php} | 2 +- src/Providers/ServiceProvider.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename src/Facades/{InfluxDB.php => Laraflux.php} (89%) diff --git a/composer.json b/composer.json index fb4ea78..4ca2c3c 100755 --- a/composer.json +++ b/composer.json @@ -25,10 +25,10 @@ }, "minimum-stability": "dev", "extra": { - "laravel": { - "providers": [ - "PowerDataHub\\Laraflux\\ServiceProvider" - ] - } + "laravel": { + "providers": [ + "PowerDataHub\\Laraflux\\Providers\\ServiceProvider" + ] + } } } diff --git a/src/Facades/InfluxDB.php b/src/Facades/Laraflux.php similarity index 89% rename from src/Facades/InfluxDB.php rename to src/Facades/Laraflux.php index fe07af4..d3f5791 100644 --- a/src/Facades/InfluxDB.php +++ b/src/Facades/Laraflux.php @@ -5,7 +5,7 @@ use Illuminate\Support\Facades\Facade as LaravelFacade; use InfluxDB\Database; -class InfluxDB extends LaravelFacade +class Laraflux extends LaravelFacade { /** * Get the registered name of the component. diff --git a/src/Providers/ServiceProvider.php b/src/Providers/ServiceProvider.php index f729cb3..4a7d47a 100644 --- a/src/Providers/ServiceProvider.php +++ b/src/Providers/ServiceProvider.php @@ -34,7 +34,7 @@ public function boot() */ public function register() { - $this->app->singleton(InfluxDB::class, function($app) { + $this->app->singleton(InfluxDB::class, function ($app) { $client = new InfluxClient( config('influxdb.host'), config('influxdb.port'),