亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

將數據從 jquery 步驟(帶驗證)保存到 3 個不同的數據庫

將數據從 jquery 步驟(帶驗證)保存到 3 個不同的數據庫

PHP
青春有我 2021-08-28 09:15:02
我使用 jquery 步驟創建了一個表單,并且我想要用戶將填充到三個不同數據庫 Practitioner、PractitionerSpecialty、PractitionerCompetenceLevel 的數據。完成form.submit();用于創建請求的表單后。但是在網站上返回 419 錯誤我不確定我是否正確創建了控制器功能,這可能是一個原因。我在blade.php 中的表格:<form method="post" id="practitioner-form" action="/practitioner">        <h3>Practitioner</h3>        <section>            <legend>Practitioner Information</legend>            <div class="j-row">                <div class="j-unit" style="width: 45%; display: inline-block">                    <label for="effective_date" class="j-label">{{trans('personalData.effectiveDate')}}</label>                    <div class="input-group">                        <input name="main_effective_date_create" id="main_effective_date_create"                               type="date" class="form-control required">                    </div>                </div>                <div class="j-unit" style="margin-left: 9%; width: 45%; display: inline-block">                    <label for="expiry_date" class="j-label">{{trans('personalData.expiryDate')}}</label>                    <div class="input-group">                        <input name="main_expiry_date_create" id="main_expiry_date_create"                               type="date" class="form-control">                    </div>                </div>            </div>            <div class="j-row">                <div class="j-unit" style="width: 45%; display: inline-block">                    <label for="phone" class="j-label">{{trans('personalData.phoneNumber')}}</label>                    <div class="input-group">                        <input name="main_phone_create" id="main_phone_create"                               type="tel" class="form-control">                    </div>添加數據到數據庫的路由:Route::post('/practitioner', 'CRUD\Settings\PractitionerController@storePractitioner')->name('addPractitioner');
查看完整描述

1 回答

?
當年話下

TA貢獻1890條經驗 獲得超9個贊

您的表單上缺少某些內容。添加:{{ csrf_field() }}到表單開始標簽之后的表單


查看完整回答
反對 回復 2021-08-28
  • 1 回答
  • 0 關注
  • 137 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號