code/database/migrations/2014_10_11_011742_create_gas_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateGasTable extends Migration
{
public function up()
{
Schema::create('gas', function (Blueprint $table) {
$table->string('id')->primary();
$table->timestamps();
$table->softDeletes();
$table->string('name', 20)->unique();
$table->string('email')->nullable();
$table->string('logo')->nullable();
$table->text('message')->nullable();
});
}
public function down()
{
Schema::drop('gas');
}
}