PHP code example of mbing / think-validate
1. Go to this page and download the library: Download mbing/think-validate library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mbing / think-validate example snippets
return [
//'...' => '...',//你的其他路由配置
'middleware' => [
// ..., //你引入的其他路由中间件
mbing\middleware\ThinkAutoValidate::class,//引入自动验证中间件
],
];