At the beginning of this post, I’d like to show you how to test APIs by using Laravel or Guzzle. The different is functions provided by Laravel can only be used to test the features built on Laravel. For example, if you have a page for file uploading and you want to test it, it’s very simple by usin
Speeding up Unit Tests with Laravel
We suffered the slowness of the unit testing that was integrated with Laravel migration until last week. The tests execution time on my Mac is 21 minutes in average and more than one hour on our DEV server. we are annoyed with the huge time occupation in each release. Because we may deploy serval ti
The Import Things You Should Know about Laravel Cache
Caching is a strategy that aims to get a higher performance of an application. Here are some experiences that I have learned during working on Laravel. Different storage drives must be used in particular situations Laravel provides file storage as default and it has a convenient way to implement oth
The Right Way to Upgrade PHP to 7.1+
Laravel Framework has been upgraded to Laravel 5.6. It's quite important to follow the steps of official releases for the framework you are working on. I have seen several projects stuck on some old versions of PHP and never can upgrade to the latest version again. Upgrading PHP version for your pr
Give Your Laravel Application a Better Performance
In this benchmark, I did nothing with Laravel itself, I'm just want to see the different behaviors of the different optimization ways. First of all, I'd like to put the conclusion here. The OPcache is a good choice to speed up your PHP project. From the two pics below, it seems like I didn't get the