belongsTo(Venue::class); } /** * @param Builder $query * @param string $column * @param string $direction * * @return void */ public function scopeSortBy(Builder $query, string $column = 'id', string $direction = 'asc'): void { $query->orderBy($column, validateOrderDirection($direction)); } }