public function destroy($id)
    {
        $scheduler = Scheduler::findOrFail($id);

        $scheduler->history()->delete();
        $scheduler->delete();

        return redirect(route('eyewitness.dashboard').'#scheduler')->withSuccess('The scheduler has been deleted.');
    }
public function destroy($id)
    {
        $scheduler = Scheduler::findOrFail($id);

        $scheduler->history()->delete();
        $scheduler->delete();

        return redirect(route('eyewitness.dashboard').'#scheduler')->withSuccess('The scheduler has been deleted.');
    }
public function destroy ( $ id ) { $ scheduler = Scheduler :: findOrFail ( $ id ) ; $ scheduler -> history ( ) -> delete ( ) ; $ scheduler -> delete ( ) ; return redirect ( route ( 'eyewitness.dashboard' ) . '#scheduler' ) -> withSuccess ( 'The scheduler has been deleted.' ) ; }
Destroy the scheduler.

@param  integer  $id
@return \Illuminate\Http\Response
Destroy the scheduler .