feat(social-media): add 'orden' field to social media pivot table and update related functionality

This commit is contained in:
2026-07-23 15:19:17 -03:00
parent 25891cefbc
commit 217f86f624
7 changed files with 70 additions and 7 deletions

View File

@@ -107,8 +107,9 @@ class Tenant extends Model
'codigo',
'code'
)
->withPivot('url')
->withTimestamps();
->withPivot(['url', 'orden'])
->withTimestamps()
->orderByPivot('orden');
}
public function menues(): BelongsToMany