Improving the performance of Laravel's spatie/laravel-permission
Filtering Laravel Collections can become a performance bottleneck. Using the filter
method is significantly faster then the where
method, if used properly. Read the article for a full comparison and benchmark results.
Link:
This post is submitted by our members. Submit a new post.
Tags: Tutorials Laravel 5 Laravel 5.5 Laravel 5.4 Laravel 5.6 Laravel 5.3 Intermediate