original_string: public function publicDelete($user, Event $event)
      {
          if ($event->creator->id == $user->id) {
              return User::findOrFail($user->id)->hasPermission('laralum::events.delete-public');
          }
  
          return false;
      }
code: public function publicDelete($user, Event $event)
      {
          if ($event->creator->id == $user->id) {
              return User::findOrFail($user->id)->hasPermission('laralum::events.delete-public');
          }
  
          return false;
      }
code_tokens: public function publicDelete ( $ user , Event $ event ) { if ( $ event -> creator -> id == $ user -> id ) { return User :: findOrFail ( $ user -> id ) -> hasPermission ( 'laralum::events.delete-public' ) ; } return false ; }
docstring: Determine if the current user can delete events on public views.
  
  @param mixed $user
  
  @return bool
docstring_tokens: Determine if the current user can delete events on public views .