{"id":922,"date":"2024-04-15T13:57:02","date_gmt":"2024-04-15T04:57:02","guid":{"rendered":"http:\/\/inwelly.com\/?p=922"},"modified":"2024-04-15T13:57:02","modified_gmt":"2024-04-15T04:57:02","slug":"php-laravel-%ec%97%ac%eb%9f%ac%ea%b0%9c%ec%9d%98-%ed%8c%8c%ec%9d%bc-%eb%a7%8c%eb%93%a4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/inwelly.com\/?p=922","title":{"rendered":"PHP Laravel &#8211; \uc5ec\ub7ec\uac1c\uc758 \ud30c\uc77c \ub9cc\ub4e4\uae30"},"content":{"rendered":"\n<p>\u00a0\\app\\Http\\Controllers\\PagesController.php<\/p>\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>    <strong>public function <\/strong>index()<br>    {<br>        <strong>return <\/strong>view('pages.index');<br>    }<br><br>    <strong>public function <\/strong>about()<br>    {<br>        <strong>return <\/strong>view('pages.about');<br>    }<br><br>    <strong>public function <\/strong>services()<br>    {<br>        <strong>return <\/strong>view('pages.services');<br>    }<br><br>}<\/pre>\n<\/blockquote>\n\n\n\n<p>\\resources\\views\\pages\\index.blade.php<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-preformatted\">&lt;!doctype html&gt;<br>&lt;html lang=\"{{ app()-&gt;getLocale() }}\"&gt;<br>&lt;head&gt;<br>    &lt;meta charset=\"utf-8\"&gt;<br>    &lt;meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"&gt;<br>    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;<br>    &lt;title&gt;{{config('app.name','LSAPP')}}&lt;\/title&gt;<br>&lt;\/head&gt;<br>&lt;body&gt;<br>&lt;h1&gt;INDEX PAGE&lt;\/h1&gt;<br>&lt;p&gt;The index page&lt;\/p&gt;<br>&lt;\/body&gt;<br>&lt;\/html&gt;<\/pre>\n<\/blockquote>\n\n\n\n<p>\\resources\\views\\pages\\about.blade.php<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-preformatted\">&lt;!doctype html&gt;<br>&lt;html lang=\"{{ app()-&gt;getLocale() }}\"&gt;<br>&lt;head&gt;<br>    &lt;meta charset=\"utf-8\"&gt;<br>    &lt;meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"&gt;<br>    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;<br>    &lt;title&gt;{{config('app.name','LSAPP')}}&lt;\/title&gt;<br>&lt;\/head&gt;<br>&lt;body&gt;<br>&lt;h1&gt;About PAGE&lt;\/h1&gt;<br>&lt;p&gt;The About page&lt;\/p&gt;<br>&lt;\/body&gt;<br>&lt;\/html&gt;<\/pre>\n<\/blockquote>\n\n\n\n<p>\\resources\\views\\pages\\services.blade.php<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-preformatted\">&lt;!doctype html&gt;<br>&lt;html lang=\"{{ app()-&gt;getLocale() }}\"&gt;<br>&lt;head&gt;<br>    &lt;meta charset=\"utf-8\"&gt;<br>    &lt;meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"&gt;<br>    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;<br>    &lt;title&gt;{{config('app.name','LSAPP')}}&lt;\/title&gt;<br>&lt;\/head&gt;<br>&lt;body&gt;<br>&lt;h1&gt;Services PAGE&lt;\/h1&gt;<br>&lt;p&gt;The Services page&lt;\/p&gt;<br>&lt;\/body&gt;<br>&lt;\/html&gt;<\/pre>\n<\/blockquote>\n\n\n\n<p>\\routes\\web.php<\/p>\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>\/*<br>| --------------------------------------------------------------------------<br>| Web Routes<br>|--------------------------------------------------------------------------<br>|<br>| Here is where you can register web routes for your application. These<br>| routes are loaded by the RouteServiceProvider within a group which<br>| contains the \"web\" middleware group. Now create something great!<br>|<br>*\/<br><br><br>Route::<em>get<\/em>('\/','PagesController@index');<br>Route::<em>get<\/em>('\/about','PagesController@about');<br>Route::<em>get<\/em>('\/services','PagesController@services');<\/pre>\n<\/blockquote>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"889\" height=\"458\" src=\"http:\/\/inwelly.com\/wp-content\/uploads\/2024\/04\/image-474.png\" alt=\"\" class=\"wp-image-923\" style=\"width:920px;height:auto\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"430\" src=\"http:\/\/inwelly.com\/wp-content\/uploads\/2024\/04\/image-475.png\" alt=\"\" class=\"wp-image-924\" style=\"width:920px;height:auto\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"810\" height=\"467\" src=\"http:\/\/inwelly.com\/wp-content\/uploads\/2024\/04\/image-476.png\" alt=\"\" class=\"wp-image-925\" style=\"width:920px;height:auto\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0\\app\\Http\\Controllers\\PagesController.php &lt;?phpnamespace App\\Http\\Controllers;use Illuminate\\Http\\Request;class PagesController extends Controller{ public function index() { return view(&#8216;pages.index&#8217;); } public function about() { return view(&#8216;pages.about&#8217;); [&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-922","post","type-post","status-publish","format-standard","hentry","category-laravel"],"_links":{"self":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/922","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=922"}],"version-history":[{"count":1,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/922\/revisions"}],"predecessor-version":[{"id":926,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/922\/revisions\/926"}],"wp:attachment":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}