39 Laravel config内でのパス

検証・本番とあって、各環境にpullしたい場合、
config内にid_rsaを置いておいてconfig_path()を利用する。

$ cat config/remote.php 
    'connections' => [
        'hogehoge' => [
            'host'      => '10.10.100.11',
            'username'  => 'root',
            'password'  => '',
            'key'       => config_path('id_rsa'),
            'keytext'   => '',
            'keyphrase' => '',
            'agent'     => '',
            'timeout'   => 60,
        ],