Tiny tips

In here, I will throw anything small enough that it doesn't deserves its own series. That said, there will be some things to keep in mind while coding. And I'll start with the one that baffled me hard: Laravel artisan commands constructor.

1. Artisan constructors

While working on a long term project, after awhile I experienced longer and longer artisan commands execution times. But since the increases were very small (but many), I haven't noticed it until it was about 3 seconds for any command. But this was ok, because there are commands that were pulling big amounts of data to be used in reporting.

But then I noticed something else: ANY command...

19 mins read
Tags: