original_string: public function leave(Event $event)
      {
          $this->authorize('join', Event::class);
          $event->deleteUser(User::findOrfail(Auth::id()));
  
          return redirect()->route('laralum::events.index')
              ->with('success', __('laralum_events::general.left_event', ['id' => $event->id]));
      }
code: public function leave(Event $event)
      {
          $this->authorize('join', Event::class);
          $event->deleteUser(User::findOrfail(Auth::id()));
  
          return redirect()->route('laralum::events.index')
              ->with('success', __('laralum_events::general.left_event', ['id' => $event->id]));
      }
code_tokens: public function leave ( Event $ event ) { $ this -> authorize ( 'join' , Event :: class ) ; $ event -> deleteUser ( User :: findOrfail ( Auth :: id ( ) ) ) ; return redirect ( ) -> route ( 'laralum::events.index' ) -> with ( 'success' , __ ( 'laralum_events::general.left_event' , [ 'id' => $ event -> id ] ) ) ; }
docstring: Leave from the specified resource from storage.
  
  @param \Laralum\Events\Models\Event $event
  
  @return \Illuminate\Http\Response
docstring_tokens: Leave from the specified resource from storage .