From fb045348cf4c72a2f523b6a0ce360b40d4d60ff3 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Wed, 19 Jul 2023 01:50:07 +0100 Subject: feat: move bookmarks to database (#9) * Move bookmarks to SQL DB * Increment version --- resources/views/pages/bookmarks.blade.php | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'resources') 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'] }}

-