Cartalyst\Sentinel\Activations\IlluminateActivationRepository::completed PHP Method

completed() public method

{@inheritDoc}
public completed ( Cartalyst\Sentinel\Users\UserInterface $user )
$user Cartalyst\Sentinel\Users\UserInterface
    public function completed(UserInterface $user)
    {
        $activation = $this->createModel()->newQuery()->where('user_id', $user->getUserId())->where('completed', true)->first();
        return $activation ?: false;
    }

Usage Example

 /**
  * {@inheritDoc}
  *
  * @static 
  */
 public static function completed($user)
 {
     return \Cartalyst\Sentinel\Activations\IlluminateActivationRepository::completed($user);
 }