Introduce new Setting model. Set the site name.

This commit is contained in:
James Brooks
2014-11-17 14:45:24 +00:00
parent 8562062fcb
commit ad7e1b7439
6 changed files with 71 additions and 3 deletions
@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSettingsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('settings', function(Blueprint $table)
{
$table->increments('id');
$table->string('name');
$table->text('value')->nullable()->default(null);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('settings');
}
}