【问题标题】:BadMethodCallException Method Illuminate\Translation\Translator::getFromJson does not existBadMethodCallException 方法 Illuminate\Translation\Translator::getFromJson 不存在
【发布时间】:2019-10-09 05:48:08
【问题描述】:
BadMethodCallException
Method Illuminate\Translation\Translator::getFromJson does not exist.


Bad Method Call
Did you mean Illuminate\Translation\Translator::getLine() ?

我已经通过给定的命令进行了尝试,但它对我不起作用。同样的错误 正在显示。

php artisan view:clear
php artisan view:cache

这些也试过了:

php artisan config:cache
php artisan config:clear
php artisan route:clear

我还从 bootstrap/cache 中删除了缓存文件

** 但是直到现在它还没有工作:( **

【问题讨论】:

    标签: laravel-6 laravel-upgrade


    【解决方案1】:

    Laravel 6+ 将 Translator getFromJson() 替换为 get()。如果您找到并替换所有应该解决问题的实例。

    【讨论】:

    • 感谢您的回答。我会在 Sha ALLAH 中尝试一下。
    • 我找到了一个使用getFromJson() .//App/Notification/PasswordReset.php的文件。
    猜你喜欢
    • 2020-01-29
    • 2020-01-23
    • 2020-02-24
    • 2021-11-22
    • 2021-11-18
    • 1970-01-01
    • 1970-01-01
    • 2018-09-20
    • 1970-01-01
    相关资源
    最近更新 更多