Currently, Laravel supports four databases:
- MySQL
- Postgres
- SQLite
- SQL Server
https://laravel.com/docs/5.3/database
Choosing the best DB engine, depends on your project type...
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
what are the database engines I can use with laravel 5 and later? also what is the criteria I would use to choose the best engine for my project ?
[Advance warning - contains biased views]
I've used both MySQL and PostgreSQL, they are similar in quite a few ways:
@Martha - either will work fine for your purpose. I have a slight preference for PostgreSQL these days since someone showed some of its strengths to me:
PostgreSQL has more consistent date/time implementation (this is a big point for my uses).
Here's a really big point for me. In 2010 Oracle bought Sun Microsystems who run the MySQL project. At that point the lead developer forked MySQL to make MariaDB and took senior developers with him. Some say Oracle has a history of buying products and then milking them for every penny in professional support fees - but that's just what I've heard. FYI: MariaDB promises 100% compatibility with MySQL. PostgreSQL however has no owner. It's a 100% Open Source project, with no multi-national super-company overseeing it. Some of the major companies that use PostgreSQL allow their developers to spend some/all of their time on PostgreSQL development - partly so they can add features they need. New features are not as frequent (although in the last year they seem to have upped the pace), but what you get with PostgreSQL is a DBMS that is rock-solid reliable and very battle-tested. Every decision on date/time types, function names etc looks like it has been agonised over in the same way that @TaylorOtwell agonises over Laravel's code. That swings it for me!
There's more info here. https://www.wikivs.com/wiki/MySQL_vs_PostgreSQL
On the flip side, some of the software for managing MySQL is a bit nicer, I will give them that. There are also more online resources if you're new to databases in general.
Please or to participate in this conversation.