feat(social-media): add 'orden' field to social media pivot table and update related functionality
This commit is contained in:
@@ -28,7 +28,8 @@ class SocialMedia extends Model
|
||||
'code',
|
||||
'codigo'
|
||||
)
|
||||
->withPivot('url')
|
||||
->withTimestamps();
|
||||
->withPivot(['url', 'orden'])
|
||||
->withTimestamps()
|
||||
->orderByPivot('orden');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user