app/Http/Controllers/Admin/CategoryController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\Category  $category
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Category $category)
    {
        $category->delete();
        return response()->json([
            'status' => 'deleted'
        ], 200);
    }
public function destroy ( Category $ category ) { $ category -> delete ( ) ; return response ( ) -> json ( [ 'status' => 'deleted' ] , 200 ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .