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