I am new to Laravel, and I follow as Laravel Documentationswell as a few tutorial videos. However, I am running this code php artisan migratelocally CMD promptand not creating Database Tablein phpmyadmin. There are a few more similar topics related to this in stackoverflow, but no one solved my problem. Do not specify this duplicate.
Well, everything goes like that. I run this code
php artisan make:migration create_student_table --create=student
and a new file is created in the migration folder as 2016_04_08_061507_create_student_table.php
Then in this file I run this code
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateStudentTable extends Migration
{
public function up()
{
Schema::create('student', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
$table->string('name', 20);
$table->string('email', 255);
});
}
public function down()
{
Schema::drop('student');
}
}
Then in cmdI launched php artisan migrate, but did not create a table student. Instead, it shows this message
[PDOException] SQLSTATE [42S01]: base table or view already exists: 1050 user table already exists
users , , . student . - ?
.