久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      laravel怎么設(shè)置全局方法

      設(shè)置方法:1、app目錄下建一個(gè)Common文件夾,里面新建一個(gè)“function.php”文件,用于存放公共函數(shù);2、配置“composer.json”文件;3、在項(xiàng)目目錄下,執(zhí)行“composer dump-autoload”語句即可。

      laravel怎么設(shè)置全局方法

      本教程操作環(huán)境:windows7系統(tǒng)、Laravel5版、Dell G3電腦。

      laravel設(shè)置全局方法

      1、在app下建一個(gè)Common文件夾 在Common下建一個(gè)function.php 放入公共函數(shù)

      function test(){    echo 'this is a test'; }

      2、在項(xiàng)目目錄下,配置composer.json,加入以下代碼

      "autoload": {     "files":[         "app/Common/function.php"     ] }

      3、在項(xiàng)目目錄下執(zhí)行下面命令

      composer dump-autoload

      贊(0)
      分享到: 更多 (0)
      ?
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)