Articles

You should never use env() outside of your config files

7 months ago

I've seen a couple of questions on laravel forums that look something like this. .env Not Reading Variables Sometimes env() / getenv() Sometimes No...

Read more

Real world example of the power of collections

8 months ago

You've probably seen a lot of tweets and blog posts about how collections can make your code more readable and compact, reducing if statements and ugl...

Read more

Writing tests for functions that store files

8 months ago

You might have a function that generates a pdf, stores an attachment, or uploads an image. But have do you test that the file is getting created witho...

Read more