Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jeroenvanrensen's avatar

Is a old Laravel website still safe?

Hi everyone,

I want to create a website in Laravel 7 and PHP 7.4. I've got the following question:

Will the website still be safe in 10 years?

So, are the current Laravel and PHP versions safe enough to create a website with and don't upgrade it?

Thank you! Jeroen

0 likes
11 replies
bobbybouwmann's avatar

@jeroenvanrensen The answer is simply no.

PHP and Laravel regularly bring out updates including security updates, but also new features. You should always try to stay on the latest version because that is probably the most secure version out there.

For example, PHP 8 has been announced. This means that PHP 7.4 will still get new features and support, but at some point, they will only focus on PHP 8 and leave PHP 7.4 for what it is.

You can read more about the PHP live cycle here: https://www.php.net/supported-versions.php

Laravel releases every 6 months a new version. So soon Laravel 8 will be available. It's a good practice to update all your dependencies every half year. This way your application is up to date, secure, and you can also make use of the new features ;)

1 like
jeroenvanrensen's avatar

But I want to create a website, and over a few years I don't want to update it. WordPress has update features which I really like, but I prefer to use Laravel.

So is it still safe in ten years?

1 like
KLM113's avatar

No it's not, any dynamic website requires maintenance and regular updates, it doesn't matter how are you handling your business logic and your data layer.

jlrdw's avatar

@jeroenvanrensen most PHP code it's normally backwards compatible. Not all but most. That's where you have to check things like change logs.

I would suggest you learn PHP real well, and if you are needing longer backwards compatibility without constant updates, program your own framework. But even then you will have to update PHP versions at times and tweak just a very few things that are not backwards compatible anymore.

I have one custom framework myself that is at least 6 years old but it's been updated over the years and it's fully php 7.4 compatible. And surprisingly only a few little tweaks here and there kept it updated.

But these are just thoughts and suggestions on alternatives of course what you do is completely up to you.

And don't forget laravel has LTS versions. But I have found it's easier just to stay up to date as the six-month version come out. To me updating and upgrading really only takes a few minutes.

bobbybouwmann's avatar

@jeroenvanrensen Do you have a car? Or a bike? Or even a coffee machine? That also needs to be cleaned and maintained from time to time, right? A web application is nothing different ;)

2 likes
Snapey's avatar
Snapey
Best Answer
Level 122

Are applications written 10 years ago still safe... probably not. Yet at the time, we thought we were using best practices. But still, people discover issues and then exploit those issues on servers that have not been patched.

To think that you can get away with not updating a site for that long is just burying your head in the sand. Besides, we may all be using new devices by then, we will have different design standards, there may be legal requirements regarding all websites for security and accessibility.

The web is a constantly developing thing. Not a book.

2 likes
jeroenvanrensen's avatar

Hi everyone,

Thank you all for sharing your thoughts with me. I made a decision: I'm going to use WordPress for this website.

Again, thank you all!

Jeroen

Snapey's avatar

because wordpress updates itself?

Please or to participate in this conversation.