久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='A6bXZ'></tfoot>
      1. <legend id='A6bXZ'><style id='A6bXZ'><dir id='A6bXZ'><q id='A6bXZ'></q></dir></style></legend>
          <bdo id='A6bXZ'></bdo><ul id='A6bXZ'></ul>
        <i id='A6bXZ'><tr id='A6bXZ'><dt id='A6bXZ'><q id='A6bXZ'><span id='A6bXZ'><b id='A6bXZ'><form id='A6bXZ'><ins id='A6bXZ'></ins><ul id='A6bXZ'></ul><sub id='A6bXZ'></sub></form><legend id='A6bXZ'></legend><bdo id='A6bXZ'><pre id='A6bXZ'><center id='A6bXZ'></center></pre></bdo></b><th id='A6bXZ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='A6bXZ'><tfoot id='A6bXZ'></tfoot><dl id='A6bXZ'><fieldset id='A6bXZ'></fieldset></dl></div>

        <small id='A6bXZ'></small><noframes id='A6bXZ'>

      2. 拉拉維爾 |唯一驗證 where 子句

        Laravel | Unique validation where clause(拉拉維爾 |唯一驗證 where 子句)

            <i id='wGdG7'><tr id='wGdG7'><dt id='wGdG7'><q id='wGdG7'><span id='wGdG7'><b id='wGdG7'><form id='wGdG7'><ins id='wGdG7'></ins><ul id='wGdG7'></ul><sub id='wGdG7'></sub></form><legend id='wGdG7'></legend><bdo id='wGdG7'><pre id='wGdG7'><center id='wGdG7'></center></pre></bdo></b><th id='wGdG7'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='wGdG7'><tfoot id='wGdG7'></tfoot><dl id='wGdG7'><fieldset id='wGdG7'></fieldset></dl></div>
            • <tfoot id='wGdG7'></tfoot>
            • <legend id='wGdG7'><style id='wGdG7'><dir id='wGdG7'><q id='wGdG7'></q></dir></style></legend>
                • <bdo id='wGdG7'></bdo><ul id='wGdG7'></ul>
                    <tbody id='wGdG7'></tbody>

                  <small id='wGdG7'></small><noframes id='wGdG7'>

                  本文介紹了拉拉維爾 |唯一驗證 where 子句的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在嘗試驗證存在的電子郵件地址的輸入,但僅當 company_id 與隨請求傳入的 company_id 相同時才有效.

                  I am trying to validate the input of a email address that exists but only when the company_id is the same as the company_id which is passed in with the request.

                  我收到此錯誤...

                  SQLSTATE[42S22]:未找到列:1054 'where 子句'中的未知列 '1'(SQL:選擇 count(*) 作為來自 company_users 的聚合,其中 email_address = myemail.com 和 1 <> company_id)

                  SQLSTATE[42S22]: Column not found: 1054 Unknown column '1' in 'where clause' (SQL: select count(*) as aggregate from company_users where email_address = myemail.com and 1 <> company_id)

                  我在網上閱讀過,這樣做的方法是將驗證中的表和列關聯起來,這就是我正在做的.

                  I have read online and the way to do it is to associate the table and the column inside of the validation which is what I am doing.

                  這是我當前的代碼...

                  This is my current code...

                  required|email|unique:company_users,email_address,company_id,' . $request->company_id
                  

                  推薦答案

                  這里有一個粗略的想法,你可以實現你的目標

                  Here is a rough idea with this you can achieve what you

                  您可以使用 Rule 類為您自定義驗證規則.

                  You can use Rule class to customize the validation rule for you.

                  'email' => ['required', 'string', 'email', 'max:191',Rule::unique('users')->where(function ($query) use ($request) {
                      return $query->where('company_id', $request->company_id);
                  })],
                  

                  希望能幫到你

                  這篇關于拉拉維爾 |唯一驗證 where 子句的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to use windowing functions efficiently to decide next N number of rows based on N number of previous values(如何有效地使用窗口函數根據 N 個先前值來決定接下來的 N 個行)
                  reuse the result of a select expression in the quot;GROUP BYquot; clause?(在“GROUP BY中重用選擇表達式的結果;條款?)
                  Does ignore option of Pyspark DataFrameWriter jdbc function ignore entire transaction or just offending rows?(Pyspark DataFrameWriter jdbc 函數的 ignore 選項是忽略整個事務還是只是有問題的行?) - IT屋-程序員軟件開發技
                  Error while using INSERT INTO table ON DUPLICATE KEY, using a for loop array(使用 INSERT INTO table ON DUPLICATE KEY 時出錯,使用 for 循環數組)
                  pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調用 o23.load 時發生錯誤 沒有合適的驅動程序)
                  How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe?(如何將 Apache Spark 與 MySQL 集成以將數據庫表作為 Spark 數據幀讀取?)

                  • <small id='xMwRa'></small><noframes id='xMwRa'>

                      <bdo id='xMwRa'></bdo><ul id='xMwRa'></ul>
                      <i id='xMwRa'><tr id='xMwRa'><dt id='xMwRa'><q id='xMwRa'><span id='xMwRa'><b id='xMwRa'><form id='xMwRa'><ins id='xMwRa'></ins><ul id='xMwRa'></ul><sub id='xMwRa'></sub></form><legend id='xMwRa'></legend><bdo id='xMwRa'><pre id='xMwRa'><center id='xMwRa'></center></pre></bdo></b><th id='xMwRa'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='xMwRa'><tfoot id='xMwRa'></tfoot><dl id='xMwRa'><fieldset id='xMwRa'></fieldset></dl></div>
                        <tfoot id='xMwRa'></tfoot>
                          <tbody id='xMwRa'></tbody>
                        <legend id='xMwRa'><style id='xMwRa'><dir id='xMwRa'><q id='xMwRa'></q></dir></style></legend>

                            主站蜘蛛池模板: 伊人网综合 | 久久亚洲精品国产精品紫薇 | 久久久青草婷婷精品综合日韩 | 欧美日韩中文在线观看 | 日韩欧美国产精品一区二区 | 久久激情视频 | 国产精品综合色区在线观看 | 欧美日韩中文字幕 | 亚洲国产精品久久久 | 中文亚洲字幕 | 日韩在线中文 | 九一视频在线观看 | 国产精品视频久久久久久 | 欧美一级欧美三级在线观看 | 欧美精品1区2区3区 精品国产欧美一区二区 | 午夜精品久久久久久久久久久久久 | 日韩日b视频| 久久久美女 | 国产午夜在线观看 | 精久久久 | 中文字幕免费 | 精品一区二区在线观看 | 综合久久久久久久 | 久久国产精彩视频 | 一级毛片视频 | 99久久精品免费 | 狠狠躁躁夜夜躁波多野结依 | 视频一区二区国产 | 一级一级一级毛片 | 欧美激情精品久久久久久变态 | 香蕉久久a毛片 | 精品亚洲永久免费精品 | 黄网在线观看 | 久久香蕉网| 午夜tv免费观看 | 久久久91精品国产一区二区三区 | 欧美亚洲国产精品 | 欧美精品久久久久 | av二区三区 | 久久国内 | 超碰国产在线 |