Add IndexController
ADD
app/Http/Controllers/IndexController.php
+<?php
+
+namespace App\Http\Controllers;
+
+use Illuminate\Http\Request;
+
+class IndexController extends Controller {
+ public function index() {
+ return view('index');
+ }
+}

MODIFY
resources/assets/sass/app.scss
resources/assets/sass/app.scss
@@ -22,3 +22,15 @@ body {
canvas {
width: 100%;
}
+
+.wallpaper {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ flex-direction: column;
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+}

ADD
resources/views/index.blade.php
+@extends('layout')
+
+@section('body')
+ <div class="wallpaper">
+ <h1>Budget</h1>
+ <div class="row gutter spacing-top-large">
+ <div class="column">
+ <a href="/login">Log in</a>
+ </div>
+ <div class="column">
+ <a href="/register">Register</a>
+ </div>
+ </div>
+ </div>
+@endsection

MODIFY
routes/web.php
routes/web.php
<?php
+Route::get('/', 'IndexController@index')->name('index');
+
Route::get('/login', 'LoginController@index')->name('login');
Route::post('/login', 'LoginController@store');

Add IndexController