From 48edaa6907eebdd0f1f8d0189d5d0cfbfb83a45a Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Wed, 26 Feb 2020 19:18:48 +0100 Subject: [PATCH] Add Laravel Options package --- composer.json | 1 + composer.lock | 64 ++++++++++++++++++- ...2017_03_03_100000_create_options_table.php | 32 ++++++++++ 3 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2017_03_03_100000_create_options_table.php diff --git a/composer.json b/composer.json index 383a08d1..f73de9f7 100644 --- a/composer.json +++ b/composer.json @@ -9,6 +9,7 @@ "license": "MIT", "require": { "php": "^7.1.3", + "appstract/laravel-options": "^3.0", "fideloper/proxy": "^4.0", "khanamiryan/qrcode-detector-decoder": "^1.0", "laravel/framework": "5.8.*", diff --git a/composer.lock b/composer.lock index a6d0c0e7..e9f201ee 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,70 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "10378cb8a477dbb2e47e8800a62fe942", + "content-hash": "5dee139310062586317c9425413e71e3", "packages": [ + { + "name": "appstract/laravel-options", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/appstract/laravel-options.git", + "reference": "904f566b3b05ea10f5c752737fcd24f068703917" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/appstract/laravel-options/zipball/904f566b3b05ea10f5c752737fcd24f068703917", + "reference": "904f566b3b05ea10f5c752737fcd24f068703917", + "shasum": "" + }, + "require": { + "illuminate/database": "^5.4|^6.0", + "illuminate/support": "^5.4|^6.0", + "php": ">=5.6" + }, + "require-dev": { + "orchestra/database": "^3.7", + "orchestra/testbench": "~3.7" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Appstract\\Options\\OptionsServiceProvider" + ], + "aliases": { + "Option": "Appstract\\Options\\OptionFacade" + } + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Appstract\\Options\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gijs Jorissen", + "email": "hello@appstract.team", + "homepage": "https://appstract.team", + "role": "Developer" + } + ], + "description": "Global options loaded from the database", + "homepage": "https://github.com/appstract/laravel-options", + "keywords": [ + "appstract", + "laravel-options" + ], + "time": "2019-11-18T21:20:27+00:00" + }, { "name": "beberlei/assert", "version": "v3.2.7", diff --git a/database/migrations/2017_03_03_100000_create_options_table.php b/database/migrations/2017_03_03_100000_create_options_table.php new file mode 100644 index 00000000..7ede4402 --- /dev/null +++ b/database/migrations/2017_03_03_100000_create_options_table.php @@ -0,0 +1,32 @@ +increments('id'); + $table->string('key')->unique(); + $table->text('value'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('options'); + } +}