{"id":1593,"date":"2021-08-18T05:05:22","date_gmt":"2021-08-17T20:05:22","guid":{"rendered":"https:\/\/k.foolslab.net\/dailyreport\/?p=1593"},"modified":"2021-08-18T05:30:51","modified_gmt":"2021-08-17T20:30:51","slug":"2021-8-17%e7%81%ab","status":"publish","type":"post","link":"https:\/\/k.foolslab.net\/dailyreport\/2021-8-17%e7%81%ab\/","title":{"rendered":"2021\/8\/17(\u706b)"},"content":{"rendered":"\n<p>\u30e1\u30a4\u30c9\u30a4\u30f3\u30a2\u30d3\u30b910\u5dfb\u3092\u8aad\u3080\u6e96\u5099\u3068\u3057\u30669\u5dfb\u307e\u3067\u3092\u8aad\u307f\u76f4\u3057\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<p>\u8aad\u307f\u76f4\u3057\u3059\u304e\u308b\u3068\u4eca\u5ea6\u306f\u611f\u60c5\u304c\u64e6\u308c\u3066\u5473\u308f\u3044\u304c\u6e1b\u308b\u304b\u3089\u3069\u3046\u3059\u308c\u3070\u3061\u3087\u3046\u3069\u3044\u3044\u5869\u6885\u306b\u306a\u308b\u306e\u304b\u60a9\u307f\u3069\u3053\u308d\u3060\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u306f\u3068\u3082\u304b\u304f9\u5dfb\u3092\u8aad\u3093\u3067\u3044\u308b\u6700\u4e2d\u306b\u3001\u30d5\u30a1\u30d7\u30bf\u306e\u56de\u60f3\u306b\u51fa\u3066\u304f\u308b\u30ec\u30b0\u304c\u7121\u5c3d\u69cc\u3092\u6301\u3063\u3066\u308b\u3089\u3057\u3044\u306e\u3092\u898b\u3064\u3051\u305f\u30024\u5c64\u306b\u5893\u6a19\u307f\u305f\u304f\u30a2\u30ec\u3092\u523a\u3057\u305f\u306e\u306f\u30ec\u30b0\u3060\u3068\u3044\u3046\u4f0f\u7dda\u306f\u3044\u304f\u3064\u304b\u3042\u3063\u305f\u304c\u3053\u3053\u306b\u3082\u3042\u308b\u304b\u3089\u3055\u3059\u304c\u306b\u6c7a\u5b9a\u7684\u306a\u611f\u3058\u3060\u3002\u30e9\u30a4\u30b6\u304c\u4f9d\u983c\u3057\u305f\u3093\u3060\u308d\u3046\u304c\u3001\u4e00\u4f53\u4f55\u304c\u76ee\u7684\u306a\u3093\u3060\uff1f<\/p>\n\n\n\n<p>\u30dc\u30f3\u30c9\u30eb\u30c9\u3068\u3044\u3044\u30ef\u30ba\u30ad\u30e3\u30f3\u3068\u3044\u3044\u3001\u30ea\u30b3\u968a\u304c\u3084\u3079\u30fc\u3084\u3064\u306b\u76ee\u7684\u306b\u3055\u308c\u308b\u5c55\u958b\u3092\u4f55\u5ea6\u304b\u898b\u3066\u3044\u308b\u304c\u3001\u6700\u7d42\u7684\u306b\u30e9\u30a4\u30b6\u304c\u30e9\u30b9\u30dc\u30b9\u3060\u3063\u305f\u308a\u3057\u305f\u3089\u6d41\u77f3\u306b\u6ce3\u304f\u305e\u3002\u3067\u3082\u3084\u308a\u304b\u306d\u306a\u3044\u6c17\u306f\u3059\u308b\u3093\u3060\u3088\u306a\u3042\u2026\u5ea6\u3057\u96e3\u3044\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u80ce\u754c\u4e3b\u3092\u8aad\u3093\u3060\u3002<\/p>\n\n\n\n<p>\u9b54\u738b\u306e\u5b58\u5728\u305d\u3093\u306a\u96d1\u306b\u4eba\u76ee\u306b\u89e6\u308c\u3066\u3044\u3044\u3082\u3093\u306a\u306e\uff01\uff1f\u305d\u3057\u3066\u901f\u3059\u304e\u3066\u8dea\u304f\u6687\u3082\u306a\u3044\u306e\u672c\u5f53\u7b11\u3046\u3002\u6771\u90f7\u9023\u4e2d\u3092\u76f8\u624b\u306b\u3057\u305f\u6642\u3082\u3060\u3051\u3069\u30aa\u30bb\u8ecd\u56e3\u306e\u9b54\u738b\u305f\u3061\u3084\u305f\u3089\u3068\u30d5\u30e9\u30f3\u30af\u3060\u306a\u2026<\/p>\n\n\n\n<p>\u5148\u9031\u3044\u304d\u306a\u308a\u51fa\u3066\u304d\u305f\u3084\u3064\u306f\u30aa\u30bb\u3060\u3063\u305f\u3089\u3057\u3044\u3002\u3053\u3044\u3064\u307e\u3068\u3082\u306b\u8a71\u3067\u304d\u308b\u3084\u3064\u306b\u898b\u3048\u306a\u3044\u3093\u3060\u3051\u3069\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Laravel\u3067\u4eca\u307e\u3067\u77e5\u3089\u306a\u304b\u3063\u305f\u6a5f\u80fd\u30922\u3064\u898b\u3064\u3051\u305f\u3002<\/p>\n\n\n\n<p>\u2460 authorizeResource<\/p>\n\n\n\n<p>\u4eca\u307e\u3067\u30ea\u30bd\u30fc\u30b9\u64cd\u4f5c\u306e\u6a29\u9650\u8a8d\u8a3c\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u5404\u30e1\u30bd\u30c3\u30c9\u3067<code>Gate::authorize<\/code> \u3092\u3057\u3066\u3044\u305f\u306e\u3060\u304c\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3067<code>Gate::authorizeResource()<\/code> \u3092\u547c\u3076\u3060\u3051\u3067\u5168\u90e8\u5272\u308a\u632f\u3063\u3066\u304f\u308c\u308b\u3089\u3057\u3044\u3002\u3053\u3093\u306a\u4fbf\u5229\u306a\u3082\u3093\u304c\u3042\u308b\u306e\u306b\u4eca\u307e\u3067\u6c17\u3065\u304b\u306a\u304b\u3063\u305f\u2026<\/p>\n\n\n\n<p>\u3053\u308cLaravel\u5185\u90e8\u7684\u306b\u306f\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u547c\u3073\u51fa\u3057\u305f\u6642\u70b9\u3067\u3069\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3076\u3064\u3082\u308a\u306a\u306e\u304b\u5206\u304b\u3063\u3066\u308b\u306e\u304b\u306a\uff1f\u305d\u3046\u3058\u3083\u306a\u3044\u3068\u5224\u5b9a\u4e0d\u53ef\u80fd\u3060\u3068\u601d\u3046\u3093\u3060\u3051\u3069\u3002<\/p>\n\n\n\n<p>\u2461 \u30ea\u30bd\u30fc\u30b9\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u304a\u3051\u308b\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3<\/p>\n\n\n\n<p><code>web.php<\/code>\u306b\u304a\u3044\u3066\u4f8b\u3048\u3070<code>Route::resource()<\/code>\u3068\u304b\u3059\u308b\u3068\u3001\u30e2\u30c7\u30eb\u306b\u5bfe\u3059\u308b<code>update<\/code>\u3068\u304b<code>edit<\/code>\u307f\u305f\u3044\u306a\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u500b\u5225\u306b<code>Route::get()<\/code>\u3084<code>Route::post()<\/code>\u3067\u4f5c\u3089\u305a\u306b\u307e\u3068\u3081\u3066\u7528\u610f\u3067\u304d\u308b\u308f\u3051\u3060\u304c\u3001\u30e2\u30c7\u30eb\u3068\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u7d50\u3073\u3064\u3044\u3066\u308b\u30e2\u30c7\u30eb\u306a\u3069\u306b\u95a2\u3059\u308b\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f\u3053\u308c\u3067\u306f\u4f5c\u308c\u306a\u3044\u3001\u3068\u601d\u3063\u3066\u3044\u305f\u3002<\/p>\n\n\n\n<p>\u5b9f\u306f<code>Route::resource()<\/code>\u306b\u30e2\u30c7\u30eb\u540d\u3092\u6307\u5b9a\u3059\u308b\u3088\u3046\u306b\u3001<code>\u89aa\u30e2\u30c7\u30eb\u540d.\u5b50\u30e2\u30c7\u30eb\u540d<\/code>\u307f\u305f\u3044\u306a\u6307\u5b9a\u3092\u3059\u308b\u3068\u666e\u901a\u306b\u30cd\u30b9\u30c8\u3057\u305f\u3088\u3046\u306a\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u4f5c\u308c\u308b\u3002\u4f8b\u3048\u3070<code>'posts.comments'<\/code>\u307f\u305f\u3044\u306b\u6307\u5b9a\u3059\u308c\u3070post\u306eid\u3068comment\u306eid\u306e\u4e21\u65b9\u3092\u53d7\u3051\u53d6\u308b\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3001\u5b50\u30e2\u30c7\u30eb\u540d\u304ccreate\u3068\u304bedit\u3060\u3063\u305f\u5834\u5408\u306b\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u304b\u3076\u3063\u305f\u308a\u3057\u306a\u3044\u306e\u304b\u3068\u3061\u3087\u3063\u3068\u601d\u3063\u305f\u306e\u3060\u304c\u3001\u751f\u6210\u3055\u308c\u308b\u306e\u306f<code>\/posts\/{post}\/comments\/{comment}<\/code>\u3068\u3044\u3046\u611f\u3058\u3067\u5148\u306bID\u3092\u631f\u3080\u306e\u3067<code>\/posts\/create<\/code>\u307f\u305f\u3044\u306a\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3068\u306f\u88ab\u3089\u306a\u3044\u3088\u3046\u3060\u3002\u305d\u308a\u3083\u305d\u3046\u304b\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u3053\u306e\u3068\u3053\u308d\u8272\u3005\u306a\u3082\u306e\u3092\u30a4\u30f3\u30d7\u30c3\u30c8\u3057\u3059\u304e\u3066\u3042\u305f\u307e\u304c\u3050\u3061\u3087\u3050\u3061\u3087\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u5348\u5f8c\u304b\u3089PC\u3082\u30b9\u30de\u30db\u3082\u672c\u3082\u5b8c\u5168\u306b\u30b7\u30e3\u30c3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u4f53\u80b2\u5ea7\u308a\u3057\u3066\u307c\u30fc\u3063\u3068\u3057\u3066\u3044\u305f\u3002<\/p>\n\n\n\n<p>\u901a\u79f0\u30fb\u3053\u3053\u306b\u3042\u308b\u6750\u6599\u3060\u3051\u3067\u3084\u3063\u3066\u307f\u305f\u304f\u306a\u3063\u305f\u30df\u30ae\u30fc\u3001\u3082\u3057\u304f\u306f\u8349\u8599\u7d20\u5b50\u306e\u81ea\u9589\u75c7\u30e2\u30fc\u30c9\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u305d\u3053\u982d\u304c\u3059\u3063\u304d\u308a\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30e1\u30a4\u30c9\u30a4\u30f3\u30a2\u30d3\u30b910\u5dfb\u3092\u8aad\u3080\u6e96\u5099\u3068\u3057\u30669\u5dfb\u307e\u3067\u3092\u8aad\u307f\u76f4\u3057\u3066\u3044\u308b\u3002 \u8aad\u307f\u76f4\u3057\u3059\u304e\u308b\u3068\u4eca\u5ea6\u306f\u611f\u60c5\u304c\u64e6\u308c\u3066\u5473\u308f\u3044\u304c\u6e1b\u308b\u304b\u3089\u3069\u3046\u3059\u308c\u3070\u3061\u3087\u3046\u3069\u3044\u3044\u5869\u6885\u306b\u306a\u308b\u306e\u304b\u60a9\u307f\u3069\u3053\u308d\u3060\u3002 \u305d\u308c\u306f\u3068\u3082\u304b\u304f9\u5dfb\u3092\u8aad\u3093\u3067\u3044\u308b\u6700\u4e2d\u306b\u3001\u30d5\u30a1\u30d7\u30bf\u306e\u56de\u60f3 &hellip; <\/p>\n<div><a href=\"https:\/\/k.foolslab.net\/dailyreport\/2021-8-17%e7%81%ab\/\" class=\"more\">Read more &raquo;<span class=\"screen-reader-text\"> &#8220;2021\/8\/17(\u706b)&#8221;<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1593","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/1593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/comments?post=1593"}],"version-history":[{"count":5,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/1593\/revisions"}],"predecessor-version":[{"id":1600,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/1593\/revisions\/1600"}],"wp:attachment":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/media?parent=1593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/categories?post=1593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/tags?post=1593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}