LoginSignup
0
0

More than 5 years have passed since last update.

artisanコマンド実行時にエラーになる

Posted at

とある改修を行った際に、Artisanコマンドを実行時に以下エラーが出ていた。
PHP Fatal error: Uncaught ReflectionException: Class log does not exist

こちらを参考にしたが、事例に当てはまらず。
PHP7 で Laravel5 を試して出てきたエラー(その1)

githubのissueに近しい事例を発見。

原因はconfigファイル内でurlヘルパー関数を使用していたからだった。
configファイル内では動的な記述ではなく、プレーンテキスト推奨でした。

config.php

return [
    'url'           => [
        'admin'  => url('app/admin'),
    ]
];

参考にしたissue

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0