app/Http/Controllers/Tutor/SessionsController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Session  $session
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Session $session)
    {
        if (Gate::denies('manage-sessions')){
            return redirect() -> route('tutor.sessions.index');
        }
        $session->delete();
        return redirect() -> route('tutor.sessions.index');
    }
public function destroy ( Session $ session ) { if ( Gate :: denies ( 'manage-sessions' ) ) { return redirect ( ) -> route ( 'tutor.sessions.index' ) ; } $ session -> delete ( ) ; return redirect ( ) -> route ( 'tutor.sessions.index' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .