Back to Blog

Laravel 10.16 Released

Julian Beaujardin
Julian Beaujardin Reference: Laravel News July 26th, 2023

This week, the Laravel team released v10.16 with support for BackedEnum in the Collection groupBy method, improvements to the schedule:list output for sub-minute tasks, allow binding of IPv6 addresses in artisan serve, and more:

Improve the display of sub-minute tasks in Artisan

Jess Archer fixed the display of the schedule:list command for sub-minute tasks. This update also includes displaying the repeat frequency where applicable.

Allow binding of IPv6 addresses with artisan serve

@MuriloChianfa contributed adding detection patterns of IPv6 addresses to the artisan serve command:

php artisan serve --host="[::1]:8082"
# Server running on [http://[::1]:8082].

php artisan serve --host="[::1]:8082" --port="8083"
# Server runntng on [http://[::1]:8083].

Support for BackedEnum in Collection groupBy method

Ostap Brehin contributed support for BackedEnum in the Collection::groupBy method:

$attributesByCategory = Attribute::whereIn('category', [
      AttributeCategory::LOREM,
      AttributeCategory::IPSUM,
  ])
  ->get()
  ->groupBy('category');

enum AttributeCategory: string
{
    case LOREM  = 'lorem';
    case IPSUM   = 'ipsum';
}

class Attribute extends Model
{
    protected $casts = [
        'category' => AttributeCategory::class,
    ];
}

Check out Pull Request #47823 for more details.

Release notes

You can see the complete list of new features and updates below and the diff between 10.15.0 and 10.16.0 on GitHub. The following release notes are directly from the changelog: