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

suggest() public method

suggest
public suggest ( ) : json
return json
    public function suggest()
    {
        $tags = $this->tagService->getAll();
        $json = array();
        foreach ($tags as $tag) {
            $json[] = $tag->name;
        }
        return \Response::json($json);
    }