public function deleteListingDuration(Request $request)
    {
        $this->validate(
            $request,
            [
                'listing_duration_id' => 'required|integer|exists:listing_durations',
            ]
        );

        $listing_duration = ListingDuration::find($request->input('listing_duration_id'));

        $listing_duration->delete();

        return redirect()->back()->withStatus(trans('mustard::admin.listing_duration_deleted'));
    }
public function deleteListingDuration(Request $request)
    {
        $this->validate(
            $request,
            [
                'listing_duration_id' => 'required|integer|exists:listing_durations',
            ]
        );

        $listing_duration = ListingDuration::find($request->input('listing_duration_id'));

        $listing_duration->delete();

        return redirect()->back()->withStatus(trans('mustard::admin.listing_duration_deleted'));
    }
public function deleteListingDuration ( Request $ request ) { $ this -> validate ( $ request , [ 'listing_duration_id' => 'required|integer|exists:listing_durations' , ] ) ; $ listing_duration = ListingDuration :: find ( $ request -> input ( 'listing_duration_id' ) ) ; $ listing_duration -> delete ( ) ; return redirect ( ) -> back ( ) -> withStatus ( trans ( 'mustard::admin.listing_duration_deleted' ) ) ; }
Delete a listing duration.

@return \Illuminate\Http\RedirectResponse
Delete a listing duration .