Use this link https://github.com/JeffreyWay/Laravel-4-Generators
Possible where mistake
in this code : <?php
/*
* Run the migrations.
*
* @return void
/
public function up()
{
Schema::table('tasks', function(Blueprint $table) {
$table->dropColumn('completed');
});
}
/*
* Reverse the migrations.
*
* @return void
/
public function down()
{
Schema::table('tasks', function(Blueprint $table) {
$table->boolean('completed');
});
}
}
but you can Change Content function (down to up) Thanks again alnutile to slove my problem from this link
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint;
class RemoveCompletedFromTasksTable extends Migration {
Use this link https://github.com/JeffreyWay/Laravel-4-Generators
Possible where mistake
in this code : <?php
/* * Run the migrations. * * @return void / public function up() { Schema::table('tasks', function(Blueprint $table) { $table->dropColumn('completed'); }); }
/* * Reverse the migrations. * * @return void / public function down() { Schema::table('tasks', function(Blueprint $table) { $table->boolean('completed'); }); }
}
but you can Change Content function (down to up) Thanks again alnutile to slove my problem from this link use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint;
class RemoveCompletedFromTasksTable extends Migration {