diff --git a/app/Http/Controllers/TagController.php b/app/Http/Controllers/TagController.php index 047fe68..323526d 100644 --- a/app/Http/Controllers/TagController.php +++ b/app/Http/Controllers/TagController.php @@ -2,6 +2,7 @@ namespace App\Http\Controllers; +use App\Models\Bookmark; use App\Models\Tag; use Illuminate\Http\Request; @@ -38,8 +39,9 @@ class TagController extends Controller { return view( 'tag.show', [ - 'tag' => $tag->load('bookmarks'), + 'tag' => $tag, 'tag_count' => $tag->bookmarks()->count(), + 'bookmarks' => $tag->bookmarks()->latest()->paginate(20), ] ); } diff --git a/resources/views/tag/show.blade.php b/resources/views/tag/show.blade.php index 09c281a..a83b064 100644 --- a/resources/views/tag/show.blade.php +++ b/resources/views/tag/show.blade.php @@ -2,9 +2,11 @@ @section('content')