{"id":680,"date":"2019-05-07T09:39:43","date_gmt":"2019-05-07T00:39:43","guid":{"rendered":"https:\/\/dennie.tokyo\/it\/?p=680"},"modified":"2020-03-14T12:18:24","modified_gmt":"2020-03-14T03:18:24","slug":"%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-laravel5-8","status":"publish","type":"post","link":"https:\/\/dennie.tokyo\/it\/?p=680","title":{"rendered":"\u3010Laravel\u3011 Laravel \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>Laravel5.8\u3092Centos7\u3078\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<!--more--><br \/>\nweb\u30b5\u30fc\u30d0\u306bapache\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h1>\u6e96\u5099<\/h1>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u8981\u4ef6<\/h2>\n<p>Laravel\u3092\u52d5\u4f5c\u3055\u305b\u308b\u306b\u306f\u3001\u3044\u304f\u3064\u304bphp\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/dennie.tokyo\/it\/?p=675\" rel=\"noopener noreferrer\" target=\"_blank\">Laravel5.8\u306ephp\b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u8981\u4ef6<\/a>\u3092\u53c2\u8003\u306b\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<h2>\u30b3\u30f3\u30dd\u30fc\u30b6\u30fc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Laravel\u306fcomposer\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<br \/>\ncomposer\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<div class=\"title_box\">\n    <span class=\"box-title\">\u30b3\u30f3\u30dd\u30fc\u30b6\u30fc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/p>\n<p><a href=\"https:\/\/dennie.tokyo\/it\/?p=61\" rel=\"noopener noreferrer\" target=\"_blank\">\u30b3\u30f3\u30dd\u30fc\u30b6\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/a><\/p>\n<\/div>\n<h1>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5834\u6240<\/h2>\n<p>\u5f8c\u306b\u8aac\u660e\u3057\u307e\u3059\u304c\u3001\u4eca\u56de\u306f\u4f8b\u3068\u3057\u3066Centos7\u4e0a\u306e \/www-contents \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078Laravel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u79fb\u52d5\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<pre class=\"lang:default decode:true \" >cd \/<\/pre>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b9f\u884c<\/h2>\n<p>composer\u3092\u4f7f\u7528\u3057\u3066Laravel\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001www-contents\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306bLaravel\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" >composer create-project --prefer-dist laravel\/laravel www-contents<\/pre>\n<h1>\u8a2d\u5b9a<\/h1>\n<h2>\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a<\/h2>\n<p>Laravel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306bPublic\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092apache\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u5408\u308f\u305b\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u5408\u308f\u305b\u305a\u3001apache\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u3092\u5229\u7528\u3057\u307e\u3059\u3002<br \/>\n\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u3067\u8a2d\u5b9a\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3068\u3057\u3066\u5229\u7528\u3057\u307e\u3059\u3002<br \/>\napache\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306b\u3064\u3044\u3066\u306f\u4ed6\u306e\u30b5\u30a4\u30c8\u3092\u53c2\u7167\u3057\u3066\u4e0b\u3055\u3044\u3002<br \/>\nCentos7\u306e\u4ee5\u4e0b\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea(\/etc\/httpd\/conf.d)\u3078vhost.conf\u30d5\u30a1\u30a4\u30eb\u3092\u914d\u7f6e\u3057\u307e\u3059\u3002<br \/>\nvhost.conf\u306e\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" >&lt;VirtualHost *:80&gt;\r\n    ServerName sample01.local\r\n    DocumentRoot \/www-contents\/public\r\n    &lt;Directory \"\/www-contents\/public\"&gt;\r\n        Options -Indexes +FollowSymLinks\r\n        AllowOverride All\r\n        Require all granted\r\n    &lt;\/Directory&gt;\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>\u4e0a\u8a18vhost.conf\u306e\u5185\u5bb9\u3092\u8aac\u660e\u3059\u308b\u3068\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3092\u3001 \/www-contents\/public \u3078\u8a2d\u5b9a\u3057\u3001\/www-contents\/public \u4ee5\u4e0b\u306e.htaccess\u30d5\u30a1\u30a4\u30eb\u3092\u6709\u52b9\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3<\/h2>\n<p>Laravel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306b\u3001storage\u3001bootstrap\/cache\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" >\/\/ Laravel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u79fb\u52d5\u3059\u308b\u3002\r\ncd \/www-contents\r\n\r\n\/\/ \u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u5909\u66f4\u3059\u308b\u3002\r\nchmod -R 777 storage\r\nchmod -R 777 bootstrap\r\n<\/pre>\n<p>storage\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3001Laravel\u304c\u30ed\u30b0\u3092\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<br \/>\nbootstrap\/cache\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u4e3b\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<h1>\u78ba\u8a8d<\/h1>\n<p>\u30ed\u30fc\u30ab\u30eb\u30db\u30b9\u30c8\u306eweb\u30b5\u30fc\u30d0\u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<br \/>\n\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u3067\u3001http:\/\/\u30db\u30b9\u30c8\u540d\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001Laravel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306epublic\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<br \/>\n\u30d6\u30e9\u30a6\u30b6\u3078\u4ee5\u4e0b\u306eURL\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" >\/\/ \u30dd\u30fc\u30c8\u3092\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u3002\r\nhttp:\/\/localhost\r\n\r\n\r\n\/\/ \u30dd\u30fc\u30c8\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u3002ex) \u30dd\u30fc\u30c84003\r\nhttp:\/\/localhost:4003<\/pre>\n<h1>\u307e\u3068\u3081<\/h1>\n<p>\u6b21\u56de\u306fMVC\u30e2\u30c7\u30eb\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308bLaravel\u306eView\u3092\u30d6\u30e9\u30a6\u30b6\u753b\u9762\u306b\u8868\u793a\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<div class=\"title_box\">\n    <span class=\"box-title\">\u6b21\u56de<\/span><\/p>\n<p><a href=\"https:\/\/dennie.tokyo\/it\/?p=695\" rel=\"noopener noreferrer\" target=\"_blank\">\u3010Laravel\u3011View \u753b\u9762\u8868\u793a\u8d85\u5165\u9580<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Laravel5.8\u3092Centos7\u3078\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-680","post","type-post","status-publish","format-standard","hentry","category-laravel"],"_links":{"self":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=680"}],"version-history":[{"count":26,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/680\/revisions"}],"predecessor-version":[{"id":1576,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/680\/revisions\/1576"}],"wp:attachment":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}