第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

根據(jù)我的報(bào)告,我的表單未保存在數(shù)據(jù)庫(kù)中

根據(jù)我的報(bào)告,我的表單未保存在數(shù)據(jù)庫(kù)中

PHP
慕哥6287543 2022-01-08 16:52:53
我正在制作一個(gè)新的報(bào)告系統(tǒng),我剛開(kāi)始,設(shè)計(jì)已經(jīng)完成,但是當(dāng)我按下提交時(shí),數(shù)據(jù)庫(kù)中沒(méi)有發(fā)生任何事情,我得到0條記錄。我的代碼有什么問(wèn)題?或者我需要添加更多內(nèi)容?我的觀點(diǎn):<!-- Modal --><div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">  <div class="modal-dialog" role="document">    <div class="modal-content" style="top: 50px">      <div class="modal-header" style="border-bottom: none">        <button type="button" class="close" data-dismiss="modal" aria-label="Close">          <span aria-hidden="true">&times;</span>        </button>      </div>      <div class="modal-body">        <div class="container">    <div class="row">        <section>        <div class="wizard col-md-6" style="right: 5px;margin: 0px auto">            <div class="wizard-inner">                <div class="connecting-line"></div>                <ul class="nav nav-tabs" role="tablist" style="margin: 0px auto">                    <li role="presentation" class="active">                        <a href="#step1" data-toggle="tab" aria-controls="step1" role="tab" title="Step 1">                            <span class="round-tab">                                <i class="icon-pencil"></i>                            </span>                        </a>                    </li>                    <li role="presentation" class="disabled">                        <a href="#step2" data-toggle="tab" aria-controls="step2" role="tab" title="Step 2">                            <span class="round-tab">                                <i class="icon-note"></i>                            </span>                        </a>
查看完整描述

2 回答

?
阿晨1998

TA貢獻(xiàn)2037條經(jīng)驗(yàn) 獲得超6個(gè)贊

在 Form 標(biāo)簽內(nèi)添加您的表單提交目的地和提交類型。目前表單標(biāo)簽內(nèi)沒(méi)有任何內(nèi)容。并且不要忘記在表單中添加 csrf 字段。


例子:


<form role="form" action="{{ action('CareerSolutionController@careerReport') }}" method="post">

{!! csrf_field() !!}

或者


<form role="form" action="{{ url('career_report') }}" method="post">

{!! csrf_field() !!}


查看完整回答
反對(duì) 回復(fù) 2022-01-08
?
搖曳的薔薇

TA貢獻(xiàn)1793條經(jīng)驗(yàn) 獲得超6個(gè)贊

我看到了問(wèn)題,您從未在刀片中定義表單操作,因此表單不知道該做什么。將您的表單打開(kāi)更改為:

<form role="form" action="{{ action('CareerSolutionController@careerReport') }}>

并且不要忘記在其下方添加 crsf 令牌:

@csrf

或者為方便起見(jiàn),為您的路線添加自定義名稱:

Route::post('career_report', 'CareerSolutionController@careerReport')->as('career.report');

并像這樣以您的形式使用它:

<form role="form" action="{{ route('career.report') }}" method=POST>


查看完整回答
反對(duì) 回復(fù) 2022-01-08
  • 2 回答
  • 0 關(guān)注
  • 153 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)