|
3 | 3 | ## Upgrading From 4.0 to 4.1
|
4 | 4 |
|
5 | 5 | - Update `composer.json` to require `"laravel/framework": "4.1.*"`
|
6 |
| -- Remove call to `redirectIfTrailingSlash` in `bootstrap/start.php` file. |
7 |
| -- `composer update`. |
8 |
| -- Replace `public/index.php`, `artisan.php`. |
9 |
| -- Add new `app/config/remote.php` file. |
10 |
| -- Add new `expire_on_close` and `secure` options to `session` configuration file. |
11 |
| -- Add new `failed` queue job option to `queue` configuration file. |
| 6 | +- Remove call to `redirectIfTrailingSlash` in `/bootstrap/start.php` file. |
| 7 | +- Replace `/public/index.php` with [this](https://github.com/laravel/laravel/blob/develop/public/index.php) file, and `/artisan` with [this](https://github.com/laravel/laravel/blob/develop/artisan) file. |
| 8 | +- Add new `app/config/remote.php` file from [here](https://github.com/laravel/laravel/blob/develop/app/config/remote.php) |
| 9 | +- Add new `expire_on_close` and `secure` options to `session` configuration file to match [this](https://github.com/laravel/laravel/blob/develop/app/config/session.php) file. |
| 10 | +- Add new `failed` queue job option to `queue` configuration file to match [this](https://github.com/laravel/laravel/blob/develop/app/config/queue.php) file. |
12 | 11 | - Edit `app/config/database.php` and update `redis.cluster` option to `false` to turn Redis clustering off by default.
|
13 |
| -- Edit `app/config/view.php` and update `pagination` option to use bootstrap 3 as default pagination view. |
14 |
| -- Edit `app/config/app.php`; |
| 12 | +- Edit `app/config/view.php` and update `pagination` option to use bootstrap 3 as default pagination view (optional). |
| 13 | +- Edit `app/config/app.php` so the `aliases` and `providers` array match [this](https://github.com/laravel/laravel/blob/develop/app/config/app.php) file: |
15 | 14 | - in `aliases` change `'Controller' => 'Illuminate\Routing\Controllers\Controller',`
|
16 | 15 | to use `Illuminate\Routing\Controller`.
|
17 | 16 | - in `providers` add `'Illuminate\Remote\RemoteServiceProvider',`.
|
18 | 17 | - in `aliases` add `'SSH' => 'Illuminate\Support\Facades\SSH',`.
|
19 |
| -- Edit `app/controllers/BaseController.php` change `use Illuminate\Routing\Controllers\Controller;` to `use Illuminate\Routing\Controller;`. |
| 18 | +- If `app/controllers/BaseController.php` has a use statement at the top, change `use Illuminate\Routing\Controllers\Controller;` to `use Illuminate\Routing\Controller;`. You may also remove this use statament, for you have registered a class alias for this. |
20 | 19 | - If you are overriding `missingMethod` in your controllers, add $method as the first parameter.
|
21 | 20 | - Password reminder system tweaked for greater developer freedom. Inspect stub controller by running `auth:reminders-controller` Artisan command.
|
22 |
| -- Update `reminders.php` language file. |
| 21 | +- Update `reminders.php` language file to match [this](https://github.com/laravel/laravel/blob/master/app/lang/en/reminders.php) file. |
23 | 22 | - If you are using http hosts to set the $env variable in bootstrap/start.php, these should be changed to machine names (as returned by PHP's gethostname() function).
|
| 23 | + |
| 24 | +Finally, |
| 25 | + |
| 26 | +- Run `composer update` |
0 commit comments