{"id":1382,"date":"2018-10-10T00:24:59","date_gmt":"2018-10-09T15:24:59","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=1382"},"modified":"2019-04-02T17:22:00","modified_gmt":"2019-04-02T08:22:00","slug":"%e4%bf%9d%e5%ad%98%e7%89%88%ef%bc%81laravel%e3%81%ae-env%e3%81%ae%e5%90%84%e9%a0%85%e7%9b%ae%e3%81%ae%e6%84%8f%e5%91%b3%e3%81%af%ef%bc%9f%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=1382","title":{"rendered":"\u4fdd\u5b58\u7248\uff01Laravel\u306e.env\u3067\u3067\u304d\u308b\u3053\u3068\u5927\u5168"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u306e<a href=\"https:\/\/blog.capilano-fw.com\/?p=1344\">\u6c38\u4e45\u4fdd\u5b58\u7248\uff01Laravel\u30fbCache\u306e\u4f7f\u3044\u65b9\u5927\u5168<\/a>\u3067\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u65b9\u5f0f\u306e\u8a2d\u5b9a\u306b<code>.env<\/code>\u3092\u4f7f\u3063\u3066\u5207\u308a\u66ff\u3048\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3001\u3053\u306e<code>.env<\/code>\u30d5\u30a1\u30a4\u30eb\u3002\u3088\u304f\u4f7f\u3046\u3068\u306f\u8a00\u3063\u3066\u3082\u300c\u3058\u3083\u3042\u3001\u5168\u9805\u76ee\u306e\u610f\u5473\u3092\u77e5\u3063\u3066\u308b\uff1f\uff1f\u300d\u3068\u805e\u304b\u308c\u308b\u3068\u7d50\u69cb\u77e5\u3089\u306a\u3044\u9805\u76ee\u3082\u3042\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u305d\u3053\u3067\uff01<\/p>\n<p>\u4eca\u56de\u306f\u3001Laravel\u306e\u8a2d\u5b9a\u306e\u57fa\u672c\u3068\u306a\u308b<code>.env<\/code>\u304c\u4e00\u4f53\u3069\u3093\u306a\u610f\u5473\u3092\u3082\u3063\u3066\u3044\u308b\u306e\u304b\u3092\u307e\u3068\u3081\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u3082\u4fdd\u5b58\u7248\u7684\u306a\u4f4d\u7f6e\u3065\u3051\u3067\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u5099\u5fd8\u9332\u3068\u3057\u3066\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-731 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/07\/panda_2.png\" alt=\"\" width=\"149\" height=\"120\" \/><\/p>\n<p>\u203b\u5b9f\u884c\u74b0\u5883\u306fLaravel 5.7\u3067\u3059\u3002<\/p>\n<h1 id=\"app_name\">APP_NAME\uff1a \u30b5\u30a4\u30c8\u540d<\/h1>\n<p><code>APP_NAME<\/code>\u306f\u958b\u767a\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u306e\u540d\u524d\u3067\u3059\u304c\u3001\u3053\u306e\u9805\u76ee\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b<code>config()<\/code>\u3092\u4f7f\u3063\u305f\u30b5\u30a4\u30c8\u540d\u306e\u53d6\u5f97\u306b\u5f71\u97ff\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre>echo <strong>config('app.name');<\/strong> \/\/ APP_NAME\u304c\u53cd\u6620\u3055\u308c\u308b<\/pre>\n<p>\u307e\u305f\u3001\u5b9f\u306f\u3053\u306e<code>APP_NAME<\/code>\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u30fb\u30ad\u30fc\u3084\u30bb\u30c3\u30b7\u30e7\u30f3\u540d\u3068\u3057\u3066\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u4f8b\u3048\u3070\u30ad\u30e3\u30c3\u30b7\u30e5\u30fb\u30b7\u30b9\u30c6\u30e0\u306b<code>apc<\/code>\u3084<code>memcached<\/code>\u3092\u4f7f\u3046\u5834\u5408\u3001\u4ed6\u306e\u30b5\u30a4\u30c8\u3067\u3082\u540c\u3058\u540d\u524d\u306e\u30ad\u30fc\u3092\u4f7f\u3063\u3066\u3057\u307e\u3046\u3068\u3001\u4e00\u4f53\u3069\u3061\u3089\u3067\u4f7f\u3046\u3079\u304d\u30c7\u30fc\u30bf\u304c\u5206\u304b\u3089\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u304b\u3089\u3067\u3059\u3002\uff08\u3064\u307e\u308a\u3001\u5171\u901a\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30fb\u30b7\u30b9\u30c6\u30e0\u3092\u5171\u6709\u3059\u308b\u304b\u3089\u3067\u3059\uff09<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4e00\u610f\u306a\u30ad\u30fc\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u30b5\u30a4\u30c8\u540d\u304c\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b<code>APP_NAME<\/code>\u304c\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u4ee5\u4e0b\u306e\uff12\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>\/config\/cache.php<\/li>\n<li>\/config\/session.php<\/li>\n<\/ul>\n<h1>APP_ENV\uff1a \u74b0\u5883\u540d<\/h1>\n<p>\u958b\u767a\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u306e\u5b9f\u884c\u74b0\u5883\u3092\u6307\u5b9a\u3059\u308b\u9805\u76ee\u3067\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001\u6307\u5b9a\u3059\u308b\u9805\u76ee\u3068\u3057\u3066\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u6319\u3052\u3089\u308c\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<ul>\n<li>local\u3000\u30fb\u30fb\u30fb\u3000\u30ed\u30fc\u30ab\u30eb\uff08\u958b\u767a\uff09<\/li>\n<li>stating\u3000\u30fb\u30fb\u30fb\u3000\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0<\/li>\n<li>production\u3000\u30fb\u30fb\u30fb\u3000\u672c\u756a<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001<code>APP_ENV<\/code>\u3067\u6307\u5b9a\u3057\u305f\u74b0\u5883\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306b\u5f71\u97ff\u3057\u307e\u3059\u3002<\/p>\n<pre>$env = <strong>app()-&gt;environment()<\/strong>; \/\/ local\u306a\u3069<\/pre>\n<pre>if(<strong>app()-&gt;isLocal()<\/strong>) {\r\n\r\n    echo '\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u3059\u3002';\r\n\r\n}<\/pre>\n<p>\u305d\u306e\u305f\u3081\u3001\u958b\u767a\u74b0\u5883\u3060\u3051\u3067\u5229\u7528\u3059\u308b<code>Seeder<\/code>\u306a\u3069\u3067\u4f7f\u3046\u3068\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h1>APP_KEY\uff1a \u6697\u53f7\u5316\u306b\u4f7f\u308f\u308c\u308b\u30ad\u30fc<\/h1>\n<p><code>APP_KEY<\/code>\u306e\u5024\u306f\u3001Laravel\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3068\u5404\u81ea\u30e9\u30f3\u30c0\u30e0\u3067\u4f5c\u6210\u3055\u308c\u308b\u305f\u3081\u3001\u3053\u306e\u30ad\u30fc\u306f\uff08\u307b\u307c\uff09\u5b8c\u5168\u306b\u4e16\u754c\u3067\u3072\u3068\u3064\u3060\u3051\u3057\u304b\u5b58\u5728\u3057\u306a\u3044\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u3053\u306e\u30ad\u30fc\u306f\u6697\u53f7\u5316\u306b\u95a2\u9023\u3059\u308b\u4ee5\u4e0b\u306e\u5834\u9762\u3067\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><code>encrypt()<\/code>, <code>decrypt()<\/code>\u306a\u3069\u6697\u53f7\u5316\uff0f\u5fa9\u53f7\u3059\u308b<\/li>\n<li>\u30d1\u30b9\u30ef\u30fc\u30c9\u30fb\u30ea\u30de\u30a4\u30f3\u30c0\u30fc\u3067\u4f7f\u308f\u308c\u308b\u30c8\u30fc\u30af\u30f3\u3092\u3064\u304f\u308b<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001\u3053\u306e<code>.env<\/code>\u306e\u30ad\u30fc\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u81ea\u52d5\u7684\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><strong>php artisan key:generate<\/strong><\/pre>\n<p>\u203b \u305f\u3060\u3057\u6c17\u3092\u3064\u3051\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u306f\u3001\u524d\u306e\u30ad\u30fc\u3067\u6697\u53f7\u5316\u3057\u305f\u30c7\u30fc\u30bf\u3092\u65b0\u3057\u3044\u30ad\u30fc\u3067\u306f\u5fa9\u53f7\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u305f\u6697\u53f7\u5316\u30c7\u30fc\u30bf\u304c\u3042\u308b\u5834\u5408\u306f\u7279\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h1>APP_DEBUG\uff1a \u30c7\u30d0\u30c3\u30b0\u306e\u8868\u793a\u8a2d\u5b9a<\/h1>\n<p><code>APP_DEBUG<\/code>\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u3092\u8868\u793a\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u8a2d\u5b9a\u3059\u308b\u5834\u6240\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u8a2d\u5b9a\u3059\u308b\u5024\u306f<code>true<\/code>\u304b<code>false<\/code>\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u306f<code>true<\/code>\uff09<\/p>\n<p>\u5b9f\u969b\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u307e\u305a\u306f\u3001<\/p>\n<pre>APP_DEBUG=<strong>true<\/strong><\/pre>\n<p>\u306e\u5834\u5408\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1386\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/laravel_error.png\" alt=\"\" width=\"640\" height=\"367\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/laravel_error.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/laravel_error-300x172.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Laravel\u3067\u30b5\u30a4\u30c8\u958b\u767a\u3092\u3057\u305f\u3053\u3068\u304c\u3042\u308b\u4eba\u306a\u3089\u3001\u304a\u99b4\u67d3\u307f\u306e\u30da\u30fc\u30b8\u3068\u3044\u3063\u3066\u3044\u3044\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u3053\u306e\u30da\u30fc\u30b8\u3067\u306f\u8a73\u3057\u3044\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u3001\u30a8\u30e9\u30fc\u306e\u5834\u6240\u306a\u3069\u3092\u6559\u3048\u3066\u304f\u308c\u308b\u306e\u3067\u958b\u767a\u306b\u306f\u5fc5\u9808\u3068\u3044\u3063\u3066\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3067\u306f\u3001\u9006\u306b<\/p>\n<pre>APP_DEBUG=<strong>false<\/strong><\/pre>\n<p>\u306e\u5834\u5408\u306f\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\uff1f\uff1f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1387\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/laravel_error_2.png\" alt=\"\" width=\"640\" height=\"367\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/laravel_error_2.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/laravel_error_2-300x172.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u4eca\u5ea6\u306f\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u306f\u5168\u304f\u8868\u793a\u3055\u308c\u305a\u3001\u7802\u6f20\u306e\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u306f\u5e38\u306b<code>APP_DEBUG<\/code>\u306f<code>true<\/code>\u3067\u554f\u984c\u306a\u3044\u3067\u3059\u304c\u3001\u8ab0\u3082\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u672c\u756a\u74b0\u5883\u3067\u306f<code>false<\/code>\u306b\u3057\u3066\u304a\u304f\u3053\u3068\u3092\u5f37\u304f\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u305c\u306a\u3089\u3001\u30a8\u30e9\u30fc\u60c5\u5831\u306b\u306f\u4e0d\u6b63\u30a2\u30af\u30bb\u30b9\u3092\u8a66\u307f\u308b\u4eba\u305f\u3061\u306b\u3068\u3063\u3066\u6709\u76ca\u306a\u60c5\u5831\u304c\u305f\u304f\u3055\u3093\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30a8\u30e9\u30fc\u60c5\u5831\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1388\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/laravel_error_3.png\" alt=\"\" width=\"303\" height=\"104\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/laravel_error_3.png 303w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/laravel_error_3-300x103.png 300w\" sizes=\"auto, (max-width: 303px) 100vw, 303px\" \/><\/p>\n<p>\u305d\u3046\u3067\u3059\u3002<br \/>\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u3084\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001Laravel\u3068\u306f\u95a2\u4fc2\u306a\u3044\u8a71\u3067\u3059\u304c\u3001HTTP\u30d8\u30c3\u30c0\u30fc\u60c5\u5831\u306b\u542b\u307e\u308c\u308b\u300cServer\u60c5\u5831\uff08apache\u3084nginx\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\uff09\u300d\u3082\u6d88\u3057\u3066\u7f6e\u3044\u305f\u65b9\u304c\u3088\u308a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u5f37\u3044\u3068\u3044\u3048\u307e\u3059\u3002\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u3070\u308c\u308b\u3068\u3001\u3059\u3067\u306b\u5e83\u304f\u77e5\u3089\u308c\u3066\u3044\u308b\u30d0\u30b0\u3092\u5229\u7528\u3057\u3066\u4e0d\u6b63\u30a2\u30af\u30bb\u30b9\u3055\u308c\u3084\u3059\u304f\u306a\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<h1>APP_URL\uff1a \u30b5\u30a4\u30c8\u306eURL<\/h1>\n<p><code>APP_URL<\/code>\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b5\u30a4\u30c8\u306eURL\u306b\u95a2\u9023\u3059\u308b\u90e8\u5206\u3067\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>echo <strong>config('app.url');<\/strong> \/\/ \u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306eURL<\/pre>\n<pre>echo <strong>config('filesystems.disks.public.url')<\/strong>; \/\/ *****\/storage<\/pre>\n<p>\u306a\u304a\u3001\u30d8\u30eb\u30d1\u30fc\u95a2\u6570\u306e<code>url()<\/code>\u306f<code>APP_URL<\/code>\u306e\u60c5\u5831\u3092\u4f7f\u3063\u3066\u3044\u305d\u3046\u3067\u3059\u304c\u3001\u5b9f\u969b\u306b\u306f<code>$_SERVER['host']<\/code>\u306e\u60c5\u5831\u304c\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>LOG_CHANNEL\uff1a \u30ed\u30b0\u60c5\u5831\u306e\u8a2d\u5b9a<\/h1>\n<p>Laravel\u306e\u30ed\u30b0\u8a2d\u5b9a\u306f\u3001<code>stack<\/code>\u3068\u306a\u3063\u3066\u3044\u3066\u3001\u8907\u6570\u306e\u30ed\u30b0\u304c\u6709\u52b9\u306b\u306a\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\uff08\u305f\u3060\u3057\u3001<code>stack<\/code>\u306e\u4e2d\u8eab\u3092\u8a2d\u5b9a\u3059\u308b\u90e8\u5206\u3067\u306f\u3001\u57fa\u672c\u3068\u306a\u308b<code>single<\/code>\u304c\u3072\u3068\u3064\u3060\u3051\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u5b9f\u969b\u306b\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5229\u7528\u3055\u308c\u308b\u30ed\u30b0\u306f\u3072\u3068\u3064\u3068\u306a\u3063\u3066\u3044\u307e\u3059\uff09<\/p>\n<p>\u307e\u305f\u3001<code>LOG_CHANNEL<\/code>\u3067\u6307\u5b9a\u3067\u304d\u308b\u306e\u306f\u3001\u4ee5\u4e0b\u306e8\u30bf\u30a4\u30d7\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>stack\u3000\u30fb\u30fb\u30fb\u3000\u8907\u6570\u306e\u30ed\u30b0\u3092\u8a2d\u5b9a\u53ef\u80fd\u306b\u3059\u308b\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\uff09<\/li>\n<li>single\u3000\u30fb\u30fb\u30fb\u3000\u3072\u3068\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u30ed\u30b0\u60c5\u5831\u3092\u8ffd\u52a0\u3057\u3066\u66f8\u304d\u8fbc\u3093\u3067\u3044\u304f\u5f62\u5f0f<\/li>\n<li>daily\u3000\u30fb\u30fb\u30fb\u3000\u65e5\u3054\u3068\u306b\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u5f62\u5f0f\u3002<\/li>\n<li>slack\u3000\u30fb\u30fb\u30fb\u3000slack\u306b\u30ed\u30b0\u51fa\u529b\u3059\u308b\u5f62\u5f0f\u3002<a href=\"https:\/\/blog.capilano-fw.com\/?p=264\">Laravel 5.6\u3067\u306e\u89e3\u8aac\u306f\u3053\u3061\u3089<\/a><\/li>\n<li>monolog\u3000\u30fb\u30fb\u30fb\u3000<a href=\"https:\/\/github.com\/Seldaek\/monolog\" target=\"_blank\" rel=\"noopener noreferrer\">Monolog<\/a>\u3092\u4f7f\u3063\u305f\u30ed\u30b0\u65b9\u5f0f<\/li>\n<li>syslog\u3000\u30fb\u30fb\u30fb\u3000\u30b7\u30b9\u30c6\u30e0\u306e\u30ed\u30b0\u306b\u51fa\u529b \u203b<\/li>\n<li>errorlog\u3000\u30fb\u30fb\u30fb\u3000\u30b7\u30b9\u30c6\u30e0\u306e\u30ed\u30b0\u306b\u51fa\u529b \u203b<\/li>\n<li>custom\u3000\u30fb\u30fb\u30fb\u3000\u72ec\u81ea\u306e\u30ed\u30b0\u51fa\u529b<\/li>\n<\/ul>\n<p>\u203b \u4f8b\u3048\u3070\u3001<code>nginx<\/code>\u306e\u5834\u5408\u3060\u3068<code>\/var\/log\/nginx\/access.log<\/code>\u3068<code>\/var\/log\/nginx\/error.log<\/code><\/p>\n<h1>DB_*****\uff1a \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u63a5\u7d9a\u60c5\u5831<\/h1>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u63a5\u7d9a\u60c5\u5831\u306f\u4ee5\u4e0b\u306e\uff16\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>DB_CONNECTION<\/li>\n<li>DB_HOST<\/li>\n<li>DB_PORT<\/li>\n<li>DB_DATABASE<\/li>\n<li>DB_USERNAME<\/li>\n<li>DB_PASSWORD<\/li>\n<\/ul>\n<p>\u3072\u3068\u3064\u305a\u3064\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>DB_CONNECTION<\/h2>\n<p>\u5229\u7528\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7a2e\u985e\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u306e\u60c5\u5831\u306f\u3001<code>config\/database.php<\/code>\u306e<code>connections<\/code>\u5185\u304b\u3089\u9078\u3076\u3053\u3068\u306b\u306a\u308a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u4ee5\u4e0b\u306e\uff14\u3064\u304c\u5229\u7528\u53ef\u80fd\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>mysql\u3000\u30fb\u30fb\u30fb\u3000MySQL<\/li>\n<li>pgsql\u3000\u30fb\u30fb\u30fb\u3000PostgreSQL<\/li>\n<li>sqlite\u3000\u30fb\u30fb\u30fb\u3000SQLite<\/li>\n<li>sqlsrv\u3000\u30fb\u30fb\u30fb\u3000SQL Server<\/li>\n<\/ul>\n<p>\u203b \u3082\u3057<code>MongoDB<\/code>\u3092\u4f7f\u3044\u305f\u3044\u5834\u5408\u306f<a href=\"https:\/\/github.com\/jenssegers\/laravel-mongodb\" target=\"_blank\" rel=\"noopener noreferrer\">laravel-mongodb<\/a>\u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5229\u7528\u3059\u308b\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>DB_HOST<\/h2>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30db\u30b9\u30c8\u3067\u3059\u3002\u901a\u5e38\u306f\u30ed\u30fc\u30ab\u30eb\u306e<code>127.0.0.1<\/code>\u306b\u306a\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3057\u3087\u3046\u3002\u307e\u305f\u30ed\u30fc\u30ab\u30eb\u30db\u30b9\u30c8\u306e\u5834\u5408\u306f\u3001<code>localhost<\/code>\u3068\u3057\u3066\u3082\u63a5\u7d9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>DB_PORT<\/h2>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u5229\u7528\u3059\u308b\u30dd\u30fc\u30c8\u756a\u53f7\u3067\u3059\u3002<br \/>\nMySQL\u306e\u5834\u5408\u306f\u901a\u5e38<code>3306<\/code>\u304c\u5229\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>DB_DATABASE<\/h2>\n<p>\u5229\u7528\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3067\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001<code>laravel57<\/code>\u306a\u3069\u306e\u3088\u3046\u306b\u30b5\u30a4\u30c8\u540d\u306b\u95a2\u9023\u3057\u305f\u540d\u524d\u304c\u591a\u304f\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>DB_USERNAME<\/h2>\n<p>\u5229\u7528\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u540d\u3067\u3059\u3002<br \/>\n\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u306f<code>root<\/code>\u306a\u3069\u304c\u591a\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2>DB_PASSWORD<\/h2>\n<p>\u5229\u7528\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<p>\u203b \u3061\u306a\u307f\u306b\u3001<code>DB_CONNECTION<\/code><strong>\u4ee5\u5916<\/strong>\u306e\u8a2d\u5b9a\u304c\u5229\u7528\u3055\u308c\u308b\u306e\u306f\u3001<code>MySQL<\/code>\u3001<code>PostgreSQL<\/code>\u3001<code>SQL Server<\/code>\u306e\uff13\u3064\u3067\u3059\u3002\uff08SQLite\u306f\u30c7\u30fc\u30bf\u3092\u30d5\u30a1\u30a4\u30eb\u3067\u7ba1\u7406\u3059\u308b\u305f\u3081\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\uff09<\/p>\n<h1>BROADCAST_DRIVER\uff1a \u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\u8a2d\u5b9a<\/h1>\n<p>\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\uff08Laravel\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u30d6\u30e9\u30a6\u30b6\u306b\u901a\u77e5\u3059\u308b\u6a5f\u80fd\u3001\u8981\u306f\u30c1\u30e3\u30c3\u30c8\u3092\u60f3\u50cf\u3057\u3066\u304f\u3060\u3055\u3044\uff09\u306e\u7a2e\u985e\u3092\u8a2d\u5b9a\u3059\u308b\u9805\u76ee\u3067\u3059\u3002<\/p>\n<p>\u5229\u7528\u3067\u304d\u308b\u7a2e\u985e\u306f\u3001\u4ee5\u4e0b\u306e\uff14\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>pusher\u3000\u30fb\u30fb\u30fb\u3000<a href=\"https:\/\/pusher.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Pusher<\/a>\u3092\u5229\u7528\u3059\u308b\u5834\u5408<\/li>\n<li>redis<\/li>\n<li>log<\/li>\n<li>null<\/li>\n<\/ul>\n<h1>CACHE_DRIVER\uff1a \u30ad\u30e3\u30c3\u30b7\u30e5\u65b9\u5f0f<\/h1>\n<p>\u5229\u7528\u3059\u308b\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u65b9\u5f0f\u3092\u8a2d\u5b9a\u3059\u308b\u9805\u76ee\u3067\u3059\u3002<br \/>\n\u8a73\u3057\u304f\u306f\u3001<a href=\"https:\/\/blog.capilano-fw.com\/?p=1344\">\u6c38\u4e45\u4fdd\u5b58\u7248\uff01Laravel\u30fbCache\u306e\u4f7f\u3044\u65b9\u5927\u5168<\/a>\u306e\u300c\u69d8\u3005\u306a\u30ad\u30e3\u30c3\u30b7\u30e5\u65b9\u5f0f\u3092\u4f7f\u3044\u305f\u3044\u300d\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h1>QUEUE_CONNECTION\uff1a \u30ad\u30e5\u30fc\u65b9\u5f0f<\/h1>\n<p>\u5229\u7528\u3059\u308b\u30ad\u30e5\u30fc\u306e\u65b9\u5f0f\u3092\u8a2d\u5b9a\u3059\u308b\u9805\u76ee\u3067\u3059\u3002<br \/>\n\u8a2d\u5b9a\u3067\u304d\u308b\u306e\u306f\u3001\u4ee5\u4e0b\u306e\uff15\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>sync<\/li>\n<li>database<\/li>\n<li>beanstalkd\u3000\u30fb\u30fb\u30fb\u3000Beanstalk\u3092\u5229\u7528\u3059\u308b\u65b9\u5f0f<\/li>\n<li>sqs\u3000\u30fb\u30fb\u30fb\u3000<a href=\"https:\/\/aws.amazon.com\/jp\/sqs\/\" target=\"_blank\" rel=\"noopener noreferrer\">Amazon SQS<\/a>\u3092\u5229\u7528\u3059\u308b\u65b9\u5f0f<\/li>\n<li>redis<\/li>\n<\/ul>\n<h1>SESSION_*****\uff1a \u30bb\u30c3\u30b7\u30e7\u30f3\u95a2\u9023<\/h1>\n<h2>SESSION_DRIVER<\/h2>\n<p>\u5229\u7528\u3059\u308b\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u65b9\u5f0f\u3092\u8a2d\u5b9a\u3059\u308b\u9805\u76ee\u3067\u3059\u3002\u6307\u5b9a\u3067\u304d\u308b\u306e\u306f\u4ee5\u4e0b\u306e\uff17\u3064\u3002<\/p>\n<ul>\n<li>file<\/li>\n<li>cookie<\/li>\n<li>database<\/li>\n<li>apc<\/li>\n<li>memcached<\/li>\n<li>redis<\/li>\n<li>array<\/li>\n<\/ul>\n<h2>SESSION_LIFETIME<\/h2>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u7d99\u7d9a\u6642\u9593\uff08\u5206\uff09\u3067\u3059\u3002<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f120\u5206\uff08\uff1d\uff12\u6642\u9593\uff09\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001<code>php.ini<\/code>\u306e<code>session.gc_maxlifetime<\/code>\u3084<code>session.cookie_lifetime<\/code>\u306e\u5024\u304c\u3053\u308c\u3088\u308a\u3082\u77ed\u3044\u5834\u5408\u306f\u3001\u305d\u3061\u3089\u304c\u512a\u5148\u3055\u308c\u307e\u3059\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1403\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/session_lifetime.png\" alt=\"\" width=\"974\" height=\"415\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/session_lifetime.png 974w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/session_lifetime-300x128.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/session_lifetime-768x327.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<h1>REDIS_*****\uff1a Redis\u95a2\u9023<\/h1>\n<h2>REDIS_HOST,\u00a0REDIS_PASSWORD,\u00a0REDIS_PORT<\/h2>\n<p><code>redis<\/code>\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306e\u63a5\u7d9a\u60c5\u5831\u3067\u3059\u3002<\/p>\n<h1>MAIL_*****\uff1a \u30e1\u30fc\u30eb\u95a2\u9023<\/h1>\n<h2>MAIL_DRIVER<\/h2>\n<p>\u5229\u7528\u3059\u308b\u30e1\u30fc\u30eb\u9001\u4fe1\u65b9\u5f0f\u3092\u6307\u5b9a\u3059\u308b\u9805\u76ee\u3067\u3059\u3002<br \/>\n\u6307\u5b9a\u3067\u304d\u308b\u306e\u306f\u4ee5\u4e0b\u306e\uff18\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>smtp<\/li>\n<li>sendmail\u3000\u30fb\u30fb\u30fb\u3000Laravel 5.0\u307e\u3067\u306f<code>mail<\/code>\u3082OK\u3002<\/li>\n<li>mailgun\u3000\u30fb\u30fb\u30fb\u3000<a href=\"https:\/\/www.mailgun.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">mailgun<\/a>\u3092\u5229\u7528\u3059\u308b\u65b9\u5f0f<\/li>\n<li>mandrill\u3000\u30fb\u30fb\u30fb\u3000<a href=\"http:\/\/mandrill.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">mandrill<\/a>\u3092\u5229\u7528\u3059\u308b\u65b9\u5f0f\u3000\u203b\uff11<\/li>\n<li>ses\u3000\u30fb\u30fb\u30fb\u3000<a href=\"https:\/\/aws.amazon.com\/jp\/ses\/\" target=\"_blank\" rel=\"noopener noreferrer\">Amazon SES<\/a>\u3092\u5229\u7528\u3059\u308b\u65b9\u5f0f<\/li>\n<li>sparkpost\u3000\u30fb\u30fb\u30fb\u3000<a href=\"https:\/\/www.sparkpost.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">SparkPost<\/a>\u3092\u5229\u7528\u3059\u308b\u65b9\u5f0f<\/li>\n<li>log\u3000\u30fb\u30fb\u30fb\u3000\u5b9f\u969b\u306b\u306f\u30e1\u30fc\u30eb\u9001\u4fe1\u305b\u305a\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u51fa\u529b\u3059\u308b\u65b9\u5f0f<\/li>\n<li>array<\/li>\n<\/ul>\n<p>\u203b\uff11 <code>mandrill<\/code>\u306fLaravel 5.3\u304b\u3089\u306f\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304b\u3089\u524a\u9664\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001<code>config\/mail.php<\/code>\u3067\u306f\u8a2d\u5b9a\u304c\u53ef\u80fd\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>MAIL_HOST,\u00a0MAIL_PORT,\u00a0MAIL_USERNAME,\u00a0MAIL_PASSWORD<\/h2>\n<p>\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u63a5\u7d9a\u60c5\u5831\u3067\u3059\u3002<\/p>\n<h2>MAIL_ENCRYPTION<\/h2>\n<p><code>tsl<\/code>\u3084<code>ssl<\/code>\u306a\u3069\u306e\u30e1\u30fc\u30eb\u3092\u6697\u53f7\u5316\u3059\u308b\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h1>PUSHER_*****, MIX_PUSHER_*****\uff1a PUSHER\u8a2d\u5b9a<\/h1>\n<p><a href=\"https:\/\/pusher.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Pusher<\/a>\u306e\u63a5\u7d9a\u60c5\u5831\u3092\u8a2d\u5b9a\u3059\u308b\u9805\u76ee\u3067\u3059\u3002<\/p>\n<h1>.env\u306b\u306f\u521d\u671f\u72b6\u614b\u3067\u66f8\u304b\u308c\u3066\u3044\u306a\u3044\u9805\u76ee<\/h1>\n<h2>Amazon SQS\u306e\u8a2d\u5b9a<\/h2>\n<pre>SQS_KEY=***\r\nSQS_SECRET=***\r\nSQS_PREFIX=***\r\nSQS_QUEUE=***\r\nSQS_REGION=***\r\n<\/pre>\n<p><a href=\"https:\/\/aws.amazon.com\/jp\/sqs\/\" target=\"_blank\" rel=\"noopener noreferrer\">Amazon SQS<\/a>\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u9805\u76ee\u3067\u3001<code>config\/queue.php<\/code>\u306e\u4e2d\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Amazon SES\u306e\u8a2d\u5b9a<\/h2>\n<pre>SES_KEY=***\r\nSES_SECRET=***\r\nSES_REGION=***\r\n<\/pre>\n<p><a href=\"https:\/\/aws.amazon.com\/jp\/ses\/\" target=\"_blank\" rel=\"noopener noreferrer\">Amazon SES<\/a>\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u9805\u76ee\u3067\u3001<code>config\/services.php<\/code>\u306e\u4e2d\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>mailgun\u306e\u8a2d\u5b9a<\/h2>\n<pre>MAILGUN_DOMAIN=***\r\nMAILGUN_SECRET=***\r\n<\/pre>\n<p><a href=\"https:\/\/www.mailgun.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">mailgun<\/a>\u306e\u8a2d\u5b9a\u9805\u76ee\u3067\u3001<code>config\/services.php<\/code>\u306e\u4e2d\u3067\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>SparkPost\u306e\u8a2d\u5b9a<\/h2>\n<pre>SPARKPOST_SECRET=***\r\n<\/pre>\n<p><a href=\"https:\/\/www.sparkpost.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">SparkPost<\/a>\u306e\u8a2d\u5b9a\u9805\u76ee\u3067\u3001<code>config\/services.php<\/code>\u306e\u4e2d\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>stripe\u306e\u8a2d\u5b9a<\/h2>\n<pre>STRIPE_KEY=***\r\nSTRIPE_SECRET=***<\/pre>\n<p><a href=\"https:\/\/stripe.com\" target=\"_blank\" rel=\"noopener noreferrer\">stripe<\/a>\uff08\u30aa\u30f3\u30e9\u30a4\u30f3\u6c7a\u6e08\u30b5\u30fc\u30d3\u30b9\uff09\u306e\u8a2d\u5b9a\u9805\u76ee\u3067\u3001<code>config\/services.php<\/code>\u306e\u4e2d\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>memcached\u306e\u8a2d\u5b9a<\/h2>\n<pre>MEMCACHED_PERSISTENT_ID=***\r\nMEMCACHED_USERNAME=***\r\nMEMCACHED_PASSWORD=***\r\nMEMCACHED_HOST=***\r\nMEMCACHED_PORT=*** \r\n<\/pre>\n<p><code>memcached<\/code>\u306e\u8a2d\u5b9a\u9805\u76ee\u3067\u3001<code>config\/cache.php<\/code>\u5185\u3067\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30ad\u30e3\u30c3\u30b7\u30e5\u540d\u306e\u30d7\u30ea\u30d5\u30a3\u30c3\u30af\u30b9<\/h2>\n<pre>CACHE_PREFIX=***\r\n<\/pre>\n<p>\u30ad\u30e3\u30c3\u30b7\u30e5\u540d\u304c\u91cd\u8907\u3057\u306a\u3044\u305f\u3081\u306e\u30d7\u30ea\u30d5\u30a3\u30c3\u30af\u30b9\u3002<br \/>\n\u8a73\u3057\u304f\u306f\u3001<a href=\"#app_name\">APP_NAME<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>Unix\u30c9\u30e1\u30a4\u30f3\u30bd\u30b1\u30c3\u30c8\u306e\u8a2d\u5b9a<\/h2>\n<pre>DB_SOCKET=***\r\n<\/pre>\n<p>M\uff59SQL\u306eUnix\u30c9\u30e1\u30a4\u30f3\u30bd\u30b1\u30c3\u30c8\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306b\u4f7f\u3046\u8a2d\u5b9a\u3067\u3001<code>config\/database.php<\/code>\u3067\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>AWS\u306e\u8a2d\u5b9a<\/h2>\n<pre>AWS_ACCESS_KEY_ID=***\r\nAWS_SECRET_ACCESS_KEY=***\r\nAWS_DEFAULT_REGION=***\r\nAWS_BUCKET=***\r\nAWS_URL=***\r\n<\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3067\u3001<code>s3<\/code>\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306b\u4f7f\u308f\u308c\u308b\u63a5\u7d9a\u60c5\u5831\u3067\u3059\u3002<\/p>\n<h2>\u6697\u53f7\u8a08\u7b97\u3059\u308b\u6570\u5024<\/h2>\n<pre>BCRYPT_ROUNDS=***\r\n<\/pre>\n<p>PHP\u6a19\u6e96\u95a2\u6570\u306e<code>password_hash()<\/code>\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u5024<code>cost<\/code>\u3092\u6307\u5b9a\u3059\u308b\u6570\u5024\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u3053\u306e\u6570\u5024\u304c\u591a\u3051\u308c\u3070\u3088\u308a\u5f37\u529b\u306a\u6697\u53f7\u304c\u4f5c\u6210\u3067\u304d\u307e\u3059\u304c\u3001\u305d\u306e\u5206\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3078\u306e\u8ca0\u8377\u304c\u5927\u304d\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>slack\u306e\u30a6\u30a7\u30d6\u30d5\u30c3\u30af<\/h2>\n<pre>LOG_SLACK_WEBHOOK_URL=***\r\n<\/pre>\n<p><a href=\"https:\/\/slack.com\" target=\"_blank\" rel=\"noopener noreferrer\">slack<\/a>\u306e\u30a6\u30a7\u30d6\u30d5\u30c3\u30afURL\u3092\u6307\u5b9a\u3059\u308b\u9805\u76ee\u3067\u3059\u3002<\/p>\n<h2>\u30e1\u30fc\u30eb\u9001\u4fe1\u5143\u3068\u9001\u4fe1\u8005\u540d<\/h2>\n<pre>MAIL_FROM_ADDRESS=***\r\nMAIL_FROM_NAME=***\r\n<\/pre>\n<p>\u3053\u306e\u5024\u3092\u6307\u5b9a\u3057\u3066\u304a\u304f\u3068\u3001\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u969b\u306b<code>from()<\/code>\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30bb\u30c3\u30b7\u30e7\u30f3DB\u306e\u8a2d\u5b9a<\/h2>\n<pre>SESSION_CONNECTION=***<\/pre>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u65b9\u5f0f\u306b<code>database<\/code>\u304b<code>redis<\/code>\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306b\u4f7f\u3048\u308b\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u306e\u305f\u3081\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u3059\u3002<\/p>\n<h2>\u30bb\u30c3\u30b7\u30e7\u30f3\u30fb\u30ad\u30e3\u30c3\u30b7\u30e5\u30fb\u30b9\u30c8\u30a2<\/h2>\n<pre>SESSION_STORE=***<\/pre>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u65b9\u5f0f\u306b<code>apc<\/code>\u304b<code>memcached<\/code>\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306b\u4f7f\u3048\u308b\u30ad\u30e3\u30c3\u30b7\u30e5\u30fb\u30b9\u30c8\u30a2\u306e\u305f\u3081\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u3059\u3002<\/p>\n<h2>\u30bb\u30c3\u30b7\u30e7\u30f3\u540d\u306e\u30d7\u30ea\u30d5\u30a3\u30c3\u30af\u30b9<\/h2>\n<pre>SESSION_COOKIE=***\r\n<\/pre>\n<p>Cookie\u306e\u540d\u524d\u304c\u91cd\u8907\u3057\u306a\u3044\u305f\u3081\u306e\u30d7\u30ea\u30d5\u30a3\u30c3\u30af\u30b9\u3002<br \/>\n\u8a73\u3057\u304f\u306f\u3001<a href=\"#app_name\">APP_NAME<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>Cookie\u306e\u30c9\u30e1\u30a4\u30f3\u540d<\/h2>\n<pre>SESSION_DOMAIN=***<\/pre>\n<p>Cookie\u304c\u6709\u52b9\u306b\u306a\u308b\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u6307\u5b9a\u3059\u308b\u9805\u76ee\u3067\u3059\u3002<\/p>\n<h2>Cookie\u306e\u30bb\u30ad\u30e5\u30a2\u8a2d\u5b9a<\/h2>\n<pre>SESSION_SECURE_COOKIE=***<\/pre>\n<p>\u3053\u306e\u8a2d\u5b9a\u3092<code>true<\/code>\u306b\u3057\u305f\u5834\u5408\u3001<code>HTTPS<\/code>\u3067\u63a5\u7d9a\u3057\u3066\u3044\u308b\u5834\u5408\u306e\u307f\u30bb\u30c3\u30b7\u30e7\u30f3Cookie\u304c\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f<code>false<\/code><\/p>\n<h2>\u30a2\u30bb\u30c3\u30c8URL<\/h2>\n<p>Laravel 5.7.14\u304b\u3089\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre>ASSET_URL=https:\/\/cdn.example.com<\/pre>\n<p>\u4e0a\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057<code>asset()<\/code>\u3092\u4f7f\u3046\u3068\u3001\u305d\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u57fa\u672c\u3068\u3059\u308bURL\u3092\u3064\u304f\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>echo <strong>asset('xxx.js');<\/strong> \/\/ https:\/\/cdn.example.com\/xxx.js<\/pre>\n<h1>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h1>\n<p>\u4eca\u56de\u7d39\u4ecb\u3057\u305f.env\u306e\u5168\u9805\u76ee\u3092\u66f8\u304d\u8fbc\u3093\u3060<code>.env.full<\/code>\u3092\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305c\u3072\u30b5\u30a4\u30c8\u958b\u767a\u306b\u5f79\u7acb\u3066\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/blog.capilano-fw.com?download=1409&amp;tmstv=1777539688\" rel=\"nofollow\" id=\"download-link-1409\" data-redirect=\"false\" >\n\t.env\u306e\u5168\u9805\u76ee\u3092\u66f8\u304d\u8fbc\u3093\u3060\uff1a .env.full<\/a>\n\n<p>&nbsp;<\/p>\n<p>\u203b\u305f\u3060\u3057\u3001<code>APP_KEY<\/code>\u306f\u30bb\u30ad\u30e5\u30a2\u306a\u60c5\u5831\u306a\u306e\u3067\u7701\u7565\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u4eca\u56de\u306e\u307e\u3068\u3081\u3067\u7279\u306b\u4fbf\u5229\u3060\u3068\u611f\u3058\u305f\u306e\u306f\u3001\u30e1\u30fc\u30eb\u9001\u4fe1\u60c5\u5831\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u6307\u5b9a\u3067\u304d\u308b<code>MAIL_FROM_ADDRESS<\/code>\u3068<code>MAIL_FROM_NAME<\/code>\u3067\u3059\u306d\u3002<\/p>\n<p>\u500b\u4eba\u7684\u306b\u3053\u306e\u6307\u5b9a\u65b9\u6cd5\u304c\u3067\u304d\u308b\u3053\u3068\u3092\u77e5\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u3044\u3061\u3044\u3061\u30e1\u30fc\u30eb\u9001\u4fe1\u90e8\u5206\u3067\u3001<\/p>\n<pre><strong>from('test@example.com', '\u9001\u4fe1\u8005')\r\n<\/strong><\/pre>\n<p>\u3068\u8a18\u8ff0\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u660e\u793a\u7684\u306b\u8ab0\u306b\u9001\u4fe1\u3067\u304d\u308b\u304b\u304c\u5206\u304b\u308a\u3084\u3059\u3044\u306e\u3067\u3001\u4e00\u6982\u306b\u3053\u306e\u65b9\u6cd5\u304c\u60aa\u3044\u308f\u3051\u3067\u306f\u306a\u3044\u3067\u3059\u304c\u3001\u30b3\u30fc\u30c9\u3092\u3088\u308a\u5c11\u306a\u304f\u3059\u308b\u305f\u3081\u306b\u306f\u6709\u52b9\u3067\u3042\u308b\u3053\u3068\u306f\u9593\u9055\u3044\u306a\u3044\u306e\u3067\u3001\u3053\u308c\u304b\u3089\u306f\u3053\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u6d3b\u7528\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307f\u306a\u3055\u3093\u3082\u4f55\u304b\u3044\u3044\u30c6\u30af\u30cb\u30c3\u30af\u304c\u898b\u3064\u304b\u308c\u3070\u5149\u6804\u3067\u3059\uff01<\/p>\n<p>\u3067\u306f\u3067\u306f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u306e\u6c38\u4e45\u4fdd\u5b58\u7248\uff01Laravel\u30fbCache\u306e\u4f7f\u3044\u65b9\u5927\u5168\u3067\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u65b9\u5f0f\u306e\u8a2d\u5b9a\u306b.env\u3092\u4f7f\u3063\u3066\u5207\u308a\u66ff\u3048\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u305f\u3060\u3001\u3053\u306e.env\u30d5\u30a1\u30a4\u30eb &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=1382\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u4fdd\u5b58\u7248\uff01Laravel\u306e.env\u3067\u3067\u304d\u308b\u3053\u3068\u5927\u5168&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":1415,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,97],"tags":[],"class_list":["post-1382","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-97"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/1382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1382"}],"version-history":[{"count":24,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/1382\/revisions"}],"predecessor-version":[{"id":3352,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/1382\/revisions\/3352"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/1415"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}