Thread Reader
Share this page!
×
Post
Share
Email
Enter URL or ID to Unroll
×
Unroll Thread
You can paste full URL like: https://x.com/threadreaderapp/status/1644127596119195649
or just the ID like: 1644127596119195649
How to get URL link on X (Twitter) App
On the Twitter thread, click on
or
icon on the bottom
Click again on
or
Share Via icon
Click on
Copy Link to Tweet
Paste it above and click "Unroll Thread"!
More info at
Twitter Help
Wendell Adriel
@wendell_adriel
Software Architect at TrackStreet 💻 Technical Content Writer ✍️ Open Source Enthusiast 🔥
Subscribe
Save as PDF
Dec 28, 2022
•
4 tweets
•
2 min read
Have you ever heard of API versioning?
This is very handy when you need to add an alternative logic for some endpoints but want to keep the current logic for some users.
There are many ways to achieve this. I'm going to show a simple one in this 🧵
#Laravel
#PHP
#PHPC
1/4
1.
Create a folder api inside routes
2.
Create a file v1.php inside routes/api
3.
Create a file v2.php inside routes/api
4.
Configure your routes/api.php file like the image
2/4