Laravel:【Warning: Ambiguous class resolution】の解決
Laravel:【Warning: Ambiguous class resolution】の解決
『composer dump-autolode』を実行したところ次の黄色で囲まれたこんなメッセージが出ました。
Warning: Ambiguous class resolution, “App\Models\Hoge01” was found in both “~~/app/Models/Hoge01.php” and “~~/app/Models/Hoge02.php”, the first will be used.
Googleさんに訳してもらうと『警告:あいまいなクラス解決』との事。
class名のダブり?
class名の重複を疑い指示されているファイルの確認に向かいます。
~~/app/Models/Hoge01.php
1 2 3 4 |
class Material extends Model { } |
~~/app/Models/Hoge02.php
1 2 3 4 |
class Material extends Model { } |
やっぱりダブりでしたね。手を抜いてコピーで作成したツケが出てきた感じです。
でも簡単なエラーで良かった。
-
前の記事
Laravel:認証エラーの場合ログインページへジャンプ 2019.01.16
-
次の記事
EC-CUBE:ブロック管理の新着商品を改装する 2019.01.17
コメントを残す