public function show($key)
    {
        $this->authorize('read', Option::class);
        try {
            $option = $this->optionRepo->getOptions($key);
            return $this->respondWithSuccess($option, new OptionTransformer);
        } catch (RepositoryValidationException $e) {
            return $this->respondWithError($e->getMessage());
        }
    }
public function show($key)
    {
        $this->authorize('read', Option::class);
        try {
            $option = $this->optionRepo->getOptions($key);
            return $this->respondWithSuccess($option, new OptionTransformer);
        } catch (RepositoryValidationException $e) {
            return $this->respondWithError($e->getMessage());
        }
    }
public function show ( $ key ) { $ this -> authorize ( 'read' , Option :: class ) ; try { $ option = $ this -> optionRepo -> getOptions ( $ key ) ; return $ this -> respondWithSuccess ( $ option , new OptionTransformer ) ; } catch ( RepositoryValidationException $ e ) { return $ this -> respondWithError ( $ e -> getMessage ( ) ) ; } }
Display all options from selected category.

@param string $key option category key

@return \Illuminate\Http\JsonResponse
Display all options from selected category .