Laravel 5.6.16 Released

Laravel 5.6.16 Released

The latest version of Laravel 5.6, version 5.6.16, is officially available as of Monday with a couple of new features, including support for executing console commands using the class name.

Execute Commands with a Class Name

When you call a console command, you typically use the console command name to execute it programmatically:

Artisan::call('report:daily', [
    'Provider' => 1

Now with class support, you can call consoles by the name of the class:

Artisan::call(DailyReportCommand::class, [
    'Provider' => 1

Macroable View

The View is now “macroable”, which means you can define custom methods via a service provider boot() method just like many of the other services that ship with Laravel. You can learn more about it reading the source code of the Macroable trait in Laravel 5.6.

IAM Role Session Token

If you are using the Amazon Simple Email Service (SES) driver for email, you can now set an AWS_SESSION_TOKEN in the configuration. If you are using an IAM role, sending an email will fail with an invalid session token error. You can pass the token as follows in your configuration:

return [
    'ses' => [
        'key'    => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'token'  => env('AWS_SESSION_TOKEN'),
        'region' => env('AWS_REGION', 'eu-west-1'),

Here are the full release notes for Laravel 5.6.16:

v5.6.16 (2018-04-09)


  • Support executing artisan commands using class names (#23764)
  • Make View macroable (#23787)
  • Added database Connection::unsetEventDispatcher() method (#23832)
  • Support IAM role session token to be used with SES (#23766)


  • Added displayable value to required_unless rule (#23833)


  • Fixed RedisQueue::blockingPop() check when using PhpRedis (#23757)

Filed in: News


Join 31,000+ others and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Laravel Partner Seeks Team Lead / Developer
Kirschbaum Development Group, LLC
Engineering Director
Vancouver or remote (EST/PST preferred)
Engine Digital
Full-Stack Engineer
Vancouver or remote (EST/PST preferred)
Engine Digital
Sr. Software Engineer
Boca Raton - Florida, Remote - USA Only
Lead PHP Developer (€++)
Hoorn, The Netherlands