app/Http/Controllers/Blog/Admin/CategoryController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param int $id
     * @param BlogCategoryRepository $categoryRepository
     * @return Response
     */
Show the form for editing the specified resource.
@param int $id
@param BlogCategoryRepository $categoryRepository
@return Response
Show the form for editing the specified resource . @param int $id @param BlogCategoryRepository $categoryRepository @return Response
public function edit($id)
    {
        $item = $this->blogCategoryRepository->getEdit($id);
        if (empty($item)){
            abort(404);
        }
        $categoryList = $this->blogCategoryRepository->getForComboBox();
        return view('blog.admin.categories.edit',
            compact('item', 'categoryList'));
    }
public function edit ( $ id ) { $ item = $ this -> blogCategoryRepository -> getEdit ( $ id ) ; if ( empty ( $ item ) ) { abort ( 404 ) ; } $ categoryList = $ this -> blogCategoryRepository -> getForComboBox ( ) ; return view ( 'blog.admin.categories.edit' , compact ( 'item' , 'categoryList' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .
//        $item = BlogCategory::findorFail($id); //        $categoryList = BlogCategory::all();