Show the tags

This commit is contained in:
Jonny Barnes 2017-10-11 16:30:09 +01:00
parent abe5063c4a
commit 919a6c22ad
3 changed files with 23 additions and 1 deletions

View file

@ -8,7 +8,7 @@ class BookmarksController extends Controller
{
public function index()
{
$bookmarks = Bookmark::paginate(10);
$bookmarks = Bookmark::with('tags')->latest()->paginate(10);
return view('bookmarks.index', compact('bookmarks'));
}