You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Flarum now comes with a slug driver system, where you can specify functions to map an abstract slug to/from a model instance. You could use this to implement this feature without editing the database directly.
@askvortsov1 Thanks for your suggestion. It would be better if it didn't edit the database.
I will look at the code about the slug driver system and try to implement this feature.
Hi! Flarum now comes with a slug driver system, where you can specify functions to map an abstract slug to/from a model instance. You could use this to implement this feature without editing the database directly.
For example, a User IdSlugDriver: https://github.com/flarum/core/blob/eed449a3ea3e898b7186ea39c80d7a09dbfd5fed/src/User/IdSlugDriver.php#L15-L15
The text was updated successfully, but these errors were encountered: