How to Convert a Laravel Web App into a Mobile App

Compare five ways to get your Laravel app on iOS and Android, and what each one means for your code and your team.

See your site as an app

Or Book a Demo to discuss your project

Laravel runs a lot of SaaS products, customer portals and online stores. Once one of them has a loyal base of users, the next request is often an app they can download from the App Store and Google Play.

Laravel is a web framework, though. It runs on your server and sends pages to a browser, so there’s no build command that turns it into an iOS or Android app. You have to decide how a mobile app and your Laravel code will work together.

That decision sets what you rebuild, what you maintain and how long it all takes. This guide explains how Laravel fits into a mobile app and compares five ways to get there, from a progressive web app to NativePHP. It also shows how MobiLoud turns a Laravel app into native iOS and Android apps.

Can you build a mobile app with Laravel?

You can use Laravel in a mobile app, but Laravel can’t be the app on its own. It’s a server-side PHP framework that renders pages with Blade or Livewire, or passes data to a React or Vue front end through Inertia or an API.

iOS and Android don’t come with PHP. Their apps are written in Swift and Kotlin, or in a cross-platform framework like Flutter or React Native, and running PHP on a phone means bundling a PHP runtime into the app.

So the real choice is where your Laravel code runs. It can stay on your server, run on each phone, or sit behind a separate mobile app that talks to it through an API.

  1. MobiLoud

    One Laravel app, on your server

    Your server

    • Your Laravel app and its views
    • Your database and queues

    The phone

    • Native iOS and Android app
    • Native navigation, push and login
  2. NativePHP

    A copy of Laravel on every phone

    Your server

    • An API for syncing data

    The phone

    • PHP and a copy of your app
    • Native SwiftUI and Compose views
    • A local SQLite database
  3. API + Flutter or React Native

    A second front end

    Your server

    • Your Laravel app
    • API endpoints and Sanctum tokens

    The phone

    • A separate Flutter or React Native app
    • Every screen built again
Where your Laravel code runs in each approach

Keeping Laravel on your server leaves you with one app to run. The other two approaches give you two: the Laravel app you have today, and a mobile app that your team builds, releases and keeps in step with it.

5 ways to turn a Laravel app into a mobile app

The five routes below differ in whether they get you into the app stores, how much of your app you rebuild, and who keeps the app running after launch.

Compared PWAWebView wrapperNativePHPAPI + Flutter or React NativeMobiLoud
Your existing views Yes Yes Partly Reworked to run on the device No Rebuilt from scratch Yes
In the App Store and Google Play No Not on its own Partly Apple often rejects basic wrappers Yes Yes Yes
Push notifications on iPhone Partly Only from the Home Screen Partly Yours to add and maintain Yes Yes Yes
Shipping a change Deploy as usual Deploy as usual An app store release An app store release Deploy as usual
Time to launch Days Days, plus app review Weeks to months Months 2 to 4 weeks
Who maintains it Your team Your team Your team Your team and mobile developers Our team
Cost Your developers' time Developer time, or $25 to $125/month for a converter Developer time, plus paid builds and plugins The highest: a second app and team From $639/month
  • PWA

    Your existing views
    Yes Yes
    In the App Store and Google Play
    No Not on its own
    Push notifications on iPhone
    Partly Only from the Home Screen
    Shipping a change
    Deploy as usual
    Time to launch
    Days
    Who maintains it
    Your team
    Cost
    Your developers' time
  • WebView wrapper

    Your existing views
    Yes Yes
    In the App Store and Google Play
    Partly Apple often rejects basic wrappers
    Push notifications on iPhone
    Partly Yours to add and maintain
    Shipping a change
    Deploy as usual
    Time to launch
    Days, plus app review
    Who maintains it
    Your team
    Cost
    Developer time, or $25 to $125/month for a converter
  • NativePHP

    Your existing views
    Partly Reworked to run on the device
    In the App Store and Google Play
    Yes Yes
    Push notifications on iPhone
    Yes Yes
    Shipping a change
    An app store release
    Time to launch
    Weeks to months
    Who maintains it
    Your team
    Cost
    Developer time, plus paid builds and plugins
  • API + Flutter or React Native

    Your existing views
    No Rebuilt from scratch
    In the App Store and Google Play
    Yes Yes
    Push notifications on iPhone
    Yes Yes
    Shipping a change
    An app store release
    Time to launch
    Months
    Who maintains it
    Your team and mobile developers
    Cost
    The highest: a second app and team
  • MobiLoud

    Your existing views
    Yes Yes
    In the App Store and Google Play
    Yes Yes
    Push notifications on iPhone
    Yes Yes
    Shipping a change
    Deploy as usual
    Time to launch
    2 to 4 weeks
    Who maintains it
    Our team
    Cost
    From $639/month

1. A progressive web app (PWA)

A progressive web app is your Laravel site plus a web app manifest and a service worker. People can add it to their Home Screen, where it opens full screen with its own icon, and it can keep pages cached for weak connections.

Your server

Your Laravel app

  • A web app manifest
  • A service worker
  • Your site's own header and menu
  • Your Laravel pages, in the browser engine

Not in the App Store or Google Play

Native code: none Your Laravel pages

A PWA can’t be listed in the App Store, though, so people won’t find it there. And on iPhone, a PWA can only send push notifications once someone has added it to their Home Screen.

That makes a PWA a good fit for internal tools, and a weak one when you want customers to download your app.

2. A WebView wrapper

A WebView app is a small native project that opens your Laravel site full screen. You can build one with Capacitor or in Android Studio in an afternoon, or with an online converter, which is how most “Laravel to APK” tools work. For an Android app on devices your company manages, that can be enough.

Your server

Your Laravel app

  • Your site's own header and menu
  • Your Laravel site, in a WebView
  • A small native project around it

Apple often rejects basic wrappers

Native code Your Laravel pages

The app stores are harder. Apple’s App Store Review Guideline 4.2 rejects apps that are just a website in a frame. A basic wrapper also has no push notifications or native navigation until someone builds them, and every new iOS and Android version is yours to keep up with.

3. NativePHP

NativePHP bundles PHP and a copy of your Laravel app inside a native iOS and Android app, so the app runs on the phone without a server. Screens are written in Blade and render as real SwiftUI and Jetpack Compose views, with a web view as an option. For Laravel developers starting a new app that has to work offline, NativePHP is a strong choice.

For an app you already run, NativePHP means building a second one. The copy on each phone has its own SQLite database, so your users and data reach it through an API you write and keep in sync.

Your Livewire and Inertia views don’t carry over as they are, because on the phone they read that local database instead of your production one. You rebuild those screens for the device, usually with NativePHP’s native components.

Because your code ships inside the app, every change also goes out as an App Store and Google Play release. Your team runs the builds and signing, in Xcode and Android Studio or through Bifrost, NativePHP’s paid build service.

4. A Laravel API with a Flutter or React Native app

The classic route is to expose your data through API endpoints, use Laravel Sanctum to sign people in, and build a separate app in Flutter or React Native. Your mobile developers then control every screen.

This route also makes mobile a second product. Your team designs and builds every screen again, ships every feature twice and hires mobile developers to work alongside your Laravel developers. The first version takes months.

After launch, the two apps drift apart unless someone keeps them in step. This route makes sense when mobile has its own team and its own roadmap.

5. MobiLoud

MobiLoud builds native iOS and Android apps on top of the Laravel app you already run. You start with everything your web app does today, from its routes and views to its logins and data. The app then adds what a website can’t, such as native navigation, push notifications and a listing in both app stores.

Your server

Your Laravel app

  • Routes, views and auth as they are
  • Push notifications
  • Native navigation
  • A Laravel view
  • Native components
  • Another Laravel view
  • Native tab bar

In the App Store and Google Play

Native code Your Laravel pages

Because the app uses your live Laravel app, a deploy to your server updates the app too. Our team builds the apps, submits them under your Apple and Google accounts, and keeps them current with each new iOS and Android version. Most teams launch within a few weeks.

How to turn a Laravel app into a mobile app with MobiLoud

With MobiLoud, your team is involved at two points: the kickoff and the sign-off. We do the native work in between, and most apps are live in both app stores two to four weeks after kickoff.

  1. Kickoff Week 1

    Your developers walk us through the app: which routes belong in the tab bar, which auth package you use and what app users should see differently. Then you invite us to your Apple and Google developer accounts.

  2. Build and integrate Weeks 1 to 2

    Working from your production URL, we set up the tab bar, push notifications and deep links for your routes. A test build is on your phone in week two.

  3. Customize and test Weeks 1 to 2

    We test logins, forms and Livewire interactions on real devices, fine-tune the splash screen and back button, and connect GA4 and Firebase before sign-off.

  4. Launch Weeks 2 to 4

    Submission goes out from your developer accounts. Review by Apple and Google usually takes one to two weeks, and we handle any questions. From then on, deploying Laravel updates the app.

What carries over from your Laravel app

The app shows your live Laravel pages, so the work you’ve already done is in it from the first build:

  • Your Blade, Livewire and Inertia views, with nothing rebuilt for mobile
  • Every route, with native navigation between them
  • Your auth, whether it’s a starter kit, Fortify or a custom guard
  • Real-time updates over Reverb or Pusher
  • Your deploys, from Forge, Vapor, Laravel Cloud or your own pipeline

Your team keeps working in Laravel the way it does now, and the app keeps up without a release process of its own.

How your Laravel code can tell it’s in the app

Your Laravel app can tell when a page opens inside the mobile app, because the app adds canvas to its user agent. A small middleware can check for it once and share the answer with every view:

app/Http/Middleware/DetectMobileApp.php
<?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\View;

class DetectMobileApp
{
    public function handle(Request $request, Closure $next)
    {
        // The MobiLoud app adds "canvas" to its user agent
        $inApp = str_contains(
            strtolower($request->userAgent() ?? ''),
            'canvas'
        );

        // Any Blade view can now check $inApp
        View::share('inApp', $inApp);

        return $next($request);
    }
}

Append the middleware to the web group, in bootstrap/app.php on Laravel 11 and later. Any Blade layout, view or Livewire component can then show app users something different, such as hiding the site header that the app’s tab bar replaces:

resources/views/layouts/app.blade.php
{{-- The app has its own tab bar, so it skips the site header.
     "?? false" covers pages outside the web group, like a 404. --}}
@unless ($inApp ?? false)
    @include('partials.site-header')
@endunless

The same check lets you add pages just for app users and close the app’s login screen once someone signs in. After login, one JavaScript call links the device to the user’s ID in OneSignal, so your Laravel notifications can reach app users as native mobile push notifications, for example through the laravel-notification-channels/onesignal package.

Will Apple approve a Laravel app?

Apple approves apps built on a web app when they give people more than the website does. Guideline 4.2 is the rule that rejects basic wrappers. It looks for an app that behaves like one, with native navigation, push notifications, a login that lasts and screens that work well on a phone.

Every MobiLoud app is built with those features, and App Store review is part of our job. We’ve taken more than 2,000 apps through it since 2013, and we answer the reviewers’ questions for you.

Choosing the right route for your Laravel app

The route you pick decides how much of your Laravel app you keep, and how much work the mobile app adds for your team every year after launch.

A progressive web app is the cheapest option when your app is an internal tool and the app stores don’t matter. A WebView wrapper does a similar job for an Android app on devices you manage.

If you’re starting a new product that has to work offline, NativePHP lets your Laravel developers build it without learning Swift or Kotlin. A separate Flutter or React Native app is worth its cost when mobile has its own team and roadmap.

Most teams with a Laravel app are in a different position. People already use the web app, and the goal is to give them the same product in the App Store and Google Play without rebuilding it.

That’s what MobiLoud does, with no second codebase for your team to run. You can get a free preview of your app to see it first.

Common Laravel questions

Have any more questions we didn't answer? Book a 30-minute call or send us a message to clear it all up.

Book a call
Can I convert a Laravel website to an APK for free?

You can build a basic Android APK of a Laravel website for free, as an Android Studio project that opens your site in an embedded browser. Publishing costs a one-time $25 for Google Play, and the App Store needs Apple's developer program at $99 a year. An app that only opens your site has no push notifications or native navigation, and Apple often rejects it under Guideline 4.2.

Do we need an API to turn our Laravel app into a mobile app?

You do not need an API for a MobiLoud app. We adapt the pages Laravel renders for native, so your routes, controllers and session authentication work in the app. A separate Flutter or React Native app needs its own API connections.

Will our Laravel auth work in the app?

Your Laravel auth works in a MobiLoud app the way it does on the web, because the app uses your normal web sessions. That includes Laravel's starter kits, Fortify, Breeze, Jetstream and custom guards, and people stay signed in between visits. For Google sign-in, we set up the native handling Google requires.

Is a MobiLoud app a native app?

A MobiLoud app is a native iOS and Android app, with a native tab bar and navigation, push notifications, persistent login, deep links, a splash screen and haptic feedback. Every view you've built in Laravel comes with it, and you can add pages just for app users.

Can we send push notifications from the Laravel app?

Yes. Push notifications are native and included on every plan: Growth uses OneSignal, and Business and Enterprise add Klaviyo push. Your team sends campaigns, segments and automated messages from those tools, and can trigger a notification from your Laravel code, from a job or an event listener through their APIs. A progressive web app can't match this on iPhone, where web push only reaches people who add it to their Home Screen.

Will Apple approve the app?

Yes. Apple's Guideline 4.2 rejects apps that only repackage a website, so MobiLoud adds the native features reviewers look for, including native navigation, push notifications and persistent login, then handles submission and review under your own developer accounts. JF Petroleum Group had struggled to get apps from other app builders approved, and launched its iOS and Android apps with MobiLoud.

Does the app work offline?

Not by default. Like your website, the app loads live pages from your Laravel app, so it needs a connection to show new content. Full offline mode is custom native work that our team scopes and quotes for your app.

How much does it cost to turn a Laravel app into a mobile app with MobiLoud?

MobiLoud starts at $639 a month on a 12 month term, or $799 month to month, with the build, App Store publishing and native maintenance included and no share of your revenue. Most apps go live in 2 to 4 weeks. A separate Flutter or React Native app means a second codebase and a mobile team, which typically takes 6 to 12 months to launch and $250K to $1M+ a year to run.

Who owns the app and the code?

You own your app listings and your Laravel code. The listings sit under your own Apple and Google developer accounts, so if you ever leave MobiLoud, you keep your listings and your users. MobiLoud owns the platform that builds the native apps.