public function create(CategoryRequest $request)
    {

        $category = $this->repository->newInstance([]);
        return $this->response->title(trans('app.new') . ' ' . trans('faq::category.name')) 
            ->view('faq::category.create', true) 
            ->data(compact('category'))
            ->output();
    }
public function create(CategoryRequest $request)
    {

        $category = $this->repository->newInstance([]);
        return $this->response->title(trans('app.new') . ' ' . trans('faq::category.name')) 
            ->view('faq::category.create', true) 
            ->data(compact('category'))
            ->output();
    }
public function create ( CategoryRequest $ request ) { $ category = $ this -> repository -> newInstance ( [ ] ) ; return $ this -> response -> title ( trans ( 'app.new' ) . ' ' . trans ( 'faq::category.name' ) ) -> view ( 'faq::category.create' , true ) -> data ( compact ( 'category' ) ) -> output ( ) ; }
Show the form for creating a new category.

@param Request $request

@return Response
Show the form for creating a new category .