Owl\Http\Controllers\TagController::show PHP Method

show() public method

show
public show ( string $tagName ) : view
$tagName string
return view
    public function show($tagName)
    {
        $tagName = mb_strtolower($tagName);
        $tag = $this->tagService->getByName($tagName);
        if (empty($tag)) {
            \App::abort(404);
        }
        $items = $this->itemService->getRecentsByTagId($tag->id);
        return \View::make('tags.show', compact('tag', 'items'));
    }