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.

Upgrade Guide 26<br />

1 $query->join('table', function($join) {<br />

2 $join->on('foo', 'bar')->where('bar', 'baz');<br />

3 });<br />

The $bindings property was also removed. To manipulate join bindings directly you may use the<br />

addBinding method:<br />

1 $query->join(DB::raw('('.$subquery->toSql().') table'), function($join) use ($su\<br />

2 bquery) {<br />

3 $join->addBinding($subquery->getBindings(), 'join');<br />

4 });<br />

Upgrading To 5.2.0 From 5.1 {#upgrade-upgrade-5.2.0}<br />

Estimated Upgrade Time: Less Than 1 Hour<br />

Note: We attempt to provide a very comprehensive listing of every possible breaking<br />

change made to the framework. However, many of these changes may not apply to your<br />

own application.<br />

Updating Dependencies<br />

Update your composer.json file to point to <strong>laravel</strong>/framework 5.2.*.<br />

Add "symfony/dom-crawler": "∼3.0" and "symfony/css-selector": "∼3.0" to the requiredev<br />

section of your composer.json file.<br />

Authentication<br />

Configuration File<br />

You should update your config/auth.php configuration file with the following: https://github.com/<strong>laravel</strong>/<strong>laravel</strong>/b<br />

¹²https://github.com/<strong>laravel</strong>/<strong>laravel</strong>/blob/master/config/auth.php

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

Saved successfully!

Ooh no, something went wrong!