迁移文件后找不到Laravel类

我将Laravel Stapler用于图像目的,并且在迁移新表后,我尝试使用artisan migration:refresh之后再显示错误

[Symfony\Component\Debug\Exception\FatalErrorException]
Class ‘AddPhotoFieldsToStaffTable’ not found

但是,在尝试–refresh之前,我可以看到我的迁移文件夹中的文件并使用PHP artisan migration,文件已成功迁移!

生成文件是:

class AddPhotoFieldsToStaffTable extends Migration {

    /**
     * Make changes to the table.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('staff', function(Blueprint $table) {

            $table->string('photo_file_name')->nullable();
            $table->integer('photo_file_size')->nullable()->after('photo_file_name');
            $table->string('photo_content_type')->nullable()->after('photo_file_size');
            $table->timestamp('photo_updated_at')->nullable()->after('photo_content_type');

        });

    }

    /**
     * Revert the changes to the table.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('staff', function(Blueprint $table) {

            $table->dropColumn('photo_file_name');
            $table->dropColumn('photo_file_size');
            $table->dropColumn('photo_content_type');
            $table->dropColumn('photo_updated_at');

        });
    }

}

任何帮助将不胜感激.

解决方法:

使用作曲家dumpautoload解决了这个问题.

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...