简体   繁体   English

laravel的isValid方法到底做什么?

[英]What exactly laravel's isValid method does?

I was reading the Laravel's docs and I've stumbled upon this isValid() method, that returns TRUE or FALSE whether the file is valid or not. 我正在阅读Laravel的文档,偶然发现了这个isValid()方法,无论文件是否有效,该方法都会返回TRUE或FALSE。

But... What this method actually does? 但是...这种方法实际上是做什么的? I know it returns TRUE or FALSE, but what is behind this check? 我知道它返回TRUE或FALSE,但是此检查背后是什么? Over what is checking if is valid or not? 通过什么检查是否有效? I've googled for a while but can't really find something useful... 我已经搜索了一段时间,但找不到真正有用的东西...

Can you guys explain me this? 你们能给我解释一下吗?

Thanks! 谢谢!

这意味着OS / WebServer / php在文件上传过程中是否没有错误,即文件已成功移动到临时位置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM