1
當我鍵入控制檯 - php artisan make:migration create_website_table --create=website
類CreateTableName未找到PHP工匠
比創造,我沒有編輯任何文件,並運行命令php artisan migrate
現在我想回滾它和它說
[Symfony的\元器件\調試\異常\ FatalErrorException]
類 'CreateWebsiteTable' 未找到
我的移民網站類的代碼
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateWebsiteTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('website', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('website');
}
}
也許有一些命名空間?
有人嗎?請! – codddeerz
嘗試從Laravel項目的根目錄運行「composer dump-autoload」 –