{"id":2083,"date":"2020-01-06T06:20:32","date_gmt":"2020-01-05T21:20:32","guid":{"rendered":"http:\/\/taki-lab.site\/bocci\/?p=2083"},"modified":"2020-01-06T06:20:54","modified_gmt":"2020-01-05T21:20:54","slug":"%e3%80%90laravel%e3%80%91%e3%80%90%e3%83%9b%e3%83%86%e3%83%ab%e4%ba%88%e7%b4%84%e7%ae%a1%e7%90%86%e3%80%91%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%e3%82%a2%e3%82%a6%e3%83%88%e6%99%82%e5%88%bb%e4%b8%80","status":"publish","type":"post","link":"https:\/\/taki-lab.site\/bocci\/?p=2083","title":{"rendered":"\u3010laravel\u3011\u3010\u30db\u30c6\u30eb\u4e88\u7d04\u7ba1\u7406\u3011\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u6642\u523b\u4e00\u89a7\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b"},"content":{"rendered":"\n<p><strong>\u672c\u65e5\u304b\u3089\u672c\u6c17\u51fa\u3059\u3002<\/strong><\/p>\n\n\n\n<p>\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-\u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"YCDLGc6yoo\"><a href=\"https:\/\/taki-lab.site\/bocci\/?p=2059\">\u3010Laravel\u3011\u3010Vue.js\u3011\u3010\u30db\u30c6\u30eb\u4e88\u7d04\u7ba1\u7406\u3011\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u4e00\u89a7\u3092\u8868\u793a<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010Laravel\u3011\u3010Vue.js\u3011\u3010\u30db\u30c6\u30eb\u4e88\u7d04\u7ba1\u7406\u3011\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u4e00\u89a7\u3092\u8868\u793a&#8221; &#8212; \u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f\" src=\"https:\/\/taki-lab.site\/bocci\/?p=2059&#038;embed=true#?secret=CwjTnzO3XB#?secret=YCDLGc6yoo\" data-secret=\"YCDLGc6yoo\" width=\"474\" height=\"267\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u6700\u65b0\u30bd\u30fc\u30b9\u306f\u3053\u3061\u3089(gitHub)<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/takishita2nd\/hotel-mng\">https:\/\/github.com\/takishita2nd\/hotel-mng<\/a><\/p>\n\n\n\n<p>\u5b9f\u306f\u3001\u3053\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u51e6\u7406\u306b\u306f\u91cd\u5927\u306a\u554f\u984c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    public function getCheckoutList()\n    {\n        $ret = array();\n        $index = 0;\n        $checkout = ReserveManagement::select('rooms.name as roomname', 'checkout')\n                                    ->leftJoin('reserve_management_room', 'reserve_managements.id', '=', 'reserve_management_room.reserve_management_id')\n                                    ->leftJoin('rooms', 'reserve_management_room.room_id', '=', 'rooms.id')\n                                    ->get();\n        date_default_timezone_set('Asia\/Tokyo');\n        $today = date(\"Y-m-d\");\n        foreach ($checkout as $value) {\n            $str = explode(\" \", $value->checkout);\n            if($today == $str&#91;0]) {\n                $value->checkout = $str&#91;1];\n                $ret&#91;$index] = $value;\n                $index++;\n            }\n        }\n        return $ret;\n    }\n<\/code><\/pre>\n\n\n\n<p>\u5168\u30ec\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\u3057\u305f\u3042\u3068\u3001\u65e5\u4ed8\u30c1\u30a7\u30c3\u30af\u3092\u304a\u3053\u306a\u3044\u3001\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u306e\u307f\u3092\u53d6\u5f97\u3059\u308b\u3001\u3068\u3044\u3046\u3084\u308a\u65b9\u3067\u3059\u304c\u3001\u3053\u306e\u3084\u308a\u65b9\u3067\u306f\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u53d6\u5f97\u3057\u3001PHP\u3067\u51e6\u7406\u3059\u308b\u3001\u3068\u3044\u3046\u3084\u308a\u65b9\u306a\u306e\u3067\u3001\u30b5\u30fc\u30d0\u306b\u5927\u304d\u306a\u8ca0\u8377\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3092\u89e3\u6d88\u3059\u308b\u306b\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u53d6\u5f97\u3059\u308b\u30c7\u30fc\u30bf\u306e\u91cf\u3092\u5ea6\u7d5e\u3089\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u306a\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    public function getCheckoutList()\n    {\n        date_default_timezone_set('Asia\/Tokyo');\n        $today = date(\"Y-m-d 00:00:00\");\n        $tomorrow = date(\"Y-m-d 00:00:00\", strtotime(\"tomorrow\"));\n        return ReserveManagement::select('rooms.name as roomname', 'checkout')\n                                    ->leftJoin('reserve_management_room', 'reserve_managements.id', '=', 'reserve_management_room.reserve_management_id')\n                                    ->leftJoin('rooms', 'reserve_management_room.room_id', '=', 'rooms.id')\n                                    ->whereBetween('checkout', &#91;$today, $tomorrow])\n                                    ->get();\n    }\n<\/code><\/pre>\n\n\n\n<p>\u30af\u30a8\u30ea\u30d3\u30eb\u30c0\u306bwhereBetween()\u3092\u8ffd\u52a0\u3057\u3001BETWEEN\u7bc0\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002\u7bc4\u56f2\u306f\u3001\u30a2\u30af\u30bb\u30b9\u5f53\u65e5\u306e0\u6642\u304b\u3089\u6b21\u306e\u65e5\u306e0\u6642\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3060\u3051\u3067\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u306f\u5168\u3066\u53d6\u308c\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u308c\u3092\u305d\u306e\u307e\u307e\u8fd4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u52d5\u4f5c\u7d50\u679c\u306f\u524d\u56de\u3068\u540c\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3046\u3093\u3001\u3053\u3063\u3061\u306e\u307b\u3046\u304c\u30b3\u30fc\u30c9\u3082\u30b9\u30c3\u30ad\u30ea\u3057\u3066\u3044\u3044\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<a href=\"\/\/blog.with2.net\/link\/?2023426:1010\" target=\"_blank\" rel=\"noopener noreferrer\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2019\/12\/03a6eee54039f74ded0b8f7548b1868f.png?w=474\" title=\"\u30d1\u30bd\u30b3\u30f3\u30e9\u30f3\u30ad\u30f3\u30b0\"><\/a>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u65e5\u304b\u3089\u672c\u6c17\u51fa\u3059\u3002 \u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089 \u6700\u65b0\u30bd\u30fc\u30b9\u306f\u3053\u3061\u3089(gitHub) https:\/\/github.com\/takishita2nd\/hotel-mng \u5b9f\u306f\u3001\u3053\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u51e6\u7406\u306b\u306f\u91cd\u5927\u306a\u554f\u984c\u304c\u3042\u308a\u307e\u3059\u3002 \u5168 &hellip; <a href=\"https:\/\/taki-lab.site\/bocci\/?p=2083\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u3010laravel\u3011\u3010\u30db\u30c6\u30eb\u4e88\u7d04\u7ba1\u7406\u3011\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u6642\u523b\u4e00\u89a7\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u3010laravel\u3011\u3010\u30db\u30c6\u30eb\u4e88\u7d04\u7ba1\u7406\u3011\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u6642\u523b\u4e00\u89a7\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\n#TechCommit\n","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[167,3],"tags":[138,79],"class_list":["post-2083","post","type-post","status-publish","format-standard","hentry","category-laravel","category-3","tag-laravel","tag-linux"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8SDbY-xB","jetpack-related-posts":[{"id":2059,"url":"https:\/\/taki-lab.site\/bocci\/?p=2059","url_meta":{"origin":2083,"position":0},"title":"\u3010Laravel\u3011\u3010Vue.js\u3011\u3010\u30db\u30c6\u30eb\u4e88\u7d04\u7ba1\u7406\u3011\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u4e00\u89a7\u3092\u8868\u793a","author":"taki","date":"2019\u5e7412\u670827\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089 https:\/\/taki-lab.site\/bocci\/?p=2045 \u4e88\u7d04\u2026","rel":"","context":"Laravel","block_context":{"text":"Laravel","link":"https:\/\/taki-lab.site\/bocci\/?cat=167"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-27-08-52-50.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-27-08-52-50.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-27-08-52-50.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-27-08-52-50.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":2119,"url":"https:\/\/taki-lab.site\/bocci\/?p=2119","url_meta":{"origin":2083,"position":1},"title":"\u3010Laravel\u3011\u3010\u30db\u30c6\u30eb\u4e88\u7d04\u7ba1\u7406\u3011\u4e88\u7d04\u60c5\u5831\u3092\u5909\u66f4\u3001\u524a\u9664\u3059\u308b","author":"taki","date":"2020\u5e741\u670813\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089 https:\/\/taki-lab.site\/bocci\/?p=2108 \u6700\u65b0\u2026","rel":"","context":"Laravel","block_context":{"text":"Laravel","link":"https:\/\/taki-lab.site\/bocci\/?cat=167"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-13-08-52-52.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-13-08-52-52.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-13-08-52-52.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":2005,"url":"https:\/\/taki-lab.site\/bocci\/?p=2005","url_meta":{"origin":2083,"position":2},"title":"\u3010Laravel\u3011\u3010Vue.js\u3011\u3010\u30db\u30c6\u30eb\u4e88\u7d04\u7ba1\u7406\u3011\u4e88\u7d04\u8a73\u7d30\u3092\u30c0\u30a4\u30a2\u30ed\u30b0\u306b\u8868\u793a\u3055\u305b\u308b","author":"taki","date":"2019\u5e7412\u670823\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089 https:\/\/taki-lab.site\/bocci\/?p=1987 \u6700\u65b0\u2026","rel":"","context":"Laravel","block_context":{"text":"Laravel","link":"https:\/\/taki-lab.site\/bocci\/?cat=167"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-23-07-59-53.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-23-07-59-53.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-23-07-59-53.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":3409,"url":"https:\/\/taki-lab.site\/bocci\/?p=3409","url_meta":{"origin":2083,"position":3},"title":"\u3010Laravel\u3011\u3010\u30c0\u30a4\u30a8\u30c3\u30c8\u652f\u63f4\u3011\u30b0\u30e9\u30d5\u3092\u3082\u3063\u3068\u7c21\u6f54\u306b\u3010\u5b8c\u6210\u3011","author":"taki","date":"2020\u5e746\u670829\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=3352 \u6700\u2026","rel":"","context":"Laravel","block_context":{"text":"Laravel","link":"https:\/\/taki-lab.site\/bocci\/?cat=167"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/06\/d035c79b392f66a1d4340d02bf5b5871.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/06\/d035c79b392f66a1d4340d02bf5b5871.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/06\/d035c79b392f66a1d4340d02bf5b5871.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/06\/d035c79b392f66a1d4340d02bf5b5871.jpg?resize=700%2C400 2x"},"classes":[]},{"id":3073,"url":"https:\/\/taki-lab.site\/bocci\/?p=3073","url_meta":{"origin":2083,"position":4},"title":"\u3010Laravel\u3011\u3010\u30c0\u30a4\u30a8\u30c3\u30c8\u652f\u63f4\u3011\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u753b\u9762\u3092\u4f5c\u6210\u3059\u308b","author":"taki","date":"2020\u5e745\u670827\u65e5","format":false,"excerpt":"\u6700\u65b0\u30bd\u30fc\u30b9\u306f\u3053\u3061\u3089(gitHub) https:\/\/github.com\/takishita2nd\/\u2026","rel":"","context":"Laravel","block_context":{"text":"Laravel","link":"https:\/\/taki-lab.site\/bocci\/?cat=167"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-27-08-09-13-2.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-27-08-09-13-2.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-27-08-09-13-2.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-27-08-09-13-2.png?resize=700%2C400 2x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-27-08-09-13-2.png?resize=1050%2C600 3x"},"classes":[]},{"id":2211,"url":"https:\/\/taki-lab.site\/bocci\/?p=2211","url_meta":{"origin":2083,"position":5},"title":"\u3010Laravel\u3011\u3010\u30db\u30c6\u30eb\u4e88\u7d04\u7ba1\u7406\u3011\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc\u3092\u884c\u3046","author":"taki","date":"2020\u5e741\u670823\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089 http:\/\/taki-lab.site\/bocci\/?p=2174 \u6700\u65b0\u30bd\u2026","rel":"","context":"Laravel","block_context":{"text":"Laravel","link":"https:\/\/taki-lab.site\/bocci\/?cat=167"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-23-08-37-03.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-23-08-37-03.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-23-08-37-03.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2083"}],"version-history":[{"count":2,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2083\/revisions"}],"predecessor-version":[{"id":2085,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2083\/revisions\/2085"}],"wp:attachment":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}