diff options
Diffstat (limited to 'app/Http/Controllers/AdminBookmarksController.php')
-rw-r--r-- | app/Http/Controllers/AdminBookmarksController.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/Http/Controllers/AdminBookmarksController.php b/app/Http/Controllers/AdminBookmarksController.php new file mode 100644 index 0000000..c7d8afd --- /dev/null +++ b/app/Http/Controllers/AdminBookmarksController.php @@ -0,0 +1,15 @@ +<?php + +namespace App\Http\Controllers; + +use App\Models\BookmarkCategory; +use Illuminate\Support\Facades\DB; +use Illuminate\View\View; + +class AdminBookmarksController extends Controller +{ + public function show() : View { + $categories = BookmarkCategory::with('sites')->get(); + return view('admin.bookmarks', compact('categories')); + } +} |