public function destroy($id)
    {
        $faq = $this->repository->find($id);

        if (empty($faq)) {
            Cms::notification('FAQ not found', 'warning');

            return redirect(route($this->routeBase.'.faqs.index'));
        }

        $faq->delete();

        Cms::notification('FAQ deleted successfully.', 'success');

        return redirect(route($this->routeBase.'.faqs.index'));
    }
public function destroy($id)
    {
        $faq = $this->repository->find($id);

        if (empty($faq)) {
            Cms::notification('FAQ not found', 'warning');

            return redirect(route($this->routeBase.'.faqs.index'));
        }

        $faq->delete();

        Cms::notification('FAQ deleted successfully.', 'success');

        return redirect(route($this->routeBase.'.faqs.index'));
    }
public function destroy ( $ id ) { $ faq = $ this -> repository -> find ( $ id ) ; if ( empty ( $ faq ) ) { Cms :: notification ( 'FAQ not found' , 'warning' ) ; return redirect ( route ( $ this -> routeBase . '.faqs.index' ) ) ; } $ faq -> delete ( ) ; Cms :: notification ( 'FAQ deleted successfully.' , 'success' ) ; return redirect ( route ( $ this -> routeBase . '.faqs.index' ) ) ; }
Remove the specified FAQ from storage.

@param int $id

@return Response
Remove the specified FAQ from storage .