LoginSignup
6
6

More than 5 years have passed since last update.

Laravel4.1.xから4.2.xへのアップグレード方法

Last updated at Posted at 2014-06-03

ついにLaravel4.2がやってきましたー!

・リリースノート
http://laravel4.kore1server.com/docs/42/releases

PHP5.4が必要になったり、Laravel Forgeへの対応があったりetc etc....

というわけで今回はLaravel4.1.x→4.2.xへのアップグレード方法を書いていきます!

アップグレード方法

まずはcomposer.jsonの中身を変更していきます!
4.1.の部分を4.2.に変更しましょー

{
  "name": "laravel/laravel",
  "description": "The Laravel Framework.",
  "keywords": ["framework", "laravel"],
  "license": "MIT",
  "require": {
    "laravel/framework": "4.2.*",
  }, 

次にapp/config/app.phpに以下のコードも足して下さい!

'cipher' => MCRYPT_RIJNDAEL_256

で、後はcomposer updateを実行するだけ!
超簡単!

という訳で4.1.→4.2.は色々と変更点が多いですので、リリースノートを見つつ動かなくなっているところはないか確認してみてくださいー。

6
6
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6