Laravel 9.13 Released

The Laravel team released 9.13 with a value() collection method, new test response helpers, an array map convenience method, and more. The post Laravel 9.13 Released appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox.

Continue Reading

Eloquent Performance: 4 Examples of N+1 Query Problems

Eloquent performance is typically the main reason for slow Laravel projects. A big part of that is a so-called “N+1 Query Problem”. In this article, I will show a few different examples of what to watch out for, including the cases when the problem is “hidden” in unexpected places in the code. The post Eloquent […]

Continue Reading

Laravel Dusk Browser Testing: Best Practices & Tips

There are various best practices that can help with building and maintaining Laravel Dusk browser tests (and I wish we had known all of these when we started with our test suite). In this article, see some of the lessons we’ve learned so you can write better Laravel Dusk tests yourself. The post Laravel Dusk […]

Continue Reading

Laravel Roles and Permissions: Gates and Policies Explained

In Laravel, roles and permissions have been one of the most confusing topics over the years. Mostly, because there is no documentation about it: the same things “hide” under other terms in the framework, like “gates”, “policies”, “guards”, etc. In this article, I will try to explain them all in “human language”. The post Laravel […]

Continue Reading

Laravel Log Fake 2.0

Laravel Log Fake v2.0 is here with support for Laravel 9 and a completely closure-based assertion API. The post Laravel Log Fake 2.0 appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox.

Continue Reading

Laravel 9.12 Released

The Laravel team released 9.12 with delaying notifications per channel, sharing logging context across channels, preventing stray HTTP requests while testing, and more. The post Laravel 9.12 Released appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox.

Continue Reading