L02 Laravel 教程 larabbs我从5.8升级到6.0后,登录后台报Str类不存在
我是从5.5版本开始学习的,其中从5.5升级到5.7成功,从5.7升级到5.8成功,从5.8升级到6.0就报错了
我的composer.json文件内容
请问一下这个是后台代码原因还是包的原因呀,我看(https://github.com/summerblue/larabbs/tree/L02_6.x/app)这里面的代码已经和5.5已经完全不一样了
已解决,需要改动改动代码
php artisan config:cache
还是希望教程给一下升级改动点和注意点吧
learnku.com/docs/laravel/6.x/upgra...
If desired, you may update all calls to these helpers to use the
Illuminate\Support\Str
andIlluminate\Support\Arr
classes应该是6.x 不能直接像你图里那样直接用
\Str
了不建议从根命名空间直接引入,最好
use Iluminate\Support\Facade\Str
这样使用