{"id":4330,"date":"2016-06-16T12:38:37","date_gmt":"2016-06-16T03:38:37","guid":{"rendered":"http:\/\/www.lancard.com\/blog\/?p=4330"},"modified":"2025-03-12T11:27:07","modified_gmt":"2025-03-12T02:27:07","slug":"laravel-5-1-%e3%81%a7%e5%ae%9f%e8%a1%8c%e3%83%a6%e3%83%bc%e3%82%b6%e3%83%bc%e6%af%8e%e3%81%ab%e3%83%ad%e3%82%b0%e5%87%ba%e5%8a%9b","status":"publish","type":"post","link":"https:\/\/www.lancard.com\/blog\/2016\/06\/16\/laravel-5-1-%e3%81%a7%e5%ae%9f%e8%a1%8c%e3%83%a6%e3%83%bc%e3%82%b6%e3%83%bc%e6%af%8e%e3%81%ab%e3%83%ad%e3%82%b0%e5%87%ba%e5%8a%9b\/","title":{"rendered":"Laravel 5.1 \u3067\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u6bce\u306b\u30ed\u30b0\u51fa\u529b"},"content":{"rendered":"<blockquote><p>\n2017\/2\/1<br \/>\n\u4e0d\u5177\u5408\u304c\u3042\u3063\u305f\u306e\u3067<a href=\"http:\/\/www.lancard.com\/blog\/2017\/02\/01\/laravel-5-1-%e3%81%a7%e3%83%ad%e3%82%b0%e5%87%ba%e5%8a%9b%e3%80%81%e3%81%9d%e3%82%8c%e3%81%8b%e3%82%89-%e3%83%ad%e3%82%b0%e3%83%a1%e3%83%bc%e3%83%ab%e3%83%89%e3%83%a9%e3%82%a4%e3%83%90%e3%83%bc\/\">\u300eLaravel 5.1 \u3067\u30ed\u30b0\u51fa\u529b\u3001\u305d\u308c\u304b\u3089 (\u30ed\u30b0\u30e1\u30fc\u30eb\u30c9\u30e9\u30a4\u30d0\u30fc\u52d5\u4f5c\u4e0d\u826f\u5bfe\u51e6\u3001\u30af\u30a8\u30ea\u51fa\u529b\u306e\u8abf\u6574)\u300f<\/a>\u306e\u307b\u3046\u3092\u898b\u3066\u4e0b\u3055\u3044\n<\/p><\/blockquote>\n<p>Laravel Framework version 5.1.35 (LTS) \u306b\u3064\u3044\u3066\u306e\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n<p>murave\u3067\u3059\u3002\u3042\u3093\u307e\u308a\u306b\u3082\u3042\u3093\u307e\u308a\u306a\u8a18\u4e8b(\u300cPHP \u30ab\u30f3\u30d5\u30a1\u30ec\u30f3\u30b9\u798f\u5ca1 2016 \u3067\u601d\u3063\u305f\u3053\u3068\u300d)\u3092\u4e0a\u3052\u3066\u53cd\u7701\u3057\u307e\u3057\u305f\u306e\u3067PHP\u304a\u5f79\u7acb\u3061\u8a18\u4e8b\u3092\u66f8\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>CLI\u30b3\u30de\u30f3\u30c9\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3001CakePHP\u306a\u3069\u3082\u3067\u3059\u304c\u3001\u30ed\u30b0\u51fa\u529b\u6642\u306bWeb\u3068CLI\u3067\u5b9f\u884c\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u304c\u7570\u306a\u308a\u3001\u6a29\u9650\u304c\u3089\u307f\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u308a\u3057\u304c\u3061\u3067\u3059\u3002<\/p>\n<p>\u305d\u3082\u305d\u3082\u30ed\u30b0\u3092\u8abf\u3079\u308b\u6642\u3001Web\u3068CLI\u306f\u5225\u30d5\u30a1\u30a4\u30eb\u306b\u306a\u3063\u3066\u305f\u65b9\u304c\u826f\u304f\u306a\u3044\u3067\u3059\uff1f<\/p>\n<p><!--more--><\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u5206\u3051\u308b\u65b9\u6cd5\u3092\u8003\u3048\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u540d\u3067\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308c\u3070\u3044\u3044\u3068\u6c17\u304c\u3064\u304d\u307e\u3057\u305f\u3002\u307e\u3041\u3001nginx\u3084apache\u30e6\u30fc\u30b6\u30fc\u3067CLI\u3092\u6271\u3046\u3068\u6df7\u3056\u3063\u3061\u3083\u3044\u307e\u3059\u304c\u3002<\/p>\n<p>\u3088\uff5e\u3057\u3001\u304a\u3063\u3061\u3083\u3093\u3001\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u540d\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6c7a\u3081\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u3063\u3066logger\u3092\u5dee\u3057\u66ff\u3048\u3061\u3083\u305e\uff5e<\/p>\n<p>\u3064\u3044\u3067\u306bextra\u306b\u547c\u3073\u51fa\u3057\u5143\u60c5\u5831\u3092\u8ffd\u52a0\u3057(\u53c2\u8003:<a href=\"http:\/\/qiita.com\/iakio\/items\/7b8539db928d2b419921\" target=\"_blank\">\u300cLaravel\u306e\u30ed\u30b0\u306b\u30d5\u30a1\u30a4\u30eb\u540d\u3084\u30e1\u30bd\u30c3\u30c9\u540d\u3092\u51fa\u529b\u3059\u308b\u300d<\/a>)\u3001\u65e5\u6bce\u306e\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210(RotatingFileHandler\u30d9\u30fc\u30b9)\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre lang=\"php\">\nclass AppServiceProvider extends ServiceProvider\n{\n    public function boot()\n    {\n        $this->app->instance('log', new \\Illuminate\\Log\\Writer(\n                (new \\Monolog\\Logger(\n                    $this->app->environment()\n                ))->pushProcessor(\n                    new \\Monolog\\Processor\\IntrospectionProcessor(\n                        \\Monolog\\Logger::DEBUG,\n                        [\n                            'Monolog\\\\',\n                            'Illuminate\\\\',\n                            \/\/\u4ed6\u3001\u547c\u3073\u51fa\u3057\u5143\u3068\u3057\u3066\u306f\u30b9\u30ad\u30c3\u30d7\u3057\u305f\u3044\u5bfe\u8c61\u3092\u8a2d\u5b9a,\n                        ]\n                    )\n                )->pushHandler(\n                    new \\Monolog\\Handler\\RotatingFileHandler(\n                        $this->app->storagePath() . '\/logs\/' . posix_getpwuid(posix_geteuid())['name'] . '.log',\n                        \\Config::get('app.log_max_files', 5)\n                    )\n                )\n            )\n        );\n    }\n\/\/ \u4ee5\u4e0b\u7565\n<\/pre>\n<p>bootstrap\u306eapp.php\u5185\u3067\u8a2d\u5b9a\u3057\u3088\u3046\u3068\u3057\u305f\u3089env\u95a2\u4fc2\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\u4e0a\u8a18\u306e\u3088\u3046\u306bAppServiceProvider\u306eboot()\u3067\u5dee\u3057\u66ff\u3048\u3066\u3044\u307e\u3059\u304c\u3001\u3082\u3063\u3068\u9069\u5207\u306a\u5834\u6240\u304c\u3042\u308b\u306e\u3067\u306f\uff1f\u3068\u3044\u3046\u306e\u304c\u6c17\u306b\u306a\u308b\u3068\u3053\u308d\u3002<\/p>\n<p>\u3082\u3063\u3068\u30b9\u30de\u30fc\u30c8\u306a\u65b9\u6cd5\u304c\u3042\u3063\u305f\u3089\u52a9\u8a00\u3044\u305f\u3060\u3051\u308b\u3068\u3046\u308c\u3057\u3044\u306a\u3041\u3002<\/p>\n<hr \/>\n<p>2016\/07\/20 <a href=\"http:\/\/www.lancard.com\/blog\/2016\/06\/16\/laravel-5-1-%E3%81%A7%E5%AE%9F%E8%A1%8C%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E6%AF%8E%E3%81%AB%E3%83%AD%E3%82%B0%E5%87%BA%E5%8A%9B\/\">\u300eLaravel 5.1 \u3067\u30ed\u30b0\u51fa\u529b\u3001\u305d\u306e\u5f8c (\u51fa\u529b\u30ec\u30d9\u30eb\u8a2d\u5b9a\u3001\u30af\u30a8\u30ea\u51fa\u529b)\u300f<\/a>\u3068\u3044\u3046\u305d\u306e\u5f8c\u306e\u6a5f\u80fd\u62e1\u5f35\u306e\u8a71\u3092\u66f8\u304d\u307e\u3057\u305f\u3002<\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4330&amp;t=Laravel%205.1%20%E3%81%A7%E5%AE%9F%E8%A1%8C%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E6%AF%8E%E3%81%AB%E3%83%AD%E3%82%B0%E5%87%BA%E5%8A%9B&amp;s=100&amp;p[url]=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4330&amp;p[images][0]=&amp;p[title]=Laravel%205.1%20%E3%81%A7%E5%AE%9F%E8%A1%8C%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E6%AF%8E%E3%81%AB%E3%83%AD%E3%82%B0%E5%87%BA%E5%8A%9B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"http:\/\/twitter.com\/share?url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4330&amp;text=Laravel%205.1%20%E3%81%A7%E5%AE%9F%E8%A1%8C%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E6%AF%8E%E3%81%AB%E3%83%AD%E3%82%B0%E5%87%BA%E5%8A%9B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&amp;url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4330&amp;title=Laravel%205.1%20%E3%81%A7%E5%AE%9F%E8%A1%8C%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E6%AF%8E%E3%81%AB%E3%83%AD%E3%82%B0%E5%87%BA%E5%8A%9B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-tumblr nolightbox\" data-provider=\"tumblr\" target=\"_blank\" rel=\"nofollow\" title=\"Share on tumblr\" href=\"https:\/\/tumblr.com\/share?s=&amp;v=3&amp;t=Laravel%205.1%20%E3%81%A7%E5%AE%9F%E8%A1%8C%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E6%AF%8E%E3%81%AB%E3%83%AD%E3%82%B0%E5%87%BA%E5%8A%9B&amp;u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4330\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"tumblr\" title=\"Share on tumblr\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/tumblr.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=Laravel%205.1%20%E3%81%A7%E5%AE%9F%E8%A1%8C%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E6%AF%8E%E3%81%AB%E3%83%AD%E3%82%B0%E5%87%BA%E5%8A%9B&amp;body=%E3%82%B7%E3%82%A7%E3%82%A2%E3%81%99%E3%82%8B%EF%BC%9A:%20https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4330\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>2017\/2\/1 \u4e0d\u5177\u5408\u304c\u3042\u3063\u305f\u306e\u3067\u300eLaravel 5.1 \u3067\u30ed\u30b0\u51fa\u529b\u3001\u305d\u308c\u304b\u3089 (\u30ed\u30b0\u30e1\u30fc\u30eb\u30c9\u30e9\u30a4\u30d0\u30fc\u52d5\u4f5c\u4e0d\u826f\u5bfe\u51e6\u3001\u30af\u30a8\u30ea\u51fa\u529b\u306e\u8abf\u6574)\u300f\u306e\u307b\u3046\u3092\u898b\u3066\u4e0b\u3055\u3044 Laravel Framework version 5.1. [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[130],"class_list":["post-4330","post","type-post","status-publish","format-standard","hentry","category-php","tag-laravel"],"_links":{"self":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/4330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/comments?post=4330"}],"version-history":[{"count":10,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/4330\/revisions"}],"predecessor-version":[{"id":4701,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/4330\/revisions\/4701"}],"wp:attachment":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/media?parent=4330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/categories?post=4330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/tags?post=4330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}