我正在向微软 Azure 部署一个 Laravel 基本项目,但是每当我尝试执行 php artisan migrate
时都会出现错误:
[2015-06-1314:34:05] production.ERROR: Exception“ Symfony Component Debug Exception FatalErrorException”with message“ Class”not found”in D: home site;
堆栈跟踪:
#0 {main}
有什么问题吗? 非常感谢
迁移类
<?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');
}
}