developing Laravel 3 and laravel 4
Asked Answered
P

2

7

Does application build on Laravel 3 work on Laravel 4?

In few days ago I found Laravel and now I try to learn it. Am I losing time learning Laravel 3 when Laravel 4 is coming? Is this a same with some addons in LV4? And would my application build in LV3 work in LV4?
Where and how to start learning LV4?

Precentor answered 26/1, 2013 at 19:3 Comment(0)
K
22

Laravel 4 is currently in beta 1 with beta 2 coming this or probably next week. To answer your question directly: yes your Laravel 3 (L3) application will break in Laravel 4 (L4) because L4 differs in quite a few points from L3. But L4 was designed with migrating from L3 installs in mind so you definitely don't have to rewrite your entire application. You probably only need to update some routes, functions and implement some new ways L4 handles certain key aspects. Like others stated here, a migration guide isn't available yet but you can bet that when L4 gets released a lot of tutorials and guides will be made available.

You're not losing time learning L3 since much of L4 is still the same as L3. The docs of L4 will help you transfer from L3 to L4. Taylor said (and I agree) that you shouldn't wait until L4 gets finished. If you want to build an app and release it for production soon just go with L3 and migrate later on.

The way L4 implements bundles differs from L3. L4 uses composer to install dependencies into the framework. You can always still use bundles directly in the app but they probably need to be updated to work along nicely with the updates in L4.

To start learning L4 the documentation is a great way to do so. You won't learn everything but work isn't done on the docs either. There's more to come as more betas get released.

If you want to learn more about L4 here are a few nice tutorials to get you started:

There's much more out there but this should get you started :)

Kreisler answered 26/1, 2013 at 19:59 Comment(5)
I had more links in it but Stackoverflow is nagging that I need 10 rep points for that :( Anyway, docs for Laravel 4: four.laravel.com and setting up Laravel 4: net.tutsplus.com/tutorials/php/how-to-setup-laravel-4Kreisler
Just found this on Jason's blog. It's a great post if you want to learn how L4 differs from L3: jasonlewis.me/article/…Kreisler
thanks, you are help me a lot.I am bean confusing, but now is ok.:)Precentor
Hey Dries, Interesting stuff, could you elaborate on what about starting a new application, a simple one, short-specs: login, openlayers maps with some ajax and responsive templates like initializr. It's really tempting to start doing it in version 4 already. Would you advice against or for ? I actually have a hard time finding version 4 download. tx for linksTopee
Hey Glenn, sorry for the late reply. I would just go with Laravel 4. The beta is pretty stable although not complete. I wouldn't recommend this for a large full scale production website though. You can find more info about installing L4 here: http://four.laravel.com/docs/installationKreisler
F
1

This should hopefully answer all of your questions: http://four.laravel.com/

I haven't seen a migration guide yet, but then I haven't looked too hard. I'm sure if there isn't one yet, there will be soon

Flaxen answered 26/1, 2013 at 19:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.