]> _ Git - cubist_cms-back.git/commitdiff
wip #2628 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 11 Mar 2019 15:22:52 +0000 (16:22 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 11 Mar 2019 15:22:52 +0000 (16:22 +0100)
composer.json
src/Cubist/Cms-back/SayHello.php [deleted file]
src/database/migrations/2019_03_11_155835_create_template_table.php [new file with mode: 0644]

index 8b80dc70c771ad2d5a5ceee154f87b2eff769182..5dcad91c5a8da5b1a875cc70ae6b973c045600b2 100644 (file)
@@ -1 +1,38 @@
-{"name":"cubist\/cms-back","description":"cms-back cubist composer package","type":"library","license":"proprietary","minimum-stability":"dev","autoload":{"psr-0":{"Cubist\\Cms-back":"src\/"}},"authors":[{"name":"Vincent Vanwaelscappel","email":"vincent@cubedesigners.com"}],"require":{"php":">=5.4.0"},"repositories":[{"type":"composer","url":"https:\/\/composer.cubedesigners.com\/"}]}
\ No newline at end of file
+{
+  "name": "cubist\/cms-back",
+  "description": "Cubist Backpack extension",
+  "type": "library",
+  "license": "proprietary",
+  "minimum-stability": "dev",
+  "autoload": {
+    "psr-0": {
+      "Cubist\\Backpack\\": "src"
+    }
+  },
+  "authors": [
+    {
+      "name": "Vincent Vanwaelscappel",
+      "email": "vincent@cubedesigners.com"
+    }
+  ],
+  "require": {
+    "php": "^7.1.3",
+    "backpack/backupmanager": "^1.4",
+    "backpack/crud": "^3.5",
+    "backpack/logmanager": "^2.3",
+    "backpack/menucrud": "^1.0",
+    "backpack/newscrud": "^2.1",
+    "backpack/pagemanager": "^1.1",
+    "backpack/permissionmanager": "^4.0",
+    "backpack/settings": "^2.1"
+  },
+  "require-dev": {
+    "backpack/generators": "^1.2"
+  },
+  "repositories": [
+    {
+      "type": "composer",
+      "url": "https:\/\/composer.cubedesigners.com\/"
+    }
+  ]
+}
\ No newline at end of file
diff --git a/src/Cubist/Cms-back/SayHello.php b/src/Cubist/Cms-back/SayHello.php
deleted file mode 100644 (file)
index 1d6bdf8..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-namespace Cubist\Cms-back;
-class SayHello
-{
-        public static function world()
-        {
-                return 'Hello World, Composer!';
-        }
-}
\ No newline at end of file
diff --git a/src/database/migrations/2019_03_11_155835_create_template_table.php b/src/database/migrations/2019_03_11_155835_create_template_table.php
new file mode 100644 (file)
index 0000000..0148969
--- /dev/null
@@ -0,0 +1,49 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+
+class CreateTemplateTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::create('cubist_templates', function (Blueprint $table) {
+            $table->increments('id');
+            $table->string('key')->unique();
+            $table->string('name');
+            $table->string('description')->nullable();
+            $table->string('parent')->nullable();
+            $table->json('tabs')->default('[]');
+            $table->json('fields')->default('[]');
+            $table->tinyInteger('active');
+            $table->timestamps();
+        });
+
+        Schema::create('cubist_subforms', function (Blueprint $table) {
+            $table->increments('id');
+            $table->string('key')->unique();
+            $table->string('name');
+            $table->string('description')->nullable();
+            $table->string('parent')->nullable();
+            $table->json('fields')->default('[]');
+            $table->tinyInteger('active');
+            $table->timestamps();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::drop('cubist_templates');
+        Schema::drop('cubist_subforms');
+    }
+}