Intermediate

Learn Laravel Forge

In this series, guest instructor Marcel Pociot (Beyond Code) will steer you through the ins and outs of building and configuring servers with Laravel Forge. Whether you’re a seasoned veteran hoping to streamline your server workflow, or a beginner who doesn’t know where to start, Marcel will get you up to speed in no time.

Start Series

Share this series on:

  • 01

    Episode 1 Run Time 4:05

    Say Hello To Forge Free

    To get started, let's review the basic set of features that Forge provides out of the box.

  • 02

    Episode 2 Run Time 4:24

    Why Forge Free

    In this lesson, we'll discuss why you should consider Forge in the first place. Why not build up a Digital Ocean box yourself? Well, as you'll find, it can be a bit overwhelming and cumbersome to do manually.

  • 03

    Episode 3 Run Time 8:36

    Your First Project Free

    Let's setup our first project with Laravel Forge. Once registered, within minutes, we'll deploy a fresh PHP 7.2 application.

  • 04

    Episode 4 Run Time 4:07

    Hooking Up A Custom Domain Free

    A common task, when working with Forge, is to point a domain name to a specific server. In this lesson, I'll demonstrate exactly how.

  • 05

    Episode 5 Run Time 2:55

    Hooking Up Laravel Horizon Free

    Let's move on and learn how to integrate Laravel Horizon with our Forge-provisioned server.

  • 06

    Episode 6 Run Time 3:06

    Sharing Servers With Your Team Free

    When working with a team of developers, you'll likely find yourself in the position of wanting to grant them access to your servers. Let's learn how.

  • 07

    Episode 7 Run Time 2:50

    Provision a Load Balancer Free

    A load balancer can help us maintain and manage the incoming traffic we receive, and distribute it between any number of servers.

  • 08

    Episode 8 Run Time 6:23

    Manage Your Databases Free

    In this episode, we'll review how to manage our database and database users through Laravel Forge.

  • 09

    Episode 9 Run Time 1:59

    Modify Your PHP Settings Free

    When working with PHP projects, you might come to a point where you need to adjust certain configuration values from your PHP settings.

  • 10

    Episode 10 Run Time 2:50

    Common PHP Settings and OPcache Free

    In this lesson, we'll review Forge's PHP tab, where we can configure the maximum file upload size, as well as OPcache - a tool for storing compiled PHP code in memory for the purposes of improving performance.

  • 11

    Episode 11 Run Time 4:07

    Scheduling Tasks Free

    Forge's scheduler is incredibly powerful. Here, you can configure and schedule any recurring tasks for your server, such as sending weekly reports, backing up your database, or deleting temporary files.

  • 12

    Episode 12 Run Time 3:11

    Using Daemons Free

    When you need to have one application or process running in the background constantly, you may configure a daemon through Laravel Forge.

  • 13

    Episode 13 Run Time 5:09

    Server Monitoring Tools Free

    Let's take a look at how you can make use of services like Blackfire and Papertrail on your Forge-provisioned server.

  • 14

    Episode 14 Run Time 3:01

    Configuring Firewall Rules Free

    If you have multiple servers on the same provider, then you might want to use these servers in a combined network. Forge makes this a breeze!

  • 15

    Episode 15 Run Time 4:36

    Using Recipes for Common Tasks Free

    Let's imagine that you're working on a Forge server, and need to install a custom PHP extension. This is where Forge Recipes come into play.

  • 16

    Episode 16 Run Time 3:27

    Setup Custom Git Remotes Free

    We've already discussed how to use existing providers like GitHub with Laravel Forge. However, you can also use your own custom providers.

  • 17

    Episode 17 Run Time 3:13

    Deployment Notifications Free

    To receive status updates for each new deployment, Laravel Forge offers optional notifications. Here, you can configure email, Slack, Hipchat, or Stride alerts.

  • 18

    Episode 18 Run Time 1:58

    Edit Environment Files Free

    Your Laravel application is now live. Let's imagine that, a few months later, you change email or logging providers. When switching to this new service, you'll typically be given a private API authorization key. Rather than hard-coding these keys into your PHP code, a better alternative is to store then within an .env file. Using Forge, we can easily update this configuration file on the fly.

  • 19

    Episode 19 Run Time 5:13

    Queues Free

    Queues allow us to push time-consuming tasks to a background job, where they can be processed by a worker. This allows for a snappier feedback loop for your users.

  • 20

    Episode 20 Run Time 3:29

    SSL on Forge Free

    Registering an SSL certificate on your server is usually a tricky and confusing process. But not with Laravel Forge!

  • 21

    Episode 21 Run Time 2:47

    Redirect Traffic Free

    Once your domain is configured with Laravel Forge, you can optionally configure a redirect to point non-www traffic to the www version, or of course the other way around. Let's learn how to do this in Forge.

  • 22

    Episode 22 Run Time 2:51

    Modify Your Nginx Configuration Free

    Just as you can edit the php.ini file on your server through Laravel Forge, the same is true for your Nginx configuration.

  • 23

    Episode 23 Run Time 7:55

    Use the Forge SDK Free

    It will come as no surprise that Forge offers an API to programmatically access all operations that can be accomplished through the browser. This means, if you wish, you can build your own applications and services on top of Forge.