小编len*_*sda的帖子

Laravel text area validation best practice

I am not sure what kind of validation I should use for comments in E-commerce website that I am currently developing. It is not much I want to validate but I'm worried about security.

So what is the best practice?

My code now looks like this:

$this->validate($request, [
    'comment' => 'max:1000',
]);
Run Code Online (Sandbox Code Playgroud)

Is it safe to leave it like that?

php laravel

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

laravel ×1

php ×1