自定义请求Laravel消息的特殊字符

时间:2018-04-07 01:48:17

标签: php laravel-5

您好我正在使用Laravel 5.6版本,我可以在我的.blade.html上显示特殊字符,但现在我正在编辑视图并创建自定义请求,我已经创建了函数规则()和消息() 。但是我在messages()函数中的自定义消息没有显示特殊字符。

显示如下:''unidade deve possuir uma senha entre 3 e60dígitos'

并且消息是:'一个unidade deve possuir uma senha entre 3 e60dígitos'

代码在https://github.com/xatanais/laravel_grandLagoonPark/blob/master/app/Http/Requests/AdminUserRequest.php

有人知道如何修复它吗?

1 个答案:

答案 0 :(得分:0)

我在这里找到了问题Laravel e function (htmlentities) is not fully working, scripts can still be executed (only once)

对于那些在显示数据来自数据库时遇到问题的人,只需使用{{{DATA_NAME}}}代替{{DATA_NAME}}