2016-05-23 13 views
2

ルーメンの例外デバッグ出力に問題があります。 デバッグモードを有効にしましたが、正しく動作していないようです。ルーメン5.2のデバッグモードが動作していません

私のconfig/app.php:bootstrap.phpの中

<?php 
return [ 

    /* 
    |-------------------------------------------------------------------------- 
    | Encryption Key 
    |-------------------------------------------------------------------------- 
    | 
    | This key is used by the Illuminate encrypter service and should be set 
    | to a random, 32 character string, otherwise these encrypted strings 
    | will not be safe. Please do this before deploying an application! 
    | 
    */ 
    'env' => 'local', 
    'debug' => true, 

    'key' => env('APP_KEY', 'SomeRandomString!!!'), 

    'cipher' => 'AES-256-CBC', 

    /* 
    |-------------------------------------------------------------------------- 
    | Application Locale Configuration 
    |-------------------------------------------------------------------------- 
    | 
    | The application locale determines the default locale that will be used 
    | by the translation service provider. You are free to set this value 
    | to any of the locales which will be supported by the application. 
    | 
    */ 
    'locale' => env('APP_LOCALE', 'en'), 
    /* 
    |-------------------------------------------------------------------------- 
    | Application Fallback Locale 
    |-------------------------------------------------------------------------- 
    | 
    | The fallback locale determines the locale to use when the current one 
    | is not available. You may change the value to correspond to any of 
    | the language folders that are provided through your application. 
    | 
    */ 
    'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'), 

]; 

私はそう

$app->configure('app'); 

を持って、私はcheked - 設定ファイルが正常にロードされます。

しかし、私のアプリが例外的なルーメンを投げただけでは、「何かが間違っているように見えます。

デバッグ情報はありません。

問題が何ですか?

P.S .env設定ファイルを使用したくありません。

答えて

0

ログからさらに情報を入力できますか?

設定ファイルについては、内腔のconfigureファイルを管理するためにDotenvを使用しています。ブートストラップ/ app.phpにロードされている.envデフォルトの設定ファイル:

(new Dotenv\Dotenv(__DIR__.'/../'))->load(); 

はそのため、あなたがすることにより、独自の設定ファイルのパスと名前を定義することができます。

(new Dotenv\Dotenv($your_config_file_real_path, $your_config_file_name))->load(); 

注意:複数使用することができますあなたが望むのであれば、異なるファイルを読み込んで設定ファイルを作成してください:

(new Dotenv\Dotenv($your_config_file_real_path1, $your_config_file_name1))->load(); 
(new Dotenv\Dotenv($your_config_file_real_path2, $your_config_file_name2))->load(); 
関連する問題