I am posting this question after struggling for 2 weeks on this.I am working on a Laravel project and I am stuck with a feature which I need to have on the project.
Actually I want to have dynamic URL generation for each user based on their username. Like slack does.
Let's say my domain is example.com
And suppose one user registers whose username is ryan
then I want to have URL like ryan.example.com
And when the site is running with this type of URL, it should work for that logged in user. So I will also need some mechanism in my Laravel project which can get me user id or other user details from that url sagment.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire