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 52<br />

Upgrading To 4.1 From 4.0<br />

Upgrading Your Composer Dependency<br />

To upgrade your application to Laravel 4.1, change your <strong>laravel</strong>/framework version to 4.1.* in<br />

your composer.json file.<br />

Replacing Files<br />

Replace your public/index.php file with this fresh copy from the repository¹⁷.<br />

Replace your artisan file with this fresh copy from the repository¹⁸.<br />

Adding Configuration Files & Options<br />

Update your aliases and providers arrays in your app/config/app.php configuration file. The<br />

updated values for these arrays can be found in this file¹⁹. Be sure to add your custom and package<br />

service providers / aliases back to the arrays.<br />

Add the new app/config/remote.php file from the repository²⁰.<br />

Add the new expire_on_close configuration option to your app/config/session.php file. The<br />

default value should be false.<br />

Add the new failed configuration section to your app/config/queue.php file. Here are the default<br />

values for the section:<br />

1 'failed' => [<br />

2 'database' => 'mysql', 'table' => 'failed_jobs',<br />

3 ],<br />

(Optional) Update the pagination configuration option in your app/config/view.php file to<br />

pagination::slider-3.<br />

Controller Updates<br />

If app/controllers/BaseController.php has a use statement at the top, change use Illuminate\Routing\Controllers\Controller;<br />

to use Illuminate\Routing\Controller;.<br />

¹⁷https://github.com/<strong>laravel</strong>/<strong>laravel</strong>/blob/v4.1.0/public/index.php<br />

¹⁸https://github.com/<strong>laravel</strong>/<strong>laravel</strong>/blob/v4.1.0/artisan<br />

¹⁹https://github.com/<strong>laravel</strong>/<strong>laravel</strong>/blob/v4.1.0/app/config/app.php<br />

²⁰https://github.com/<strong>laravel</strong>/<strong>laravel</strong>/blob/v4.1.0/app/config/remote.php

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

Saved successfully!

Ooh no, something went wrong!