小编Was*_*ery的帖子

Laravel迁移:类"未找到"

我正在向Microsoft Azure部署Laravel准系统项目,但每当我尝试执行时,php artisan migrate我都会收到错误消息:

[2015-06-13 14:34:05] production.ERROR:异常'Symfony\Component\Debug\Exception\FatalErrorException',在D:\ home\site\vendor\laravel\framework中找不到消息'Class''\SRC \照亮\数据库\迁移\ Migrator.php:328

堆栈跟踪:

 #0 {main}  
Run Code Online (Sandbox Code Playgroud)

可能是什么问题呢?非常感谢你

- 编辑 -

迁移类

<?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 …
Run Code Online (Sandbox Code Playgroud)

php azure symfony laravel

55
推荐指数
8
解决办法
6万
查看次数

标签 统计

azure ×1

laravel ×1

php ×1

symfony ×1