29.07.2016 Views

laravel-5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Release Notes 12<br />

Database Queue<br />

A database queue driver is now included in Laravel, providing a simple, local queue driver that<br />

requires no extra package installation beyond your database software.<br />

Laravel Scheduler<br />

In the past, developers have generated a Cron entry for each console command they wished to<br />

schedule. However, this is a headache. Your console schedule is no longer in source control, and<br />

you must SSH into your server to add the Cron entries. Let’s make our lives easier. The Laravel<br />

command scheduler allows you to fluently and expressively define your command schedule within<br />

Laravel itself, and only a single Cron entry is needed on your server.<br />

It looks like this:<br />

.<br />

1 $schedule->command('artisan:command')->dailyAt('15:00');<br />

Of course, check out the full documentation to learn all about the scheduler!<br />

Tinker / Psysh<br />

The php artisan tinker command now utilizes Psysh⁴ by Justin Hileman, a more robust REPL for<br />

PHP. If you liked Boris in Laravel 4, you’re going to love Psysh. Even better, it works on Windows!<br />

To get started, just try:<br />

.<br />

1 php artisan tinker<br />

DotEnv<br />

Instead of a variety of confusing, nested environment configuration directories, Laravel 5 now<br />

utilizes DotEnv⁵ by Vance Lucas. This library provides a super simple way to manage your<br />

environment configuration, and makes environment detection in Laravel 5 a breeze. For more details,<br />

check out the full configuration documentation.<br />

⁴https://github.com/bobthecow/psysh<br />

⁵https://github.com/vlucas/phpdotenv

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!