lundi 13 février 2017

Laravel Migration table not created

I am a new learner of Laravel.And I follow the tutorial to create a articles table.Here's part of my code in /database/migrations/2017_02_13_145946_create_article_table.php

public function up()
{
    //
    Schema::create('articles', function(Blueprint $table)
    {
       $table->increments('id');
       $table->string('title');
       $table->text('body')->nullable();
       $table->integer('user_id');
       $table->timestamps();
    });
}

When I run php artisan migrate the table was not created.I googled the problem and ran php artisan migrate:reset command to delete all the tables.When I ran php artisan migate command again.Nothing was created but only updated the record of migrations table.The table user and password_resets was also not created.

Any ideas what I might be doing wrong?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2ldQviS
via IFTTT

Aucun commentaire:

Enregistrer un commentaire