Add Laravel Options package

This commit is contained in:
Bubka 2020-02-26 19:18:48 +01:00
parent 960faa7c2d
commit 48edaa6907
3 changed files with 96 additions and 1 deletions

View File

@ -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.*",

64
composer.lock generated
View File

@ -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",

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOptionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('options', function (Blueprint $table) {
$table->increments('id');
$table->string('key')->unique();
$table->text('value');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('options');
}
}