app/Http/Controllers/Admin/CategoryController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\Category  $category
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, Category $category)
    {
        $data = $request->all();
        $category->update($data);
        return response()->json([
            'status' => 'updated'
        ], 200);
    }
public function update ( Request $ request , Category $ category ) { $ data = $ request -> all ( ) ; $ category -> update ( $ data ) ; return response ( ) -> json ( [ 'status' => 'updated' ] , 200 ) ; }
Update the specified resource in storage.
Update the specified resource in storage .