Add layout view
MODIFY
resources/views/dashboard.blade.php
resources/views/dashboard.blade.php
-<!DOCTYPE html>
-<html>
- <head>
- <title>Budget</title>
- <link rel="stylesheet" href="/style.css" />
- </head>
- <body>
- <div class="navigation">
- <div class="navigation__wrapper">
- <ul>
- <li>
- <a href="/dashboard">Dashboard</a>
- </li>
- </ul>
- </div>
- </div>
- <div class="body__wrapper">
+@extends('layout')
+
+@section('body')
Hello
- </div>
- </body>
-</html>
+@endsection

ADD
resources/views/layout.blade.php
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Budget</title>
+ <link rel="stylesheet" href="/style.css" />
+ </head>
+ <body>
+ <div class="navigation">
+ <div class="navigation__wrapper">
+ <ul>
+ <li>
+ <a href="/dashboard">Dashboard</a>
+ </li>
+ </ul>
+ </div>
+ </div>
+ <div class="body__wrapper">
+ @yield('body')
+ </div>
+ </body>
+</html>

MODIFY
resources/views/login.blade.php
resources/views/login.blade.php
+@extends('layout')
+
+@section('body')
<form method="POST">
{{ csrf_field() }}
<label>E-mail</label>
<input type="password" name="password" />
<input type="submit" value="Log in" />
</form>
+@endsection

Add layout view