public function read($id)
    {
        // clean expired tokens first
        $this->_cleanExpired();

        // clean id
        $id = preg_replace('/^([a-f0-9]{8}).*/', '$1', $id);

        // Get token for this id
        return $this->findById($id)->first();
    }
public function read($id)
    {
        // clean expired tokens first
        $this->_cleanExpired();

        // clean id
        $id = preg_replace('/^([a-f0-9]{8}).*/', '$1', $id);

        // Get token for this id
        return $this->findById($id)->first();
    }
public function read ( $ id ) { // clean expired tokens first $ this -> _cleanExpired ( ) ; // clean id $ id = preg_replace ( '/^([a-f0-9]{8}).*/' , '$1' , $ id ) ; // Get token for this id return $ this -> findById ( $ id ) -> first ( ) ; }
get token by id
@param  string $id   token id
@return bool|Token   false or token entity
get token by id