# Convert Laravel to Next.js, Bun, Rust or Go

URL: https://symelo.com/services/convert-laravel

We move Laravel applications to Next.js, Bun, Rust or Go, route by route: the same data, users and API, typed end to end, without a big-bang rewrite.

## Convert a Laravel application without a big-bang rewrite

A Laravel conversion moves your application to TypeScript on Next.js and Bun, or to Rust or Go, and leaves PHP, Laravel and its Composer packages behind. Users sign in with the passwords they already have, the URLs and the API your mobile app or partners call stay the same, and the data stays in your database.

We don't switch everything off at once. The new application starts in front of the old one and takes over one route at a time, a public page, a dashboard, an API endpoint, while Laravel keeps answering the rest. Each step is live and can be undone, and the last one switches Laravel off.

You get one language from the database to the browser, a server that is already running when a request arrives, far fewer third-party packages, and code that is checked by its types before it ships.

## The same application on a new stack

### What stays the same

Your database and its data, users and their passwords, the URLs, the API contract your apps and partners rely on, scheduled jobs and the emails the application sends.

### What changes

The code and the runtime. PHP, Laravel and the Composer packages give way to TypeScript on Next.js and Bun, or to Rust or Go: one process that is already running, typed queries, and a short list of dependencies.

### What gets fixed on the way

What has piled up: N+1 queries, jobs that silently fail, secrets in .env files on the server, missing tests, abandoned packages. We list them and you decide which to fix.

## Why teams move away from Laravel

### A fix release almost every week

The framework published 26 security advisories in 2026, 21 of them in November alone, from validation bypasses to SQL injection and a critical authentication bypass in October. Each one means updating, testing and deploying every application on it.

### Two years of fixes per version

Each Laravel version gets security fixes for two years: Laravel 11 lost them in March 2026 and Laravel 12 stopped getting bug fixes in August 2026. PHP 8.2 itself loses its security fixes at the end of 2026. Staying supported is a yearly upgrade project.

### One leaked key opens the server

Laravel decrypts cookies into PHP objects, so whoever has an application's APP_KEY can often run code on it. GitGuardian and Synacktiv extracted 260,000 APP_KEYs from public GitHub repositories and compromised 600 applications with them in their research.

### Packages you didn't write run every request

In May 2026 about 700 versions of the laravel-lang translation packages were re-tagged with a credential stealer that ran on every request. A typical Laravel application pulls in many such packages through Composer, each one trusted with everything the application can reach.

### Two languages, two worlds

Most Laravel applications pair PHP on the server with JavaScript in the browser, through Livewire, Inertia or a separate front end. Moving to TypeScript puts the whole application in one language, with types that run from the database query to the button.

### The framework boots on every request

On PHP-FPM, Laravel loads its service providers, configuration and routes for each request, then throws them away. Octane avoids that at the cost of new rules for state; a Bun, Rust or Go server is simply already running.

## Laravel and PHP vulnerabilities in 2025–2026

UpHeron, the vulnerability and uptime monitor we build and run, collects the advisories of Laravel, its packages and the applications built on it from NVD, the CVE Program, GitHub and OSV.dev as they appear. The list above is its newest entries; the issues below are the ones that cost applications the most, with what their sources say.

Moving to another framework is not a security fix by itself, and we won't pretend it is: Next.js published 51 security advisories in 2026, and React's server components had a critical flaw in December 2025. Every stack needs its fixes applied the week they come out, and that is part of our maintenance.

What a conversion changes is how much runs and who wrote it: no PHP object decryption that turns a leaked key into code execution, far fewer third-party packages, dependencies pinned and checked on every build, and secrets kept out of files on the server.

## Is a converted Laravel application faster?

In HTTP Archive's data for October 2026, Laravel sites are close to the average of the web: 52.7% pass Core Web Vitals on phones, against 53.0% of all websites, and 40.9% have a good time to first byte, against 46.8%.

The gain comes from how the new application is built: public pages rendered in advance and served from a CDN, a server that doesn't boot a framework for each request, and only the JavaScript each screen uses. The framework alone does not do it: Next.js sites pass Core Web Vitals on phones less often than average (37.2%). We measure the old and the new version of each route before it switches.

## Next.js, Bun, Rust or Go: which one fits

### Laravel to Next.js

Our default when the application has public pages and a signed-in part. Public pages are rendered ahead of time and served from a CDN; dashboards and forms are React components with server actions, typed from the database to the button. One language, TypeScript, for the pages, the API and the background jobs. It runs on Bun or Node.js on a small VPS.

### Laravel to Bun

Bun is one program that holds a JavaScript runtime, an HTTP server, a PostgreSQL and MySQL client, a bundler and a test runner. A Bun server in TypeScript needs few packages besides it, so there is less to update and less to trust. A good fit for an API, a back office, integrations and background jobs, alone or beside a Next.js front end.

### Laravel to Rust

A compiled Rust server (Axum) uses very little memory and processor time, so one small server carries a lot of traffic, and the language rules out whole classes of memory bugs. For catalogues with heavy traffic, price and stock feeds, search and APIs where the response time of every request matters.

### Laravel to Go

A Go server is one compiled program that serves the pages, the API and the admin panel, with nothing else to install next to it. It starts at once, uses little memory and is simple to run: copy one file and restart. A good fit when the site is also a service with integrations, imports and exports.

### Stay on Laravel, brought up to date

When the application does its job and the team knows PHP, moving it is not always the answer. We bring it to Laravel 13 on a supported PHP, replace abandoned packages, add tests around the parts that matter and set up automatic dependency and security checks. We tell you which of the two is cheaper over three years.

## Route by route, never switched off

A rewrite that disappears for a year and comes back all at once is how migrations fail. We move a Laravel application the way it is used: one route at a time, behind the same domain, with both versions reading the same database until the old one has nothing left to answer.

### One domain in front

The new application answers first and passes every route it doesn't have yet to Laravel. Visitors and API clients see one site throughout.

### The same database

Both versions use the same tables while the move runs; the schema changes only when Laravel no longer reads it. Moving from MySQL to PostgreSQL, if you want it, is a separate, rehearsed step.

### Sessions and passwords carry over

Users stay signed in when a route switches, and Laravel's bcrypt and Argon2 password hashes are checked as they are, with Bun's own password functions.

### Every switch can be undone

A route moves when its new version passes the same tests as the old one, and moves back with one setting if something is wrong.

### Queues and scheduled jobs

Jobs, mail and scheduled commands move one by one to the new runtime, each with retries and a log you can read.

### Laravel switched off last

When the last route has moved, Laravel, PHP and Composer are removed from the server, and with them their update cycle.

## What a Laravel conversion costs

Every conversion has a fixed price per stage, agreed in writing after the audit and before work starts. Send us a short description of the application, or give us read access to its repository, and we reply with a plan and a quote.

What moves the price:

- the number of routes, screens and API endpoints;
- business rules that live only in the code, without tests;
- queues, scheduled jobs and the emails they send;
- integrations: payments, accounting, CRM, third-party APIs;
- whether the database moves to PostgreSQL or stays where it is.

## How a Laravel conversion runs

### Audit

We read the code and list every route, job, package, integration and business rule, and measure the slow parts. You get a plan in stages, with a fixed price and a timeline for each.

### Tests first

We write tests against the running application, its pages and its API, so the new version has to give the same answers before anything switches.

### Move route by route

Each stage moves a group of routes, jobs or endpoints to the new stack and switches them live, with a way back.

### Switch Laravel off

When nothing is left, we remove Laravel and PHP from the server. Afterwards we can host, monitor and update the application, or hand the code to your team.

## Keeping what already works

The application's users, search engines and the systems that call it should not notice the move:

- every public URL stays the same, with its title, description and structured data, and the sitemap is generated by the new application;
- the API keeps its paths, fields and error codes, so mobile apps and partners don't need a new version;
- tokens and sessions issued by Laravel stay valid until they expire;
- webhooks, scheduled reports and emails keep their addresses and timing;
- logs and error reports go where your team already looks.

## Questions about converting a Laravel application

### Can you convert Laravel to Next.js?

Yes. Blade and Livewire views become React components, controllers become route handlers and server actions, and Eloquent models become typed queries. The URLs, the data and the users stay. Next.js runs on Bun or Node.js.

### Why Bun and not Node.js?

Bun brings the HTTP server, the PostgreSQL and MySQL client, password hashing, the test runner and the bundler in one program, so an application needs far fewer packages. Where a library needs Node.js, the same TypeScript runs there too.

### When is Rust or Go the better choice?

For APIs and services with heavy traffic, strict response times or long-running work: imports, feeds, real-time features. Both compile to one program that uses little memory. For an application with many screens, Next.js is usually the simpler choice.

### Will our users have to reset their passwords?

No. Laravel stores bcrypt or Argon2 hashes, which the new application checks as they are.

### Do we have to move off MySQL?

No. Bun, Rust and Go all work with MySQL. We recommend PostgreSQL for new work and can move the data in a rehearsed step, but it is not required.

### Does the application stop during the move?

No. The new application answers in front of Laravel and takes over one route at a time; Laravel keeps answering the rest until the end.

### Should we upgrade Laravel instead?

Sometimes, yes: when the application works, the team writes PHP and the plan is to keep it for years. We do that too, and tell you after the audit which of the two costs less over three years.

### Can you take over a Laravel application someone else built?

Yes. Most do not come with tests or documentation, which is why the first stage writes tests against the running application before anything changes.

### How long does it take?

It depends on the routes, the jobs and the integrations, so each stage comes with its own timeline and price after the audit. The application stays online all the time.

## Core Web Vitals of real visits

- Pass Core Web Vitals on phones: Laravel 52.7%, All websites 53.0%
- Good time to first byte on phones: Laravel 40.9%, All websites 46.8%

[HTTP Archive, technology report, October 2026.](https://httparchive.org/reports/techreport/tech?tech=Laravel) What we build to: Lighthouse performance 97+ on phones and 98+ on computers, checked with PageSpeed Insights before launch.

## The newest Laravel vulnerabilities

[All Laravel vulnerabilities on UpHeron](https://upheron.com/vulnerabilities?q=laravel)

## The issues that matter most

- 2025-07-17: Livewire 3 ([CVE-2025-54068](https://upheron.com/vulnerabilities/CVE-2025-54068)), Critical 9.2, Exploited in attacks. Remote code execution without logging in, in Livewire up to 3.6.3. CISA lists it as exploited; in June 2026 Imperva described a campaign that took the credentials of 6,167 applications, including 14,566 database passwords and 188 live Stripe keys. [Advisory](https://www.imperva.com/blog/cve-2025-54068-laravel-livewire-credential-theft-campaign-6000-applications-compromised/)
- 2026-05-22: laravel-lang, Supply chain, Exploited in attacks. A leaked token was used to re-tag about 700 versions of the laravel-lang packages with a credential stealer, which ran on every request of the applications that installed them. [Advisory](https://snyk.io/blog/laravel-lang-supply-chain-advisory)
- 2026-06-01: Laravel ([CVE-2026-48019](https://upheron.com/vulnerabilities/CVE-2026-48019)), High 8.9. CRLF injection through the default email validation rule. Fixed in 13.10.0 and 12.60.0. [Advisory](https://github.com/laravel/framework/security/advisories/GHSA-5vg9-5847-vvmq)
- 2026-10-19: Laravel ([CVE-2026-114509](https://upheron.com/vulnerabilities/CVE-2026-114509)), Critical 9.2. An authentication bypass in the token-based API guard. Fixed in 13.29.0 and 12.68.0. [Advisory](https://github.com/laravel/framework/security/advisories/GHSA-f9x3-7vq9-cph6)
- 2026-10-21: PHP ([CVE-2026-109618](https://upheron.com/vulnerabilities/CVE-2026-109618), [CVE-2026-109619](https://upheron.com/vulnerabilities/CVE-2026-109619)), Critical 9.2, Exploited in attacks. Two flaws in PHP itself that can allow remote code execution, fixed in all four supported branches. CISA added both to its list of exploited vulnerabilities five days later. [Advisory](https://www.php.net/archive/2026.php)
- 2026-11-23: Laravel ([GHSA-8h64-cpq2-9h2g](https://upheron.com/vulnerabilities/GHSA-8h64-cpq2-9h2g)), High 7.5. Denial of service through a crafted JSON request body, without logging in. Fixed in 13.38.0 and 12.74.0; the 26th advisory of the framework in 2026. [Advisory](https://github.com/laravel/framework/security/advisories/GHSA-8h64-cpq2-9h2g)

## Sources

- [Laravel: release and support policy](https://laravel.com/docs/13.x/releases)
- [Laravel: security advisories](https://github.com/laravel/framework/security/advisories)
- [PHP: supported versions](https://www.php.net/supported-versions.php)
- [CISA: Known Exploited Vulnerabilities](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)
- [GitGuardian: exploiting public APP_KEY leaks](https://blog.gitguardian.com/exploiting-public-app_key-leaks/)
- [Next.js: security in 2026](https://nextjs.org/blog/how-were-using-ai-to-make-nextjs-more-secure)
- [Bun documentation](https://bun.com/docs)
- [HTTP Archive: Laravel in the technology report](https://httparchive.org/reports/techreport/tech?tech=Laravel)

## Other platforms we convert

- [Convert WordPress](https://symelo.com/services/convert-wordpress)
- [Convert OpenCart](https://symelo.com/services/convert-opencart)
- [Convert Magento](https://symelo.com/services/convert-magento)

## Related pages

- [Services](https://symelo.com/services)
- [Projects](https://symelo.com/projects)
- [Contact us](https://symelo.com/contact)
- [All tools](https://symelo.com/tools)
- [Agent documentation](https://symelo.com/llms.txt)
