Laravel 5.7.16 Released- What’s New in Laravel 5.7?

by jay patel




Laravel 5.7.16 is available with new translation messages for the 403 and 503 blade templates and enabling the migrator to accept not only migration directory paths but also file paths too.

First up, the 403.blade.php file now has a translatable exception message and fallback:

 

 

@section ( ' message ' , __ ( $exception -> getMessage( )   ? :  __( 'Sorry,  you  are  forbidden  from accessing  this  page. ' ) ) )

 

 

Next, the 503.blade.php file has a translatable message and fallback is now as follows:

 

 

@section ( ' message ' ,  __ ( $exception-> getMessage( )  ? :   __( ' Sorry , we  are  doing some maintenance.  Please check back soon.  ') ) )

 

 

The last new addition is the migrator being able to handle both file paths and directories for PHP migration files. Previously, only directories were allowed. Here’s the change made to the Migrator::getMigrationFiles() collection map:

 

 

return  Str : : endsWith ( $path ,  ' . php ' )  ?  [ $path ]  :  $this-> files -> glob ( $path. ' / * _ * .php ' ) ;

 

 

This release has quite a few fixes, including a revert to a breaking change for the TestResponse::decodeResponseJson method.

You can see the full list of fixes below, and the full diff between 5.7.15 and 5.7.16 on GitHub.



Leave a Reply

Your email address will not be published. Required fields are marked *

   Confirm you are not a spammer
   Notify me of follow-up comments by email.