public function getValidLoginToken($token, $limit) { return \DB::table($this->getTableName())->where($this->getTableName() . '.token', $token)->where($this->getTableName() . '.updated_at', '>', $limit)->first(); }