I created a new project and a new fresh schema, made a very simple setup with a Users table, and tried to run migrations, but the migrator is failing on the first table, which of course is the Users table. I had a lot of trouble with this before, detailed on my previous question, and I ended up literally starting over from scratch. I have a super simple setup and still migrator is failing. Is there a bug? Where can I find out about it? Should I report this as a bug? It's really a discouraging thing for people who are trying to adopt this platform to get stumped like this so early in the process. Should I just ditch migrations and create my tables with sql scripts and move along?
Here is the error I am getting, extremely similar to the one I detailed in that previous question:
"Class 'UsersTable' not found... in src\Illuminate\Database\Migrations\Migrator.php line 297
Here is my migration file:
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateUsersTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// Creates the users table
Schema::create('users', function(Blueprint $table)
{
// $table->engine = 'InnoDB';
$table->increments('id');
$table->string('username', 40)
->nullable()
->default(null);
$table->string('email', 40)
->unique();
$table->string('password', 64);
$table->smallInteger('acct_type')
->unsigned()
->default(1);
$table->string('confirmation_code');
$table->boolean('confirmed')
->default(false);
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}
Frustrated.
composer install