http://laravel.com/docs/migrations#creating-migrations
php artisan migrate:make add_votes_to_user_table --table=users
a great library to help make this stuff easier is https://github.com/JeffreyWay/Laravel-4-Generators btw
thanks alnutile
but I need to update table until can be add new column how this?
Mr. alnutile this link https://github.com/JeffreyWay/Laravel-4-Generators
Possible where mistake
in this code :
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class RemoveCompletedFromTasksTable extends Migration { /** * 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 http://clivern.com/laravel-migrations-part1/ and this link help http://laravel.com/docs/schema#adding-columnsSign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community