2
0
mirror of https://github.com/ZorgCC/lumen-generators.git synced 2025-01-15 06:47:55 +03:00
2015-09-26 22:43:06 +01:00

24 lines
435 B
Plaintext

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class {{name}}Migration extends Migration
{
public function up()
{
Schema::create('{{table}}', function(Blueprint $table) {
$table->increments('id');
{{schema}}
{{constraints}}
$table->timestamps();
});
}
public function down()
{
Schema::drop('{{table}}');
}
}