diff --git a/composer.json b/composer.json index b03c3bf..f5e551e 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "lagbox/settings", + "name": "lagbox/laravel-settings", "description": "Laravel persistent settings", "license": "MIT", "keywords": ["laravel", "settings"], @@ -11,16 +11,18 @@ ], "require": { "php": ">=5.6", - "illuminate/support": "5.2.*", - "illuminate/cache": "5.2.*", - "illuminate/events": "5.2.*" + "illuminate/contracts": "5.1.*|5.2.*|5.3.*", + "illuminate/support": "5.1.*|5.2.*|5.3.*", + "illuminate/cache": "5.1.*|5.2.*|5.3.*", + "illuminate/events": "5.1.*|5.2.*|5.3.*", + "illuminate/database": "5.1.*|5.2.*|5.3.*" }, "require-dev": { "phpunit/phpunit": "4.0.*" }, "autoload": { "psr-4": { - "lagbox\\settings\\": "src" + "lagbox\\Settings\\": "src" }, "files": [ "src/helpers.php" diff --git a/src/config/settings.php b/config/settings.php similarity index 100% rename from src/config/settings.php rename to config/settings.php diff --git a/src/database/migrations/2016_02_12_070250_create_settings_table_migration.php b/database/migrations/2016_02_12_070250_create_settings_table_migration.php similarity index 100% rename from src/database/migrations/2016_02_12_070250_create_settings_table_migration.php rename to database/migrations/2016_02_12_070250_create_settings_table_migration.php diff --git a/src/Events/SettingsSaved.php b/src/Events/SettingsSaved.php index 897ffd3..10f1fd1 100644 --- a/src/Events/SettingsSaved.php +++ b/src/Events/SettingsSaved.php @@ -1,6 +1,6 @@ publishes(); @@ -19,6 +24,11 @@ public function boot() $this->app['events']->listen(SettingsSaved::class, SettingsListener::class); } + /** + * Register any bindings with the container. + * + * @return void + */ public function register() { $this->app->singleton('settings', function ($app) { @@ -33,6 +43,11 @@ public function register() $this->app->alias('settings', Settings::class); } + /** + * Assets to publish. + * + * @return void + */ protected function publishes() { $this->publishes([ diff --git a/src/helpers.php b/src/helpers.php index 7622926..90e963f 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -1,17 +1,19 @@