First up, we have email verification support out of the box in Laravel 5.7. It's as simple as adding implements MustVerifyEmail
to your User
class. Seriously.
Laravel 5.7 includes an incredibly useful new php artisan dump-server
command. Written by Marcel Pociot, this command provides a wrapper around Symfony's VarDumper component. While running, each time you dump data as part of your response (examples: dump($users)
or dd('hello world')
), the output will be swallowed up and printed in the console.
Laravel 5.7 ships with improved support for testing your Artisan commands. You can now leverage the helpful expectsQuestion()
and expectsOutput()
methods to ensure that your commands function exactly as expected.
Let's review a few smaller - yet still important - updates to Laravel 5.7. You'll learn about a new base directory for your JavaScript and CSS assets, callable action url generation, and guest authorizations.