Black Friday: the Laravel testing course is $149 instead of $249, through Dec 7. See the course →
logo

Don't import the whole AWS SDK for just one service

Eliminate tons of unused code

Joel Clermont
Joel Clermont
2025-06-05

From our daily Laravel tips email. Get the next one in your inbox.

In a previous tip, I explained how to make the AWS SDK much smaller by only importing the services you need. I don't normally obsess over the size of dependencies, but this is a pretty drastic improvement.

In today's video, I will walk through the two basic steps and show what a difference it makes in the size of the vendor folder.

Watch Now (6 min)

And after watching, don't forget to subscribe to our YouTube channel, so you don't miss future videos.

Here to help,

Joel

P.S. Validation is really important in your app, but it doesn't always get the attention it deserves. We've written the ultimate guide to Laravel validation rules to help you get the most out of this powerful feature.

Want a tip like this in your inbox every weekday?

Each one takes less than 2 minutes to read. Join 4,000+ Laravel developers who already get them.

email
No spam. Only real-world advice.
Toss a coin in the jar if you found this helpful.