Loading...
本文是根据laravel5.2的情况所写,其他版本可能会有所不同。在laravel里有这么一种方法可以验证表单值:$this->validate($request, [ //title和content字段都是必填的 'title' => 'required|unique:posts|max:255', 'c...