Laravel Packages

Share Your Laravel App with Cloudflare Tunnel

Published
Share Your Laravel App with Cloudflare Tunnel image

The Cloudflared for Laravel is a simple package to create and manage Cloudflare Tunnel for your Laravel projects. Paried with a companion Vite plugin for Cloudflared, you can easily test and debug your frontend on any device.

It works using the following Artisan command, which will set up a Cloudflare tunnel, configure DNS, set up a Herd link, and save the configuration to .cloudflared.yaml in your project:

# Install
php artisan cloudflared:install
 
# After setup, run it
php artisan cloudflared:run

You can also remove the tunnel, DNS records, and configuration using the provided Artisan command:

php artisan cloudflared:uninstall

This package also requires a Cloudflare account and depends on Cloudflare Tunnel, which you will need to download. The cloudflared CLI is also available via Docker.

Install this in your project via Composer:

composer require aerni/cloudflared

👨‍💻 You can get started with this package on GitHub: aerni/laravel-cloudflared

Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Sponsored

acquaintsoft logo
Acquaint Softtech

Hire Laravel developers with AI expertise at $20/hr. Get started in 48 hours.

Visit Acquaint Softtech

The latest

View all →
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article
Blade Formatting in Laravel Pint image

Blade Formatting in Laravel Pint

Read article
Inertia DevTools Is Now on the Chrome Web Store image

Inertia DevTools Is Now on the Chrome Web Store

Read article