'datetime', ]; } public function macros(): BelongsToMany { return $this->belongsToMany(Macro::class, 'macro_collection_macros') ->withPivot('order') ->orderBy('macro_collection_macros.order'); } }