What version of Laravel do you recomend I use? 5.1 or 5.2?
I am starting a new project. I am making my own CMS to manage websites and I doubt what version of Laravel I should use. I know Laravel 5.1 is LTS and it is very good but Laravel 5.2 is newer. What versión of Laravel would yo use? Thanks for your answers.
@ncarreno Depends on what you’re building. If it’s business critical and it’s going to be used for a long time, go for the LTS support (5.1). If you don’t need LTS support and you’re happy with keeping Laravel up to date and taking advantage of new features, go for 5.2.
I just started a new project on 5.2 and am having a lot more difficulty getting things running than previously with 5.1.
My two pain points are Session initialization happens after Exceptions are thrown, so using Auth::user() or Auth::check() within the Exceptions/Handler.php isn't possible (with the out-of-the-box setup). I'm using Angular, and was using the Handler.php for a lot of my routing.
Also checking subscriptions with Cashier is more difficult in my opinion. Instead of $user->subscribed(), you have to pass a plan-name as an argument if you have > 1 plan. So you have to hit the DB to get the user's plan name. So far I don't understand why they implemented this requirement.. The simplicity of the 5.1 implementation is what made it great.
While Laravel LTS demonstrates amazing dedication from a project perspective (kudos Laravel), Laravel LTS is a trap from a development perspective. It's pessimistic and comes with technical debt. To use an analogy, you're being sold an older car with a longer warranty? Unless you have a very strong requirement you should use the latest, stable version of Laravel.