config/app/Http/Controllers/SupplierController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\Supplier  $supplier
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Supplier $supplier,$slug)
    {
        $del = Supplier::where('supplier_status',0)->where('supplier_slug',$slug)->delete();
        if($del){
            Session::flash('delete_success','This supplier is deleted permanently');
            return redirect('/admin/restore/suppliers');
        }
        else{
            Session::flash('delete_error','Something were wrong!');
            return redirect('/admin/restore/suppliers');
        }
    }
public function destroy ( Supplier $ supplier , $ slug ) { $ del = Supplier :: where ( 'supplier_status' , 0 ) -> where ( 'supplier_slug' , $ slug ) -> delete ( ) ; if ( $ del ) { Session :: flash ( 'delete_success' , 'This supplier is deleted permanently' ) ; return redirect ( '/admin/restore/suppliers' ) ; } else { Session :: flash ( 'delete_error' , 'Something were wrong!' ) ; return redirect ( '/admin/restore/suppliers' ) ; } }
Remove the specified resource from storage.
Remove the specified resource from storage .