久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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常用目錄路徑獲取方法總結

      下面由Laravel教程欄目給大家介紹laravel 常用目錄路徑獲取 ,希望對需要的朋友有所幫助!

      laravel常用目錄路徑獲取方法總結

      代碼如下:

      1.app_path()  app_path函數(shù)返回app目錄的絕對路徑: $path = app_path();  你還可以使用app_path函數(shù)為相對于app目錄的給定文件生成絕對路徑: $path = app_path('Http/Controllers/Controller.php');  2.base_path()  base_path函數(shù)返回項目根目錄的絕對路徑: $path = base_path();  你還可以使用base_path函數(shù)為相對于應用目錄的給定文件生成絕對路徑: $path = base_path('vendor/bin');  3.config_path()  config_path函數(shù)返回應用配置目錄的絕對路徑: $path = config_path();  4.database_path()  database_path函數(shù)返回應用數(shù)據(jù)庫目錄的絕對路徑: $path = database_path();  5.public_path()  public_path函數(shù)返回public目錄的絕對路徑: $path = public_path();  6.storage_path()  storage_path函數(shù)返回storage目錄的絕對路徑: $path = storage_path();  還可以使用storage_path函數(shù)生成相對于storage目錄的給定文件的絕對路徑: $path = storage_path('app/file.txt');

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