1. views/layouts/main.blade.php 파일생성
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Movie App</title>
<!-- Tailwind Css Style -->
<link rel="stylesheet" href="/css/main.css">
</head>
<body>
<nav>Nav goes here</nav>
@yield('content')
</body>
</html>
2. views/index.blade.php 파일생성
@extends('layouts.main')
@section('content')
<div>Index of movies</div>
@endsection
3. views/show.blade.php
4. routes/web.php
<?php
use Illuminate\Support\Facades\Route;
Route::view('/','index');
Route::view('/movie', 'show');
결과
'라라벨 > laravel-movies' 카테고리의 다른 글
테일윈드css 로딩 스피너 설치 (0) | 2020.04.12 |
---|---|
7. 디테일페이지 만들기 (0) | 2020.04.06 |
4. main, index, show 디자인양식 (0) | 2020.04.05 |
2. Fontatwesome 설치하기 (0) | 2020.04.05 |
1. 라라벨7설치, 테일윈드css설치 (0) | 2020.04.05 |