sidebar in cms

This commit is contained in:
Kevin Adametz 2019-02-14 13:49:53 +01:00
parent ed80b25b85
commit 30d5ca3b44
10 changed files with 969 additions and 378 deletions

View file

@ -0,0 +1,42 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSidebarWidgetsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection('mysql_stern')->create('sidebar_widgets', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('component')->nullable();
$table->text('html')->nullable();
$table->text('show_at')->nullable();
$table->tinyInteger('pos')->unsigned()->nullable();
$table->boolean('active')->default(true);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::connection('mysql_stern')->dropIfExists('sidebar_widgets');
}
}
AppBundle:SidebarWidget