{"id":894,"date":"2024-04-15T13:27:19","date_gmt":"2024-04-15T04:27:19","guid":{"rendered":"http:\/\/inwelly.com\/?p=894"},"modified":"2024-04-15T13:27:19","modified_gmt":"2024-04-15T04:27:19","slug":"php-laravel-controll-%ed%8c%8c%ec%9d%bc-%eb%a7%8c%eb%93%a4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/inwelly.com\/?p=894","title":{"rendered":"PHP Laravel &#8211; Controll \ud30c\uc77c \ub9cc\ub4e4\uae30"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>\ud130\ubbf8\ub110\uc5d0\uc11c \uc544\ub798\uc640 \uac19\uc774 \uc2e4\ud589\ud55c\ub2e4.\n \n#> php artisan make:controller PagesController\n \n\uc704\uc640 \uac19\uc774 \uc2e4\ud589\ud558\uac8c \ub418\uba74 \uc544\ub798\uc640 \uac19\uc774 \ud3f4\ub354\uc5d0 \ub9cc\ub4e4\uc5b4\uc9c4\uac83\uc744 \ud655\uc778 \ud560 \uc218 \uc788\ub2e4.<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-preformatted\"><strong>&lt;?php<br><\/strong><strong><br><\/strong><strong>namespace <\/strong>App\\Http\\Controllers;<br><br><strong>use <\/strong>Illuminate\\Http\\Request;<br><br><strong>class <\/strong>PagesController <strong>extends <\/strong>Controller<br>{<br> \/\/ \uc5ec\uae30\ub2e4 \uad00\ub828 \ud568\uc218\ub97c \ub9cc\ub4e4\uc5b4 \ub123\uc73c\uba74 \ub428 \ucb48\uc6b1 ~!~<br>} <\/pre>\n<\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>DB \uc811\uc18d \ubc0f \uad00\ub9ac Controller \ub9cc\ub4e4\uae30\n\n#> php artisan make:controller TestController --resource\n\nTestController.php \uac00 \ub9cc\ub4e4\uc5b4\uc9c0\uba70 \uc544\ub798\uc640 \uac19\uc740 \ud568\uc218\ub97c \uac00\uc9c4 \ud30c\uc77c\uc774 \ub9cc\ub4e4\uc5b4 \uc9d1\ub2c8\ub2e4.\n\npublic function index()\npublic function create()\npublic function store(Request $request)\npublic function show($id)\npublic function edit($id)\npublic function update(Request $request, $id)\npublic function destroy($id)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&lt;?phpnamespace App\\Http\\Controllers;use Illuminate\\Http\\Request;class PagesController extends Controller{ \/\/ \uc5ec\uae30\ub2e4 \uad00\ub828 \ud568\uc218\ub97c \ub9cc\ub4e4\uc5b4 \ub123\uc73c\uba74 \ub428 \ucb48\uc6b1 ~!~}<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[112],"tags":[],"class_list":["post-894","post","type-post","status-publish","format-standard","hentry","category-laravel"],"_links":{"self":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=894"}],"version-history":[{"count":1,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/894\/revisions"}],"predecessor-version":[{"id":895,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/894\/revisions\/895"}],"wp:attachment":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}