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