Reference Link for upgrade laravel
- Official Laravel Upgrade 4.2 to 5.0
- Awesome Upgrade Guide By Corey McMahon
- Laravl Custom Validator or Upgrade Custom Validator library to latest laravel version
- How to Load your custom Lib file into classmap: File composer.json:
"autoload": {
"classmap": [
"database",
"app/libs" // Add directory from app, new custom validator file add here.
],
"psr-4": {
"App\\": "app/"
}
},
After change of composer.json, you need to composer autoload generate again.
composer dump-autoload
- You need to change composer laravel package version value: 5.0 to 5.0.*
- In your
bootstrap/autoload.php
file, update the$compiledPath
variable to: (Upgrade 5.0 to 5.0.16)
$compiledPath = __DIR__.'/../vendor/compiled.php';