{"id":1033,"date":"2024-04-16T19:53:43","date_gmt":"2024-04-16T10:53:43","guid":{"rendered":"http:\/\/inwelly.com\/?p=1033"},"modified":"2024-04-16T19:53:43","modified_gmt":"2024-04-16T10:53:43","slug":"php-laravel-67-%ea%b8%b4%ea%b8%80-%ec%9e%90%eb%a5%b4%ea%b8%b0-helpers","status":"publish","type":"post","link":"https:\/\/inwelly.com\/?p=1033","title":{"rendered":"PHP Laravel 6,7 &#8211; \uae34\uae00 \uc790\ub974\uae30 ( Helpers )"},"content":{"rendered":"\n<p>> Controllers \uc5d0\uc11c \uc0ac\uc6a9\u00a0<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>use Illuminate\\Support\\Str;&nbsp; &nbsp; \/\/ \ucd94\uac00<\/p>\n\n\n\n<p>$truncated = Str::limit(&#8216;\uac00\ub098\ub2e4\ub77c\ub9c8\ubc14\uc0ac \uc544 \uc790 \ucc28 \uce74 ABcdef 12345566&#8217;, 20); \/\/ \uc0ac\uc6a9<\/p>\n<\/blockquote>\n\n\n\n<p>> Frontend { \ud30c\uc77c \uc608 : index.blade.php\u00a0 } \uc5d0\uc11c \uc0ac\uc6a9\ud558\uae30<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>{{ \\Illuminate\\Support\\Str::limit(&#8216;\uac00\ub098\ub2e4\ub77c\ub9c8\ubc14\uc0ac \uc544 \uc790 \ucc28 \uce74 ABcdef 12345566&#8242;, 20, $end=&#8217;&#8230;&#8217;) }}\u00a0<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>> Controllers \uc5d0\uc11c \uc0ac\uc6a9\u00a0 use Illuminate\\Support\\Str;&nbsp; &nbsp; \/\/ \ucd94\uac00 $truncated = Str::limit(&#8216;\uac00\ub098\ub2e4\ub77c\ub9c8\ubc14\uc0ac \uc544 \uc790 \ucc28 \uce74 ABcdef 12345566&#8217;, 20); \/\/ [&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-1033","post","type-post","status-publish","format-standard","hentry","category-laravel"],"_links":{"self":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/1033","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=1033"}],"version-history":[{"count":1,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/1033\/revisions"}],"predecessor-version":[{"id":1034,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/1033\/revisions\/1034"}],"wp:attachment":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}