Laravel 12 – What's New & How to Get Started
Laravel 12 – What's New & How to Get Started
Laravel 12 is here! This release focuses on making development even smoother with new tools, performance improvements, and minimal breaking changes. If you're a Laravel developer, here's what you need to know.
What's New in Laravel 12?
🚀 Modern Starter Kits
Laravel 12 brings new starter kits for React, Vue, and Livewire. These kits come with:
- Inertia.js for seamless single-page app experiences.
- TypeScript for better maintainability.
- Tailwind CSS & ShadCN UI for a sleek design.
- WorkOS AuthKit (optional) for easy social login, passkeys, and SSO.
🔥 Faster & More Efficient
- xxHash replaces MD5, making hashing faster.
- UUID v7 support, improving database indexing.
- MariaDB CLI Support, so you can now use MariaDB natively in Laravel.
- Collection::range now includes a step parameter, making sequence generation more flexible.
🔧 Easier Debugging
debug()->suggest()
helps identify issues faster by suggesting solutions in real-time.
🔑 Stronger Password Security
- New password validation rules to enforce stronger passwords.
How to Install Laravel 12
Getting started with Laravel 12 is easy. Just follow these steps:
-
Install Laravel globally (if you haven't already):
composer global require laravel/installer
-
Create a new Laravel 12 project:
laravel new myproject cd myproject
-
Install dependencies:
composer install
-
Set up your environment file:
cp .env.example .env
Configure your database and other settings in
.env
. -
Generate an application key:
php artisan key:generate
-
Run database migrations:
php artisan migrate
-
Start the development server:
php artisan serve
Your Laravel 12 app is now running at
http://localhost:8000
! 🎉
Why Upgrade to Laravel 12?
- Minimal breaking changes – upgrading is easy.
- Better performance with faster hashing and indexing.
- More tools for modern web apps like React, Vue, and Livewire.
- Improved security with stronger password validation.
License
This project is open-source and available under the MIT License.
Laravel 12 makes development smoother and more powerful. Ready to build something amazing? 🚀