• <b id="l3qpx"><abbr id="l3qpx"></abbr></b>
  • <th id="l3qpx"><progress id="l3qpx"></progress></th>
      <th id="l3qpx"></th>
      <dd id="l3qpx"><font id="l3qpx"></font></dd>
      <th id="l3qpx"></th>
      0712-2888027 189-8648-0214
      微信公眾號

      孝感風信網(wǎng)絡科技有限公司微信公眾號

      當前位置:主頁 > 技術支持 > PHP > laravel擴展包beyondcode/laravel-query-detector N+1 問題捕殺神器

      laravel擴展包beyondcode/laravel-query-detector N+1 問題捕殺神器

      時間:2018-12-07來源:風信官網(wǎng) 點擊: 954次
      beyondcode/laravel-query-detector擴展包是一款查找問題的探測器,可以很方便的幫助開發(fā)者查找潛在的問題。
       
      項目地址:https://github.com/beyondcode/laravel-query-detector
       
      安裝命令:
       
      composer require beyondcode/laravel-query-detector --dev
       
      注意后面有跟參數(shù)--dev,表示該安裝只應用于開發(fā)環(huán)境,而不是發(fā)布環(huán)境中使用。
       
      安裝成功之后,我們將配置文件發(fā)布出來
       
      php artisan vendor:publish --provider=BeyondCode\\QueryDetector\\QueryDetectorServiceProvider
       
      配置文件生成config\querydetector.php
       
      在querydetector.php配置文件中運行以下幾種形式的N+1問題輸出
       
      彈窗Alert:
       
      \BeyondCode\QueryDetector\Outputs\Alert::class
       
      Console:
      \BeyondCode\QueryDetector\Outputs\Console::class
       
      Clockwork:
      \BeyondCode\QueryDetector\Outputs\Clockwork::class
       
      Debugbar:
      \BeyondCode\QueryDetector\Outputs\Debugbar::class
       
      JSON:
      \BeyondCode\QueryDetector\Outputs\Json::class
       
      Log:
      \BeyondCode\QueryDetector\Outputs\Log::class
       
      默認的laravel-query-detector輸出先項為:
       
      'output' => [
              \BeyondCode\QueryDetector\Outputs\Alert::class,
              \BeyondCode\QueryDetector\Outputs\Log::class,
          ]
       
      彈窗Alert和Log形式,你可以根據(jù)開發(fā)的需求進行配置。

      laravel擴展包beyondcode/laravel-query-detector  N+1 問題捕殺神器
      欄目列表
      推薦內(nèi)容
      熱點內(nèi)容
      展開
      欧美一区二区三区免费A级视频,亚洲精品中文字幕综合,动漫精品中文字幕无码第一页,1024亚洲国产综合 亚太影院 柯西贝尔-游戏赚网
    1. <b id="l3qpx"><abbr id="l3qpx"></abbr></b>
    2. <th id="l3qpx"><progress id="l3qpx"></progress></th>
        <th id="l3qpx"></th>
        <dd id="l3qpx"><font id="l3qpx"></font></dd>
        <th id="l3qpx"></th>