原文:laravel Tinker报错 BadMethodCallException with message 'Call to undefined method Illuminate\Database\Query\Builder

进行模型关联操作, php artisan tinker 执行 user App Models User::find user gt followings gt attach , 报错,模型关联定义都是OK的,google了一番,才发现原来是tinker的bug。直接在控制器中调用就没有报这个错误。如果你用tinker也报这个错了,试一下直接在控制器中操作。by the way,我用的是 . 版本 ...

2018-04-16 10:44 0 2653 推荐指数:

查看详情

Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length()

今天遇到一个错误,没有定义一个openssl_cipher_iv_length()方法,可是我明明开启OpenSSL了啊 如果开启了还报错 只需要把php的目录加入环境变量 -重启电脑 就解决了 但是在我执行composer更新一个插件时,显示出一个错误PHP: syntax ...

Sat May 11 18:31:00 CST 2019 0 888
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM