gpt4 book ai didi

laravel - 为什么 Laravel 助手在 5.8 版本中被弃用?

转载 作者:行者123 更新时间:2023-12-02 17:16:34 25 4
gpt4 key购买 nike

我是一名快乐的 Laravel 用户,我喜欢 Laravel 助手。它们非常易于使用:

{{ str_limit($text) }}

但真的不明白为什么会这样:

{{\Illuminate\Support\Str::limit($text)}}

为什么......?

最佳答案

The reason for deprecating them in Laravel 5.8 being that they add a lot of fucntions to the global namespace and in addition to that they migth conflict withe packages as well. Taylor Otwell has said in the PR ,

关于laravel - 为什么 Laravel 助手在 5.8 版本中被弃用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56835242/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com