1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

PHP: How to Add New Column to Existing Table in Laravel

  1. Clicks today:
    0
  2. Clicks this month:
    2
  3. Overall rating:
    0.00/5

PHP » Database Interactions — over 6 years ago
Sometimes you need to add a new column to a table that already exists, for this we can use laravel migrations.

Comments

avatarnicknone over 6 years ago

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 {

avatarhayedia 10 months ago

I like what you guys are up too. Such clever work and reporting! Keep up the excellent works guys I have incorporated you guys to my blogroll. I think it'll improve the value of my web site :). More Info At: קידום אתרים

avatar247instelator 10 months ago

Only wanna input on few general things, The website layout is perfect, the written content is real good : D. More Info At: אינסטלטור בחיפה

avataracrehovot 10 months ago

But wanna remark on few general things, The website design and style is perfect, the subject material is very good : D. More Info At: טכנאי מזגנים ברחובות

avataracrishon 10 months ago

But wanna input on few general things, The website layout is perfect, the written content is real fantastic : D. More Info At: טכנאי מזגנים בראשון לציון

avatarallmylisting 10 months ago

Merely wanna input on few general things, The website style and design is perfect, the subject matter is real fantastic : D. More Info At: אינדקס עסקים

avatarcenterplumber 10 months ago

But wanna input on few general things, The website pattern is perfect, the subject material is real fantastic : D. More Info At: אינסטלטור

avatarasakimweb 10 months ago

Simply wanna remark on few general things, The website design is perfect, the content is rattling superb : D. More Info At: אינדקס עסקים

avatarcoolpageil 10 months ago

Simply wanna input on few general things, The website layout is perfect, the subject material is real good : D. More Info At: קידום אתרים

avatarbusinessads 10 months ago

Only wanna comment on few general things, The website style is perfect, the content material is very fantastic : D. More Info At: אינדקס עסקים

avatarbusinessads 10 months ago

Merely wanna comment on few general things, The website layout is perfect, the subject material is very fantastic : D. More Info At: פרסום מאמרים

avatarbusinessindex 10 months ago

Merely wanna remark on few general things, The website design and style is perfect, the articles is very good : D. More Info At: אינדקס עסקים

avatardesignforunet 10 months ago

Merely wanna comment on few general things, The website design and style is perfect, the content material is real great : D. More Info At: קידום אתרים

avatardesignforunet 10 months ago

But wanna input on few general things, The website style and design is perfect, the subject matter is really great : D. More Info At: אינדקס עסקים

avatardesignforunet 10 months ago

But wanna comment on few general things, The website design and style is perfect, the subject matter is rattling excellent : D. More Info At: מנעולן בפתח תקווה

avatarhayedia 10 months ago

Merely wanna input on few general things, The website pattern is perfect, the written content is very fantastic : D. More Info At: אינדקס עסקים

avatarlocksmithholon 10 months ago

But wanna input on few general things, The website style and design is perfect, the content material is very superb : D. More Info At: מנעולן בחולון

avatarmyarticlesil 10 months ago

Only wanna input on few general things, The website style and design is perfect, the content material is very excellent : D. More Info At: פרסום מאמרים

avatarmyarticlesil 10 months ago

Just wanna input on few general things, The website design and style is perfect, the content is rattling fantastic : D. More Info At: מנעולן ברמת גן

avatarmyadsil 10 months ago

Only wanna comment on few general things, The website style and design is perfect, the content material is rattling fantastic : D. More Info At: אינדקס עסקים

avatarmyadsil 10 months ago

Merely wanna input on few general things, The website style is perfect, the subject material is really superb : D. More Info At: מנעולן ברחובות

avatarmyservicesil 10 months ago

Simply wanna comment on few general things, The website style and design is perfect, the content material is real good : D. More Info At: אינדקס עסקים

avatarlocksmithrishon 10 months ago

Just wanna comment on few general things, The website pattern is perfect, the subject matter is very fantastic : D. More Info At: מנעולן בראשון לציון

avatarngdesign 10 months ago

But wanna comment on few general things, The website pattern is perfect, the articles is really excellent : D. More Info At: תחפושות לפורים

avatarmanulan365 10 months ago

But wanna comment on few general things, The website design is perfect, the subject material is very great : D. More Info At: מנעולן

avatarmanulan365 10 months ago

Only wanna remark on few general things, The website pattern is perfect, the subject material is really great : D. More Info At: אינסטלטור

avatarroofsealingil 10 months ago

Only wanna remark on few general things, The website style is perfect, the content material is real good : D. More Info At: איטום גגות

avatarplumberman 10 months ago

Simply wanna comment on few general things, The website design is perfect, the articles is really superb : D. More Info At: אינסטלטור

avatarsolarrehovot 10 months ago

Merely wanna remark on few general things, The website design is perfect, the subject matter is rattling wonderful : D. More Info At: דודי שמש ברחובות

avatarthepublishes 10 months ago

Merely wanna input on few general things, The website layout is perfect, the content material is real wonderful : D. More Info At: פרסום מאמרים

avataryakirmadbir 10 months ago

Merely wanna input on few general things, The website pattern is perfect, the content is real good : D. More Info At: מדביר

avatartipmeil 10 months ago

Simply wanna input on few general things, The website design is perfect, the subject matter is really great : D. More Info At: פרסום מאמרים

Your Comment

You must be logged in to post a comment.