5/7


今日の内容

昨日から下記のエラーで困っていたの対応した
DevTools failed to load SourceMap: Could not load content for http://127.0.0.1:8080/js/popper.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

1つはモデルの指定し忘れ

laravel5.8を使っている場合なのですが、
postsのマイグレーションに外部キーを追加する所の

database/migrations/2017_05_22_041557_create_posts_table.php
$table->integer('user_id')->unsigned()->default(1);
ここの部分ですが、

$table->bigInteger('user_id')->unsigned()->default(1);
このようにしないとエラーが出てしまいますのでご報告致します。

参考 : Laravel 5.8 にて["SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint"]エラー