Owl\Http\Controllers\TagController::show PHP 메소드

show() 공개 메소드

show
public show ( string $tagName ) : view
$tagName string
리턴 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'));
    }