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