app/Http/Controllers/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 redirect()->route('category.index')->with('message','Category is Deleted');
    }
public function destroy ( Category $ category ) { $ category -> delete ( ) ; return redirect ( ) -> route ( 'category.index' ) -> with ( 'message' , 'Category is Deleted' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .
//