mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2024-12-27 06:25:28 +03:00
24 lines
431 B
Plaintext
24 lines
431 B
Plaintext
<?php
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class {{name}}Table extends Migration
|
|
{
|
|
|
|
public function up()
|
|
{
|
|
Schema::create('{{table}}', function(Blueprint $table) {
|
|
$table->increments('id');
|
|
{{schema}}
|
|
{{constraints}}
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
Schema::drop('{{table}}');
|
|
}
|
|
}
|