app/Http/Controllers/SectionsController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\sections  $sections
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Request $request)
    {
        $id = $request->section_id;
        $section = sections::find($id)->delete();
        session()->flash('delete','تم الحذف بنجاح');
        return redirect('sections');
    }
public function destroy ( Request $ request ) { $ id = $ request -> section_id ; $ section = sections :: find ( $ id ) -> delete ( ) ; session ( ) -> flash ( 'delete' , 'تم الحذف بنجاح'); return redirect ( 'sections' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .