gpt4 book ai didi

php - htmlentities() 期望参数 1 为字符串,数组给定

转载 作者:可可西里 更新时间:2023-11-01 00:02:38 26 4
gpt4 key购买 nike

我正在尝试向 laravel 表单添加一个类。根据需要,该数组作为第三个参数传递,但出现上述错误。

{{ Form::input('text', $variable->name, array('class' => 'form-control')) }}

如果我去掉第三个参数,表单会按预期显示(无样式)。我在这里看不出我做错了什么 - 谁能帮忙?

最佳答案

{{ Form::text('text', $variable->name, array('class' => 'form-control')) }}

关于php - htmlentities() 期望参数 1 为字符串,数组给定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21732931/

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