06.10.2016 Views

laravel-5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Release Notes 22<br />

“Simple Paginate”<br />

A new simplePaginate method was added to the query and Eloquent builder which allows for more<br />

efficient queries when using simple “Next” and “Previous” links in your pagination view.<br />

Migration Confirmation<br />

In production, destructive migration operations will now ask for confirmation. Commands may be<br />

forced to run without any prompts using the --force command.<br />

Laravel 4.1<br />

Full Change List<br />

The full change list for this release by running the php artisan changes command from a<br />

4.1 installation, or by viewing the change file on Github⁹. These notes only cover the major<br />

enhancements and changes for the release.<br />

New SSH Component<br />

An entirely new SSH component has been introduced with this release. This feature allows you<br />

to easily SSH into remote servers and run commands. To learn more, consult the SSH component<br />

documentation.<br />

The new php artisan tail command utilizes the new SSH component. For more information,<br />

consult the tail command documentation¹⁰.<br />

Boris In Tinker<br />

The php artisan tinker command now utilizes the Boris REPL¹¹ if your system supports it. The<br />

readline and pcntl PHP extensions must be installed to use this feature. If you do not have these<br />

extensions, the shell from 4.0 will be used.<br />

Eloquent Improvements<br />

A new hasManyThrough relationship has been added to Eloquent. To learn how to use it, consult the<br />

Eloquent documentation.<br />

A new whereHas method has also been introduced to allow retrieving models based on relationship<br />

constraints.<br />

⁹https://github.com/<strong>laravel</strong>/framework/blob/4.1/src/Illuminate/Foundation/changes.json<br />

¹⁰http://<strong>laravel</strong>.com/docs/ssh#tailing-remote-logs<br />

¹¹https://github.com/d11wtq/boris

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

Saved successfully!

Ooh no, something went wrong!