1
に移行する間は見られないが作成されます。致命的なエラー:クラス「」私は私のクラッセ上しかし、私のデータベース内の列を追加しようとしているLaravel
私のクラス名がadd_meta_to_cities_table.php
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddMetaToCitiesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('cities', function (Blueprint $table) {
$table->text('meta_desc');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
}
です
精度と同じように私はcomposer dump-autoload
の前に走りました。
php artisan migrate
を実行しようとすると、このエラーが発生しますか?
[Symfony\Component\Debug\Exception\FatalThrowableError]
Fatal error: Class 'Table' not found
これはどこから来た可能性がありますか?
この移行のファイル名は何ですか? –
移行を試みる前に 'composer dump-autoload'を実行しましたか? – Burak
ちょうど更新された質問とはい私は –