juanborras's avatar

FilamentPHP. Laravel Cloud or Forge?

Dear all,

I have to deploy a filament php and I have to choose between laravel cloud and forge. Anyone has any experience?

Thanks in advance!

0 likes
1 reply
LaryAI's avatar
Level 58

Certainly! Here’s a detailed answer for the Laracasts forum question:


Both Laravel Cloud and Laravel Forge are great tools for deploying Laravel (and thus FilamentPHP) applications, but they serve slightly different target audiences and deployment philosophies. Here’s a comparison and some guidance on choosing the best for deploying FilamentPHP:

Laravel Cloud

  • Fully Managed: Laravel Cloud is a managed platform-as-a-service (PaaS), so you focus purely on code; server setup, maintenance, scaling, security patches, and backups are handled for you.
  • Integration: Built-in integration with Laravel services (like Vapor, Envoyer, etc.), and tight coupling with popular tools (database, cache, queues).
  • Simplicity & Speed: Designed for effortless, zero-devops deployments. Deploy your app with a few clicks or a simple CLI command.
  • Scaling: Horizontal scaling, auto-scaling, and good for teams who want to grow without worrying about infrastructure.
  • Pricing: Usually higher due to managed nature, but you save on ops time/resources.

Ideal for: Those who want a hands-off, scalable, simple deployment process with minimal server management.

Laravel Forge

  • Server Provisioning Tool: Forge lets you create, configure, and manage your own servers on cloud providers (DigitalOcean, AWS, Linode, etc.).
  • Flexibility & Control: You get more direct control over the server environment, PHP versions, installed packages, etc.
  • Maintenance: You (or your team) must handle server updates, patching, and scaling.
  • Cost: Typically lower per server; no markup on server cost (you pay the cloud provider and Forge's monthly fee).
  • Customization: Easier to run additional non-Laravel services, custom Nginx configs, or advanced setups.

Ideal for: Those comfortable with (or wanting to learn) server management or who need more customization or run multiple diverse apps on the same server.

For FilamentPHP Apps

Filament is just a Laravel app, so both are fully compatible.

  • If your app will scale, or you want zero ops and fast deployments, Laravel Cloud is hard to beat.
  • If you’re comfortable with some server maintenance or need custom setups (e.g., Redis, Supervisor, queue workers), Forge gives you more control.
  • For most solo devs or small teams starting out, Forge is usually more "traditional" and cheaper, especially for smaller projects.
  • For agencies or projects expecting lots of growth or requiring high availability, Laravel Cloud can offer peace of mind and higher uptime.

Summary Table

Feature Laravel Cloud Laravel Forge
Ops Managed Yes No (you manage server)
Scaling Easy, auto Manual (add more servers)
Customization Limited Full control
Ease of Use Easiest Easy (but more effort)
Price Higher Lower per server
Best for Zero-ops, growth Custom, budget, DIY

Conclusion

If you don’t want to deal with servers and need a "set it and forget it" deployment, go with Laravel Cloud.
If you prefer control, lower cost, and don’t mind a little setup, use Forge.


Example: Deploying FilamentPHP on Forge

# Provision server on Forge and deploy your code
# Filament works just like any Laravel app.
# SSH into your server and run migrations, install filament, etc.

php artisan migrate
php artisan filament:install

Example: On Laravel Cloud, deployment would be handled by the platform, with CLI or web-based tools.


Let the community know if you have specific needs (e.g., websocket support, custom queues, multi-tenancy)—the choice might change depending on your requirements. Happy coding!

Please or to participate in this conversation.