我已经包含了这个Github script来使用Bootstrap Modal制作一个验证表单,所有内容都已正确设置,但是当我包含此脚本时,该表单不会提交,因为有一些错误是好的,但它并没有不在视图中显示它们
控制器
Dim arr3() As Variant
Dim dee As Long
ReDim arr3(UBound(attacks, 1), 1)
For k = 0 To UBound(attacks, 1)
j = 0
For j = 0 To UBound(arr, 1)
If attacks(k, 0) = arr(j, 0) And attacks(k, 1) = arr(j, 2) Then
arr3(dee, 0) = attacks(k, 0)
arr3(dee, 1) = attacks(k, 1)
de = dee + 1
End If
Next j
Next k
查看
$this->validate($request, [
'nom' => 'required|unique:filieres'
]);
答案 0 :(得分:0)
您可以在视图文件中键入此代码
Bundle bundleExtra = new Bundle();
bundleExtra.putString("npa", "1");
AdRequest addRequest = new AdRequest.Builder()
.addNetworkExtrasBundle(AdMobAdapter.class, bundleExtra)
.build();
第二次在您的控制器中输入
@include('includes.form_error')
然后您在“请求”文件夹中创建UserRequest文件,然后键入
public function store(UsersRequest $request)
{
}
出现正确错误后