php - 如何在laravel中显示一些特殊字符的消息
问题描述
我想显示我已经显示的成功和错误绿色/红色的消息,但是我遇到了问题
当我输入一些其他一些特殊字符的消息时
return \Illuminate\Support\Facades\Redirect::to('')
->with("modal_message_danger", "Heslo, které jste zadali, je neplatné.");
它只显示红色的错误栏,而不是写在里面的消息“Heslo, které jste zadali, je neplatné”。
但是当我输入英语时,例如:
return \Illuminate\Support\Facades\Redirect::to('')
->with("modal_message_danger", "password change is incorrect")
它成功地向我显示了错误消息。
这里发生了什么我需要你的帮助。您的帮助将不胜感激!
@if ($message = \Illuminate\Support\Facades\Session::get('modal_message_danger'))
<div class="alert alert-danger alert-block">
<button type="button" class="close" data-dismiss="alert">×</button>
<span>{{ $message }}</span>
</div>
@endif
解决方案
推荐阅读
- c++ - 当我尝试使用带有参数的priority_queue作为指向结构的指针时,为什么会弹出错误
- kubernetes - 如何测试 ClusterIssuer 求解器?
- python - 通过与段中第一行的差异将数据帧切割成段
- angular - 使用来自 Parent 的 ViewChild 访问嵌套在 ngTemplate 中的组件
- java - 如何在不导致组重新平衡的情况下为 Kafka 消费者实现始终重试策略/自定义重试策略
- java - 不推荐使用 Spring Boot 2.2.0 syncBody
- python - 如何从发送给 beautifulSoup 类的文件中删除 html 元素?
- php - 如何从 Slim 4 中间件进行重定向?
- python - conda 虚拟环境中 pip 安装的包不是隔离的
- bash - 如何从 N 非常大的目录中移动 N 个文件?Mac OSX