我正在将一个 Laravel 基础项目部署到 Microsoft Azure,但每当我尝试执行 php artisan migrate
时,就会出现以下错误:
[2015-06-13 14:34:05] production.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class '' not found' in D:\home\site\vendor\laravel\framework\src\Illuminate\Database\Migrations\Migrator.php:328
堆栈跟踪:
#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');
}
}
Erroneous data format for unserializing 'Symfony\Component\Routing\CompiledRoute'
。我该如何解决? - AbdullahErroneous data format for unserializing 'Symfony\Component\Routing\CompiledRoute'
可以通过以下步骤解决: