X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FDiscordGuild.php;h=bcbd12dd32b835a4b71bcabf774a0e6a1e31f424;hb=f6408dcec11bb63eb1c996d73ebf5629335e25aa;hp=84fd77bc4af0b785ff7df37aaf3ff3a1f899dc9d;hpb=d566d913c251fbb05e6bd314cc51f8b5ca49fe57;p=alttp.git diff --git a/app/Models/DiscordGuild.php b/app/Models/DiscordGuild.php index 84fd77b..bcbd12d 100644 --- a/app/Models/DiscordGuild.php +++ b/app/Models/DiscordGuild.php @@ -45,11 +45,11 @@ class DiscordGuild extends Model } public function channels() { - return $this->hasMany(DiscordChannel::class); + return $this->hasMany(DiscordChannel::class)->orderBy('position'); } public function roles() { - return $this->hasMany(DiscordRole::class); + return $this->hasMany(DiscordRole::class)->orderBy('position'); } protected $fillable = [