我正在将一个Laravel barebone项目部署到Microsoft Azure,但每当我try 执行php artisan migrate
时,就会出现错误:
[2015-06-13 14:34:05]生产.错误:异常"Symfony\Component\Debug\exception\FatalErrorException",在D:\home\site\vendor\laravel\framework\src\light\Database\Migrations\Migrator中显示消息"Class""not found".菲律宾:328
堆栈跟踪:
#0 {main}
有什么问题吗?非常感谢你
--编辑--
Migration Class
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function(Blueprint $table)
{
$table->bigIncrements('id');
$table->string('name', 50);
$table->string('surname', 50);
$table->bigInteger('telephone');
$table->string('email', 50)->unique();
$table->string('username', 50)->unique();
$table->string('password', 50);
$table->boolean('active')->default(FALSE);
$table->string('email_confirmation_code', 6);
$table->enum('notify', ['y', 'n'])->default('y');
$table->rememberToken();
$table->timestamps();
$table->index('username');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}