migrations/2017_10_26_001144_create_settings_table.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSettingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create(config('settings.table_name'), function (Blueprint $table) {
$table->string('key')->primary();
$table->longtext('value')->nullable();
$table->string('type_alias');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists(config('settings.table_name'));
}
}