From fb045348cf4c72a2f523b6a0ce360b40d4d60ff3 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Wed, 19 Jul 2023 01:50:07 +0100 Subject: [PATCH] feat: move bookmarks to database (#9) * Move bookmarks to SQL DB * Increment version --- config/app.php | 2 +- resources/views/pages/bookmarks.blade.php | 24 ++++++++++++++++++----- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/config/app.php b/config/app.php index 275fd7c..f151b73 100644 --- a/config/app.php +++ b/config/app.php @@ -17,7 +17,7 @@ */ 'name' => env('APP_NAME', 'diskfloppy.me'), - 'version' => '5.4.5', + 'version' => '5.4.6', /* |-------------------------------------------------------------------------- diff --git a/resources/views/pages/bookmarks.blade.php b/resources/views/pages/bookmarks.blade.php index 331d9fb..16d07cc 100644 --- a/resources/views/pages/bookmarks.blade.php +++ b/resources/views/pages/bookmarks.blade.php @@ -1,13 +1,27 @@ -get('bookmarks'); ?> @extends('layouts.default') @section('title', 'bookmarks') @section('description', 'This is the personal homepage of floppydisk.') @section('content') +@php + $categories = DB::select(' + SELECT id, name + FROM bookmark_categories + ORDER BY priority ASC + '); +@endphp + @foreach ($categories as $category) -

{{ $category['name'] }}

-