app/Http/Controllers/enroll_courseController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\enroll_course  $enroll_course
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy($id_enroll)
    {
        $deleted = enroll_course::where('id_enroll', $id_enroll)->delete();
        return redirect('/dashboard/enroll')->with('deleted', 'Successfully Unenroll the Course!');
    }
public function destroy ( $ id_enroll ) { $ deleted = enroll_course :: where ( 'id_enroll' , $ id_enroll ) -> delete ( ) ; return redirect ( '/dashboard/enroll' ) -> with ( 'deleted' , 'Successfully Unenroll the Course!' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .