{"id":898,"date":"2024-04-15T13:30:37","date_gmt":"2024-04-15T04:30:37","guid":{"rendered":"http:\/\/inwelly.com\/?p=898"},"modified":"2024-04-15T13:30:37","modified_gmt":"2024-04-15T04:30:37","slug":"php-laravel-forms-html","status":"publish","type":"post","link":"https:\/\/inwelly.com\/?p=898","title":{"rendered":"PHP Laravel &#8211; Forms &amp; HTML"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>Forms &amp; HTML \n \n#> composer require laravelcollective\/html ^5.5.0\n \n\\config\\app.php  \uc758  \n \n\"providers\" \ud56d\ubaa9\uc5d0 \uc544\ub798\ub97c \ucd94\uac00\ud55c\ub2e4.\n \n        Collective\\Html\\HtmlServiceProvider::class,\n \n \n \"aliases\" \ud56d\ubaa9\uc5d0 \uc544\ub798\ub97c \ucd94\uac00\ud55c\ub2e4.\n \n        'Form' => Collective\\Html\\FormFacade::class,\n        'Html' => Collective\\Html\\HtmlFacade::class,\n \n \n\uc774\ud6c4 Form \uc791\uc131 \ud654\uba74\uc5d0\uc11c \uc544\ub798\uc640 \uac19\uc774 \uac04\ub7b5\ud788 \uc791\uc131\ud558\uc5ec \uc0ac\uc6a9\ud55c\ub2e4. <\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{ Form::open(array(&#8216;action&#8217; =&gt; &#8216;PostsController@store&#8217;,&#8217;method&#8217;=&gt;&#8217;POST&#8217;)) }}<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&#8221;form-group&#8221;&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{Form::label(&#8216;title&#8217;,&#8217;Title&#8217;)}}<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{Form::text(&#8216;title&#8217;,&#8221;,[&#8216;class&#8217;=&gt;&#8217;form-control&#8217;,&#8217;placeholder&#8217;=&gt;&#8217;Title&#8217;])}}<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;\/div&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&#8221;form-group&#8221;&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{Form::label(&#8216;body&#8217;,&#8217;Body&#8217;)}}<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{Form::textarea(&#8216;body&#8217;,&#8221;,[&#8216;id&#8217;=&gt;&#8217;article-ckeditor&#8217;, &#8216;class&#8217;=&gt;&#8217;form-control&#8217;,&#8217;placeholder&#8217;=&gt;&#8217;Body Text&#8217;])}}<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;\/div&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{Form::submit(&#8216;Submit&#8217;,[&#8216;class&#8217;=&gt;&#8217;btn btn-primary&#8217;])}}<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{ Form::close() }}<\/p>\n<\/blockquote>\n\n\n\n<p>ckeditor \ub97c \ud1b5\ud574 html \ud0dc\uadf8\uac00 \ub4e4\uc5b4 \uc788\uc744\uc2dc \ud654\uba74\uc5d0 \ucd9c\ub825\uc2dc \uc544\ub798\uc640 \uac19\uc774 !! \ub123\uc5b4\uc11c \ud654\uba74\uc5d0 \ucd9c\ub825\ud558\uba74<br>\ud0dc\uadf8\uac00 \ud45c\uc2dc \ub41c\ub2e4.\u00a0<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>{!!$post->body!!}<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{ Form::open(array(&#8216;action&#8217; =&gt; &#8216;PostsController@store&#8217;,&#8217;method&#8217;=&gt;&#8217;POST&#8217;)) }} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [&hellip;]<\/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-898","post","type-post","status-publish","format-standard","hentry","category-laravel"],"_links":{"self":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/898","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=898"}],"version-history":[{"count":1,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/898\/revisions"}],"predecessor-version":[{"id":899,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/898\/revisions\/899"}],"wp:attachment":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}