app/Http/Controllers/Api/CategoryController.php
/**
     * Update the specified resource in storage.
     *
     * @param  CategoryRequest $request
     * @param  int  $id
     * @return Response
     */
Update the specified resource in storage.
@param  CategoryRequest $request
@param  int  $id
@return Response
Update the specified resource in storage . @param CategoryRequest $request @param int $id @return Response
public function update(CategoryRequest $request, $id)
    {
        $category = Category::find($id) ;
        $category->update($request->all()) ;
    }
public function update ( CategoryRequest $ request , $ id ) { $ category = Category :: find ( $ id ) ; $ category -> update ( $ request -> all ( ) ) ; }
Update the specified resource in storage.
Update the specified resource in storage .