Support the ongoing development of Laravel.io →
Configuration Database Eloquent
Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

thanks alnutile

but I need to update table until can be add new column how this?

Last updated 2 years ago.
0

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-columns
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.