Redirect to new slug after updating tenant name
Hi.
I have the below EditTenantProfile set up just like the docs:
Now, I have a
slug
column on my Team
model, that is automatically set based on the name:
Now, currently, when updating the name of the team, it will result in a 404 page (since the slug is now updated, and thus the old slug no longer exists).
I added this method on the EditTeamProfile.php
, but I am unsure if there are other easier ways of doing this?
0 Replies