app/Http/Controllers/BrandController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\Brand  $brand
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function delete($id)
    {
        $image = Brand::find($id);
        $old_image = $image->brand_image;
        unlink($old_image);
        Brand::find($id)->delete();
        return redirect()->back()->with('success', 'Category Deleted Succesfully!');
    }
public function delete ( $ id ) { $ image = Brand :: find ( $ id ) ; $ old_image = $ image -> brand_image ; unlink ( $ old_image ) ; Brand :: find ( $ id ) -> delete ( ) ; return redirect ( ) -> back ( ) -> with ( 'success' , 'Category Deleted Succesfully!' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .
//