https://github.com/mertyildiran/laraup
Automatically upgrade your old Laravel 4.2 project to 5.8
https://github.com/mertyildiran/laraup
Last synced: 2 months ago
JSON representation
Automatically upgrade your old Laravel 4.2 project to 5.8
- Host: GitHub
- URL: https://github.com/mertyildiran/laraup
- Owner: mertyildiran
- Created: 2019-08-14T20:56:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-15T21:34:47.000Z (almost 6 years ago)
- Last Synced: 2025-04-23T04:09:03.819Z (6 months ago)
- Language: PHP
- Homepage:
- Size: 35.2 KB
- Stars: 35
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

**LaraUp** automatically upgrades your old Laravel 4.2 project to 5.8
### Usage
```Shell
./laraup.sh PATH_TO_OLD_LARAVEL_4.2_PROJECT PATH_TO_NEW_LARAVEL_5.8_PROJECT
```### Example
```Shell
./laraup.sh ../todo-app ../upgrade/todo-app5
```### Notes
LaraUp fixes pretty much any breaking changes except:
- We assume that you are using [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv) to load the environment variables from `.env` in
your Laravel 4.2 project. So we currently don't cover `.env.X.php` files in the upgrades. If you are not using `vlucas/phpdotenv` package in your project
then start to use it on your project before running LaraUp.
- Moving from Filters to Middlewares is not fully automated yet so you need to do some manual fixes in your Controllers and Routes
- Anything in `start/global.php` is untouched so you might need to move them into `register()` method of `AppServiceProvider`
- Anywhere that checks `detectEnvironment()` or `App::environment()` needs a rework