Quick Tip To Speed Up Your Laravel Tests

in Resources

Here is a quick tip that will speed up your Laravel unit tests straight from Taylor Otwell (the creator of Laravel).

For this change you just need to edit the CreatesApplication trait and add the function Hash::setRounds(4); into the createApplication method.

The setting will change the work factor of the bcrypt hasher.

Many people are seeing speed changes of up to 50% so it's worth trying out.

Subscribe To Newsletter

Get weekly updates to your email