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