{
  "@context": "https://schema.org",
  "@type": "WebPage",
  "name": "Laravel hosting on Edge | VMs, S3 storage and CDN",
  "headline": "Laravel hosting on Edge | VMs, S3 storage and CDN",
  "description": "Run Laravel on Edge: production VMs for PHP-FPM or Octane, an S3-compatible filesystem disk, Redis queues and a global CDN with zero egress fees.",
  "url": "https://edge.network/solutions/laravel",
  "image": "https://edge.network/og/solutions__laravel.png",
  "inLanguage": "en",
  "publisher": {
    "@type": "Organization",
    "name": "Edge Network",
    "url": "https://edge.network",
    "logo": "https://edge.network/favicon.svg"
  },
  "isPartOf": {
    "@type": "WebSite",
    "name": "Edge Network",
    "url": "https://edge.network"
  },
  "breadcrumb": {
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://edge.network"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Solutions",
        "item": "https://edge.network/solutions"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Laravel",
        "item": "https://edge.network/solutions/laravel"
      }
    ]
  },
  "section": "solutions",
  "articleBody": "For Laravel\n\n Laravel, without the markup\n\n Real VMs for PHP-FPM or Octane, an S3-compatible disk for Laravel&#x27;s filesystem, and a CDN across 2,206 locations with zero egress. The whole stack, on infrastructure you control. Deploy a VM Have us migrate it The setup on this page costs $21.34 a month, with no egress line.\n\n Why Laravel on Edge\n\n The simplicity of a VPS, with the edge built in \n\n The VM you&#x27;d provision anyway, plus the storage and global delivery you&#x27;d otherwise glue together yourself. Real VMs, not shared hosting\n\n Dedicated vCPU, NVMe storage and up to 10 Gbps networking. Start on a Standard VM and resize with one command as you grow. \n An S3 disk for Flysystem\n\n Plug Edge Storage into Laravel&#x27;s s3 driver. Uploads, exports and backups go to durable object storage, not the VM&#x27;s disk. \n Vite builds and uploads from the edge\n\n Vite&#x27;s /build assets and public Storage URLs cache in 2,206 locations. No egress fees and no per-request surprises. \n Bring your database\n\n Run MySQL, MariaDB, PostgreSQL or Redis on the same VM, on a separate VM over a free private network, or keep your managed provider. \n Image transforms via URL\n\n Skip the Intervention Image queue. Serve uploads through the CDN and ask for ?width=300&fit=cover&format=auto. \n Forge-style automation\n\n The Edge CLI and agent API provision VMs, set firewall rules and roll out releases. Scriptable end to end. \n Reference architecture\n\n The shape of your dev box, plus a bucket and a CDN \n\n The same shape as your dev box: Nginx, PHP-FPM, a database and Redis. Add a bucket for the filesystem and a CDN in front. Visitors Browsers\n\n app.acme.co.uk via Edge DNS\n\n HTTPS Edge CDN app.acme.co.uk\n\n caches /build/assets and /storage\n\n Vite Edge CDN ?width=300&fit=cover\n\n avatars resized at the edge\n\n cache miss Edge Compute php-fpm 8.3 + nginx\n\n s-2vcpu-4gb, or Octane on :8000\n\n artisan schedule:run local, S3 API Database mysql :3306\n\n MySQL 8 from the lemp script\n\n Cache redis :6379\n\n cache, sessions and queues\n\n queue:work Edge Storage acme-uploads\n\n the &#x27;edge&#x27; filesystem disk\n\n Compute Runs Nginx and PHP-FPM (or Octane), plus MySQL and Redis on smaller apps.\n\n Storage Backs Laravel&#x27;s s3 driver for uploads, exports and backups.\n\n CDN Caches Vite output, public assets and public Storage URLs.\n\n Image optimisation Resize, crop and AVIF/WebP conversion of uploaded media, from the URL.\n\n DNS Anycast DNS for the apex, subdomains and email records.\n\n Shield Protects login, register and contact routes with one middleware.\n\n Assist One line in your Blade layout adds answers from your public pages.\n\n Deploy\n\n From laravel new to live in five steps \n\n A LEMP VM, an S3 disk, a release script and a CDN. The same moves you&#x27;d make on any Linux box. ~/acme-app $ edge compute create --name app \\ \n\n --size s-2vcpu-4gb --image ubuntu-24 \\\n\n --region london --script lemp\n\n ✓ vm-c93a1e running, Nginx, PHP 8.3-FPM\n\n $ composer install --no-dev -o \n\n $ php artisan migrate --force \n\n ✓ 2026_09_14_create_invoices_table, DONE\n\n $ php artisan config:cache \n\n ✓ Configuration cached successfully.\n\n $ sudo systemctl reload php8.3-fpm \n\n Per-site fees $0 app.acme.co.uk Live PHP 8.3-FPM, Nginx Queue queue:work, redis 01 Create a VM with the LEMP stack\n\n The lemp library script installs Nginx, MySQL 8 and PHP 8.3-FPM on first boot. Add Composer and Redis, or bake everything into your own script with edge compute scripts create.\n\n shell Copy $ edge compute create --name app --size s-2vcpu-4gb \\\n --image ubuntu-24 --region london --script lemp \\\n --script-param db_password=\"$(openssl rand -base64 24)\" \n 02 Add an Edge Storage disk\n\n Laravel&#x27;s s3 driver works unchanged once league/flysystem-aws-s3-v3 is installed. Set url to your CDN hostname so Storage::url() returns cached links.\n\n config/filesystems.php Copy &#x27;edge&#x27; => [\n &#x27;driver&#x27; => &#x27;s3&#x27;,\n &#x27;key&#x27; => env(&#x27;EDGE_ACCESS_KEY&#x27;),\n &#x27;secret&#x27; => env(&#x27;EDGE_SECRET_KEY&#x27;),\n &#x27;region&#x27; => &#x27;us-east-1&#x27;,\n &#x27;bucket&#x27; => env(&#x27;EDGE_BUCKET&#x27;, &#x27;acme-uploads&#x27;),\n &#x27;endpoint&#x27; => &#x27;https://storage.edge.network&#x27;,\n &#x27;use_path_style_endpoint&#x27; => true,\n &#x27;url&#x27; => env(&#x27;EDGE_CDN_URL&#x27;),\n], \n 03 Ship a release\n\n Run it by hand the first time, then move it into CI or Envoy.\n\n shell Copy $ cd /srv/app && git pull\n$ composer install --no-dev --optimize-autoloader\n$ php artisan migrate --force\n$ php artisan config:cache && php artisan route:cache\n$ php artisan queue:restart\n$ sudo systemctl reload php8.3-fpm \n 04 Keep queues and the scheduler running\n\n Run the worker under systemd and add * * * * * php artisan schedule:run to cron. Split workers onto their own VM when the queue grows.\n\n /etc/systemd/system/laravel-queue.service Copy [Unit]\nDescription=Laravel queue worker\nAfter=network.target redis-server.service\n\n[Service]\nUser=www-data\nWorkingDirectory=/srv/app\nExecStart=/usr/bin/php artisan queue:work redis --sleep=3 --tries=3\nRestart=always\n\n[Install]\nWantedBy=multi-user.target \n 05 Front it with the CDN\n\n Pages that set a session cookie pass straight through. Build assets and public Storage URLs are cached everywhere.\n\n shell Copy $ edge cdn create --name acme-app\n$ edge cdn domains add cdn-e4d27b \\\n --domain app.acme.co.uk \\\n --origin https://<vm-ip> \\\n --jit-image \n Prefer to hand it off? Give the job to your AI agent or have our engineers do it .\n\n What it costs\n\n A server bill, not a platform bill \n\n One VM runs Nginx, PHP-FPM, MySQL and Redis. Uploads live in a bucket and the CDN carries the bytes. No egress fees on uploads or downloads \n Image transforms included with the CDN \n Resize the VM with one command when you outgrow it \n See compute pricing Estimated monthly bill on Edge\n\n SaaS app, 6.5M requests a month, 45 GB of uploads\n\n USD Compute $19.24 Standard VM, 2 vCPU, 4 GiB, 80 GB NVMe \n CDN $1.50 6.5M requests: first 500k free, 6M × $0.25 per million \n Storage $0.60 45 GB of uploads: first 5 GB free, 40 GB × $0.015 \n DNS $0.00 Zone, subdomains and email records \n Egress $0.00 \n Total $21.34 FAQ\n\n Octane, queues and Forge \n\n Something else? Ask an engineer . Does Laravel Octane work? Yes. Run Octane with Swoole, RoadRunner or FrankenPHP on an Edge VM exactly as you would on any Linux box, with Nginx in front. There are no serverless cold starts to design around. Can I keep using Forge? Yes. Forge can manage any server you can SSH into, so point it at an Edge VM by IP. Or use the Edge CLI and a startup script to build an equivalent stack yourself. How do queues and scheduled tasks work? Run queue:work as a systemd service and schedule:run from cron on the same VM, with Redis alongside for fast queues. When the queue grows, move workers to a dedicated VM on a private network. Where do user uploads go? In an Edge Storage bucket, through the standard s3 filesystem driver. Only the endpoint changes: https://storage.edge.network, with path-style URLs enabled. Will the CDN cache logged-in pages? No. Responses that send Set-Cookie or Cache-Control: private are never cached, so session pages go straight to PHP. Static assets and public files are cached as normal. Drop-in services\n\n One middleware, one Blade line \n\n Edge Shield Bot protection POST /siteverify → score: 94 One middleware guards login, register and contact routes against bots. Free forever, with no puzzle to solve.\n\n Free forever, with unlimited widgets. No puzzles for visitors. Explore \n Edge Assist AI answers <script src=\"…/assist.js\"> One line in your Blade layout and visitors get answers drawn from your public pages.\n\n Free tier: 250 answered questions a month Explore \n Related stacks\n\n Sibling frameworks, and Redis for Horizon \n\n All 38 stacks Django Python web apps, no surprise bills \n Rails Classic VPS workflow, modern network \n Node.js Express, Fastify or Hono on your own runtime \n Redis In-memory cache and queue, your way \n...",
  "headings": [
    {
      "level": 1,
      "text": "Laravel, without the markup"
    },
    {
      "level": 3,
      "text": "Real VMs, not shared hosting"
    },
    {
      "level": 3,
      "text": "An S3 disk for Flysystem"
    },
    {
      "level": 3,
      "text": "Vite builds and uploads from the edge"
    },
    {
      "level": 3,
      "text": "Bring your database"
    },
    {
      "level": 3,
      "text": "Image transforms via URL"
    },
    {
      "level": 3,
      "text": "Forge-style automation"
    },
    {
      "level": 3,
      "text": "Create a VM with the LEMP stack"
    },
    {
      "level": 3,
      "text": "Add an Edge Storage disk"
    },
    {
      "level": 3,
      "text": "Ship a release"
    },
    {
      "level": 3,
      "text": "Keep queues and the scheduler running"
    },
    {
      "level": 3,
      "text": "Front it with the CDN"
    },
    {
      "level": 2,
      "text": "Move your Laravel app to Edge"
    }
  ],
  "relatedLinks": [
    {
      "@type": "WebPage",
      "name": "Network",
      "url": "https://edge.network/network"
    },
    {
      "@type": "WebPage",
      "name": "Pricing",
      "url": "https://edge.network/pricing"
    },
    {
      "@type": "WebPage",
      "name": "Docs",
      "url": "https://edge.network/docs"
    },
    {
      "@type": "WebPage",
      "name": "Sign in",
      "url": "https://edge.network/console/access"
    },
    {
      "@type": "WebPage",
      "name": "Solutions",
      "url": "https://edge.network/solutions"
    },
    {
      "@type": "WebPage",
      "name": "Stacks",
      "url": "https://edge.network/solutions/stacks"
    },
    {
      "@type": "WebPage",
      "name": "Have us migrate it",
      "url": "https://edge.network/solutions/expert-services"
    },
    {
      "@type": "WebPage",
      "name": "Compute",
      "url": "https://edge.network/compute"
    },
    {
      "@type": "WebPage",
      "name": "Storage",
      "url": "https://edge.network/storage"
    },
    {
      "@type": "WebPage",
      "name": "CDN",
      "url": "https://edge.network/cdn"
    },
    {
      "@type": "WebPage",
      "name": "Image optimisation",
      "url": "https://edge.network/docs/cdn/image-optimization"
    },
    {
      "@type": "WebPage",
      "name": "DNS",
      "url": "https://edge.network/dns"
    },
    {
      "@type": "WebPage",
      "name": "Shield",
      "url": "https://edge.network/shield"
    },
    {
      "@type": "WebPage",
      "name": "Assist",
      "url": "https://edge.network/assist"
    },
    {
      "@type": "WebPage",
      "name": "Give the job to your AI agent",
      "url": "https://edge.network/solutions/agentic-development"
    },
    {
      "@type": "WebPage",
      "name": "See compute pricing",
      "url": "https://edge.network/compute/pricing"
    },
    {
      "@type": "WebPage",
      "name": "Ask an engineer",
      "url": "https://edge.network/contact"
    },
    {
      "@type": "WebPage",
      "name": "Pulse",
      "url": "https://edge.network/pulse"
    },
    {
      "@type": "WebPage",
      "name": "Agent API &amp; MCP",
      "url": "https://edge.network/docs/agent"
    },
    {
      "@type": "WebPage",
      "name": "Academy",
      "url": "https://edge.network/academy"
    },
    {
      "@type": "WebPage",
      "name": "Case Studies",
      "url": "https://edge.network/case-studies"
    },
    {
      "@type": "WebPage",
      "name": "Releases",
      "url": "https://edge.network/releases"
    },
    {
      "@type": "WebPage",
      "name": "Roadmap",
      "url": "https://edge.network/roadmap"
    },
    {
      "@type": "WebPage",
      "name": "Status",
      "url": "https://edge.network/status"
    },
    {
      "@type": "WebPage",
      "name": "About",
      "url": "https://edge.network/about"
    },
    {
      "@type": "WebPage",
      "name": "Environment",
      "url": "https://edge.network/environment"
    },
    {
      "@type": "WebPage",
      "name": "Latest",
      "url": "https://edge.network/latest"
    },
    {
      "@type": "WebPage",
      "name": "Blog",
      "url": "https://edge.network/blog"
    },
    {
      "@type": "WebPage",
      "name": "Careers",
      "url": "https://edge.network/careers"
    },
    {
      "@type": "WebPage",
      "name": "Terms of Service",
      "url": "https://edge.network/terms"
    }
  ],
  "alternateFormats": [
    {
      "@type": "MediaObject",
      "contentType": "text/html",
      "url": "https://edge.network/solutions/laravel",
      "name": "HTML version"
    }
  ],
  "dateModified": "2026-11-23T02:00:49.399Z"
}