Learn how to add Stripe's Checkout and Customer Portal products to your Laravel application using Laravel Cashier.
Follow along as we build a drop down component with Caleb Porzio's Laravel Livewire.
Laravel's default setup prevents Cloudflare from caching HTML responses.
Calling seeders from migrations allows you to ensure data referenced by code always exists in your database.
If you're using ElastiCache with the Encryption In-Transit setting turned on, you'll need to tweak your REDIS_HOST environment variable when connecting with Laravel
If you're running into issues with Laravel Forge failing to provision your server when using AWS, chances are there is an easy fix.
When provisioning a new server from within the Laravel Forge UI, Forge will default to creating a new VPC for your server. This is great because it means Forge sets up the VPC the way it wants. However, if you happen to ask Forge to use the default VPC that is created with your AWS account, you'll run into a problem where Forge fails to provision the server, and then just deletes the server from Forge.
The issue with the default VPC in AWS is that the default security group it uses only allows inbound traffic from within that security group. This essentially tells AWS to keep everything within the VPC as private (no outside access). Since the Forge servers are located outside of your VPC, Forge is unable to make contact with your new server, so it thinks it failed to provision.
You have two options for a fix:
Allow Forge to create a new VPC
If you insist on using the default VPC, change the security group to allow inbound traffic from anywhere instead of from within the security group
Hopefully you found this article useful! If you did, share it on Twitter!
Found an issue with the article? Submit your edits against the repository.