From: Vincent Vanwaelscappel Date: Wed, 13 Mar 2019 15:12:39 +0000 (+0100) Subject: wip #2628 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b800fdb9238b7a61c7f4cc45a92fdb49fce4b75d;p=cubist_cms-back.git wip #2628 @1 --- diff --git a/composer.json b/composer.json index ce10c2c..14f2905 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,8 @@ "cubist/util": "dev-master", "fideloper/proxy": "^4.0", "laravel/tinker": "^1.0", - "predis/predis": "^1.1" + "predis/predis": "^1.1", + "webfactor/laravel-backpack-instant-fields": "^2.1.2" }, "require-dev": { "backpack/generators": "^1.2" diff --git a/src/app/Models/Field.php b/src/app/Models/Field.php new file mode 100644 index 0000000..747292a --- /dev/null +++ b/src/app/Models/Field.php @@ -0,0 +1,14 @@ +increments('id'); + $table->string('name'); + $table->string('type'); + $table->json('options'); + $table->timestamps(); + }); + + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('cubist_fields'); + } +}