# 개발환경 os: windows10 pro 64bit php : v7.4.2 node : v10.16.0 laravel : 6.16.0 |
0. 디렉토리 구조
1. /root/routes/web.php
1.1. default
'/' route 경로로 접근했을 때, /root/resources/views/welcome.blade.php 페이지를 반환
1.2. web.php 수정
'hello' route 경로로 접근했을 때, views/hello.blade.php 페이지를 반환
2. /root/resources/views/hello.blade.php 생성
/*
* /root/resources/views/hello.blade.php
*/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Hello</h1>
<h2>hello blade php</h2>
</body>
</html>
2.1. 브라우저 확인 / 127.0.0.1:8000/hello
'LARAVEL' 카테고리의 다른 글
[LARAVEL] Eloquent 개념 (0) | 2020.02.25 |
---|---|
[Laravel] Authentication(로그인, 로그아웃, 사용자 인증) (0) | 2020.02.23 |
[Laravel] 버전 확인 (0) | 2020.02.23 |
[laravel] 설치 (0) | 2020.02.23 |
laravel + Nuxt.js로 SPA 만들기 (0) | 2020.02.22 |