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"]エラー
Author And Source
この問題について(5/7), 我々は、より多くの情報をここで見つけました https://qiita.com/KONTA2019/items/f1590578a507025bb1de著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .