<tfoot id='pMo1G'></tfoot>
    <bdo id='pMo1G'></bdo><ul id='pMo1G'></ul>

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

    1. <i id='pMo1G'><tr id='pMo1G'><dt id='pMo1G'><q id='pMo1G'><span id='pMo1G'><b id='pMo1G'><form id='pMo1G'><ins id='pMo1G'></ins><ul id='pMo1G'></ul><sub id='pMo1G'></sub></form><legend id='pMo1G'></legend><bdo id='pMo1G'><pre id='pMo1G'><center id='pMo1G'></center></pre></bdo></b><th id='pMo1G'></th></span></q></dt></tr></i><div id='pMo1G'><tfoot id='pMo1G'></tfoot><dl id='pMo1G'><fieldset id='pMo1G'></fieldset></dl></div>

    2. <legend id='pMo1G'><style id='pMo1G'><dir id='pMo1G'><q id='pMo1G'></q></dir></style></legend>
      1. 如何通过 Eloquent 查询原始数据?

        时间:2023-09-24

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

          • <bdo id='XwUzh'></bdo><ul id='XwUzh'></ul>
          • <legend id='XwUzh'><style id='XwUzh'><dir id='XwUzh'><q id='XwUzh'></q></dir></style></legend>
          • <tfoot id='XwUzh'></tfoot>

                <tbody id='XwUzh'></tbody>
                <i id='XwUzh'><tr id='XwUzh'><dt id='XwUzh'><q id='XwUzh'><span id='XwUzh'><b id='XwUzh'><form id='XwUzh'><ins id='XwUzh'></ins><ul id='XwUzh'></ul><sub id='XwUzh'></sub></form><legend id='XwUzh'></legend><bdo id='XwUzh'><pre id='XwUzh'><center id='XwUzh'></center></pre></bdo></b><th id='XwUzh'></th></span></q></dt></tr></i><div id='XwUzh'><tfoot id='XwUzh'></tfoot><dl id='XwUzh'><fieldset id='XwUzh'></fieldset></dl></div>

                  本文介绍了如何通过 Eloquent 查询原始数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在尝试在我的 Laravel 应用程序中进行查询,并且我想对我的查询使用正常结构.这个类要么使用 Eloquent,所以我需要找到一些东西来做一个完全原始的查询.

                  I am trying to do a query in my Laravel app and I want to use a normal structure for my query. This class either does use Eloquent so I need to find something to do a query totally raw.

                  可能类似于 Model::query($query);.只是那行不通.

                  Might be something like Model::query($query);. Only that doesn't work.

                  推荐答案

                  use DB::statement('your raw query here').希望这会有所帮助.

                  use DB::statement('your raw query here'). Hope this helps.

                  这篇关于如何通过 Eloquent 查询原始数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:更新而不触及时间戳(Laravel) 下一篇:Laravel 多对多自引用表只能以一种方式工作

                  相关文章

                  最新文章

                • <tfoot id='YdGjg'></tfoot>

                • <legend id='YdGjg'><style id='YdGjg'><dir id='YdGjg'><q id='YdGjg'></q></dir></style></legend>

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

                  <i id='YdGjg'><tr id='YdGjg'><dt id='YdGjg'><q id='YdGjg'><span id='YdGjg'><b id='YdGjg'><form id='YdGjg'><ins id='YdGjg'></ins><ul id='YdGjg'></ul><sub id='YdGjg'></sub></form><legend id='YdGjg'></legend><bdo id='YdGjg'><pre id='YdGjg'><center id='YdGjg'></center></pre></bdo></b><th id='YdGjg'></th></span></q></dt></tr></i><div id='YdGjg'><tfoot id='YdGjg'></tfoot><dl id='YdGjg'><fieldset id='YdGjg'></fieldset></dl></div>
                    <bdo id='YdGjg'></bdo><ul id='YdGjg'></ul>