Laravelデータベース作成
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateBlogTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { // Schema::create('blog', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->dateTime('created_at'); //$table->timestamp('published_at')->useCurrent(); }); } /** * Reverse the migrations. * * @return void */ public function down() { // Schema::drop('blog'); } }