src/Stevemo/Cpanel/User/Repo/UserRepository.php
public function deactivate($id)
    {
        $user = $this->findById($id);
        $user->activated = 0;
        $user->activated_at = null;
        $user->save();
        $this->event->fire('users.deactivate',array($user));
        return true;
    }
public function deactivate($id)
    {
        $user = $this->findById($id);
        $user->activated = 0;
        $user->activated_at = null;
        $user->save();
        $this->event->fire('users.deactivate',array($user));
        return true;
    }
public function deactivate ( $ id ) { $ user = $ this -> findById ( $ id ) ; $ user -> activated = 0 ; $ user -> activated_at = null ; $ user -> save ( ) ; $ this -> event -> fire ( 'users.deactivate' , array ( $ user ) ) ; return true ; }
De activate a user

@author Steve Montambeault
@link   http://stevemo.ca

@param $id

@return bool
De activate a user