Laravel 5.7.10 Released

The Laravel team shipped Laravel 5.7.10 yesterday with a handful of new features, fixes, and changes: First up, is the ability to load relationship counts on an Eloquent collection. Before this feature, you could only load relationships, but now you can call loadCount() to get counts for all relations. The pull request illustrates how you could use loadCount() with the following example: Now all the eventable models would have a count value for comments or hearts respectively. The loadCount feature was added by Tim MacDonald. Tim is the author of the Laravel Log Fake package that we featured earlier this month. Nice work Tim! You can use the assertSoftDeleted to assert that a model has been soft deleted. Before Laravel 5.7.10, the method call might look something like the following: Read Full Article at