---
title: "Laravel 12: Discover the Latest Version of the Popular PHP Framework!"
url: https://daily.dev/posts/laravel-12-discover-the-latest-version-of-the-popular-php-framework--xxl86igk0
source_url: https://daily.dev/posts/laravel-12-discover-the-latest-version-of-the-popular-php-framework--xxl86igk0
type: freeform
source: "Laravel Kids"
author: "Erhan ÜRGÜN"
published: 2025-02-06T09:16:40.571Z
updated: 2025-02-06T19:52:45.073Z
tags: ["webdev", "devops", "php", "laravel"]
reading_time: 5
upvotes: 26
comments: 6
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Laravel 12: Discover the Latest Version of the Popular PHP Framework!

**[Laravel Kids](https://daily.dev/sources/laravelkids)** · [@erhanurgun](https://daily.dev/erhanurgun) · 5 min read · 26 upvotes · 6 comments

## Summary

Laravel 12 introduces significant improvements in performance, developer experience, and security. Key features include asynchronous caching, enhanced query builder methods, real-time linting, AI-powered debugging, native GraphQL support, and modern frontend tool integration like Vite and Tailwind CSS. The official release is expected in Q1 2025, requiring a minimum of PHP 8.2, with a support policy extending until 2027.

## Content

Laravel continues to be one of the most popular frameworks in the PHP world, supporting modern development processes. I have closely examined Laravel 12, and I want to share the advantages of this new version with you. With Laravel 12, developing faster, scalable, and secure applications is now possible! In this article, I will cover the new features, changes, and the upgrade process of Laravel 12.

Laravel 12 is designed to further enhance the developer experience within the Laravel ecosystem, improve performance, and fully utilize modern PHP features. The new version allows developers to build faster, more scalable, and more secure applications while introducing changes and deprecations in some older methods.

## Release Date and Support Policy

* ![Laravel12](https://media.daily.dev/image/upload/s--2a15T6Gf--/f_auto/v1738832015/ugc/content_f6880f45-9f63-498c-95e8-e8fb3a2ce450)

    
    **Release Date:**  
    According to various sources, Laravel 12 is planned to be released in Q1 2025 (January-March 2025). Some sources, such as Laravel News, mention that Taylor Otwell announced February 24, 2025, as a specific date at the Laracon EU event, but the general consensus is Q1 2025.
    
* **PHP and Support Requirements:**  
    Laravel 12 will require a minimum of PHP 8.2, and according to Laravel's support policy, bug fixes will be provided until Q3 2026, and security updates until Q1 2027. For example, Laravel 11 is supported until March 2026, while Laravel 12's support extends several years beyond that.
    
## Key New Features

Based on information gathered from various sources, some important new features in Laravel 12 include:

### 1. Improved Performance and Scalability

* **Asynchronous Caching:** Cache operations now run in the background, preventing bottlenecks in applications with heavy data traffic.

**Before Update:**

```php
use Illuminate\Support\Facades\Cache;

// Caching a user
$user = Cache::remember('user_'.$id, 600, function () use ($id) {
    return User::find($id);
});
```

**After Update:**

```php
use Illuminate\Support\Facades\Cache;

// Using the new async caching API
$user = Cache::asyncRemember('user_'.$id, 600, function () use ($id) {
    return User::find($id);
});
```

* **Query Builder Enhancements:** Improved methods such as `nestedWhere` for handling complex queries more efficiently.

**Before Update:**

```php
$users = User::query()
    ->where('status', StatusEnum::ACTIVE)
    ->where(function ($query) {
        $query->where('age', '>', 25)
              ->orWhere('city', 'Ağrı');
    })->get();
```

**After Update:**

```php
$users = User::query()
    ->where('status', StatusEnum::ACTIVE)
    ->nestedWhere('age', '>', 25, 'or', 'city', 'Ağrı')
    ->get();
```

### 2. Enhanced Developer Experience

* **Real-time Linting and AI-powered Debugging:** Tools providing faster feedback while coding.
* **New Scaffolding System:** One command can now generate models, migrations, and controllers automatically.

**Before Update:**

```php
php artisan make:model Product -mcr
```

**After Update:**

```php
php artisan scaffold Product
```

### 3. Advanced API Development

* **Native GraphQL Support:** GraphQL support in API development, along with a new versioning syntax for cleaner route management.

**Before Update:**

```php
Route::get('/api/v1/users', [UserController::class, 'index']);
```

**After Update:**

```php
Route::apiVersion(1)->group(function () {
    Route::get('/users', [UserController::class, 'index']);
});
```

### 4. Modern PHP Features Integration

* **Streamlined Dependency Injection:** Utilizing PHP 8's property promotion for cleaner and more readable constructor definitions.

### 5. Modern Frontend Integration

* **Vite and Tailwind CSS:** Laravel 12 will seamlessly integrate with modern frontend tools. For example, the `frontend:install` command allows easy installation of your chosen frontend framework.

### 6. Improved Eloquent ORM Features

* **Conditional Eager Loading and Filtered Relationships:** Enhancements for reducing code repetition and improving the readability of relationship definitions.

### 7. Job and Queue Management Enhancements

* **Dynamic Prioritization and Advanced Retry Mechanisms:** More efficient management of background jobs.

### 8. Modern DevOps Integration

* **Deployment Commands:** New commands like `deploy:prepare` will make CI/CD processes more automated and reliable.

### 9. Security Improvements

* **Enhanced Validation Methods and Password Policies:** New methods like `secureValidate` will increase the security of form data.

## Deprecations and Changes

Some functions and approaches will be deprecated in Laravel 12. For example:

* **`route()` Helper Function:** Will only support string-based route names, disallowing arrays or other data structures.
* **Soft Deletes `restore()` in Global Scopes:** This method will be removed, encouraging model-based restore operations.
* **Array-Based Relationship Definitions:** Models will only support method-based relationship definitions, improving IDE support and code readability.

These changes aim to make the framework more modern and secure.

## Installation and Testing

Although Laravel 12 has not been officially released yet, you can test the development version with the following commands:

```bash
# Using Laravel installer
laravel new project-name --dev

# Or via Composer:
composer create-project --prefer-dist laravel/laravel project-name dev-master
```

## Contribution and Future Expectations

The Laravel team actively involves the developer community in the development of new features and identifying breaking changes. You can submit your suggestions via GitHub [pull requests](https://github.com/laravel/framework/pulls) and contribute to the evolution of Laravel 12.

## Summary

Laravel 12 promises significant improvements in both performance and developer experience. Features like asynchronous caching, modern dependency injection, improved API and frontend integration, and more position Laravel 12 as the next-generation PHP application development framework. The official release is expected in Q1 2025, with an easy transition planned for current Laravel 11 users.

## BONUS: My LinkedIn Post

Don't forget, you can access my previous LinkedIn post about Laravel 12 [here](https://www.linkedin.com/posts/erhanurgun_laravel12-laravel2025-yenisurum-activity-7217438029525749760-jLF-).

### Bibliography: 

**Blog Posts:**
- https://laravel-news.com/laravel-12-release-date
- https://benjamincrozat.com/laravel-12
- https://cloudways.com/blog/laravel-12
- https://laraveldaily.com/post/laracon-eu-2025-cloud-nightwatch-fusion-starter-kits-nativephp

**Laracon YouTube Videos:**
- https://youtube.com/watch?v=0dV0FbCOaU0
- https://youtube.com/watch?v=Ube_66RwDxI

**Github PRs for Laravel 12:**
- https://github.com/laravel/framework/pulls

---

If you enjoyed my article, feel free to share it and leave your thoughts in the comments!

Stay tuned for more content like this:

* Follow me on Daily.dev: [https://dly.to/tvhSbvvUB92](https://dly.to/tvhSbvvUB92)
* Follow me on LinkedIn: [https://lnkd.in/dCSADZMB](https://lnkd.in/dCSADZMB)
* Portfolio: [https://erhanurgun.tr](https://erhanurgun.tr/)
* Blog: [https://erho.dev](https://erho.dev/)
* All Links: [https://erho.me](https://erho.me/)

## Community discussion

Top comments from developers on daily.dev.

**@lukasss93** · 1 upvotes

> 100% of this article is completely made up.
> I went and checked in the code on github and there is nothing of what was said here.

**@bangkah** · 0 upvotes

> Can you point to the exact merged PRs for Cache::asyncRemember and nestedWhere?
> I can’t find them in the Laravel framework repo or RFCs.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#devops](https://daily.dev/tags/devops), [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/laravel-12-discover-the-latest-version-of-the-popular-php-framework--xxl86igk0)
