Just dont use Laravel5 before RC.
Development in Laravel 5, best practices
Today I noticed that Taylor made some changes to the default service providers.
As from the start of the Laravel 5 series here on Laracast I switched over development of a new project to Laravel 5 ( I read that Jeffrey himeself is also developing in Laravel 5 atm).
That things might break during this phase I know, L5 is still in development. But how to handle changes like today: https://github.com/laravel/laravel/commit/e700cd710effa2f6f0146ed1295edb5f854f0a19
How do you guys handle this? Track these kind of changes without missing out on the new 'fixes' or copying your own code in a fresh laravel install regularly??
I keep a clean local copy of laravel/laravel which is tracking to the develop branch. Then when I'm ready to update my L5 application, I run a git pull, and it tells me all of the modified files. Then I copy each file over into my application, use git to review the changes and manually merge them. While that's happening, I do a composer update to update the framework.
The important things are that I do this every few days, so the changes don't pile up - smaller changes are a lot simpler to merge, and I only update via composer when updating the application. They need to stay in sync.
If it help, the git commands I use to set it up are:
git clone https://github.com/laravel/laravel.git
cd laravel/
git checkout develop
Then when I'm ready to update:
valorin@aragorn:~/workspace/laravel> git pull
remote: Counting objects: 17, done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 17 (delta 4), reused 0 (delta 0)
Unpacking objects: 100% (17/17), done.
From https://github.com/laravel/laravel
2889a26..0a45098 develop -> origin/develop
Updating 2889a26..0a45098
Fast-forward
app/Providers/EventServiceProvider.php | 19 +++++++++++++++++++
app/Providers/FilterServiceProvider.php | 2 +-
app/Providers/RouteServiceProvider.php | 2 +-
config/app.php | 1 +
resources/assets/.gitkeep | 0
5 files changed, 22 insertions(+), 2 deletions(-)
create mode 100644 app/Providers/EventServiceProvider.php
create mode 100644 resources/assets/.gitkeep
Note in the git pull output it lists 5 modified files. These are the only ones we need to worry about updating in our application.
Please or to participate in this conversation.