Discover and read the best of Twitter Threads about #phpc

Most recents (2)

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 Image
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 Image
5. Configure your routes/api/v1.php file like the image

3/4 Image
Read 4 tweets
As a Laravel Dev who consistently uses Macs, here's a 🧵 of little tips I have for you when using the command line

#macos #laravel #symfony #phpc
1. If you need to find a command you previously used CTRL + R will let you search for old commands in your ~/.zsh_history file.
2. To move quickly left and right on the CLI, hold the ALT key with the arrow keys and it will force the cursor left and right to the next white space in the command.
Read 8 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!