Run Laravel in a Subdirectory in Nginx
We run through a bit of tricky business - running Laravel within a subdirectory.
We run through a bit of tricky business - running Laravel within a subdirectory.
Setup Nginx for multi-tenancy (wildcard subdomains) with a little special configuration I like to add.
We'll see the fastest, easiest way to setup an SSL (TLS) certificates using certbot.
We'll see how Nginx default configuration falls short, and what to do about it.
We'll use dnsmasq
and nginx
on MacOS to setup a multi-tenant local dev environment. This lets us map subdomains of a .test
domain to the same code base.
Nginx's try_files
directive is seemingly simple, but actually has some surprising depth!
PHP is stateless, much like HTTP. This makes it weird but is one of its great strengths.
I came across Nginx Unit recently. Turns out, it's really cool! We can get rid of PHP-FPM, and run our apps more efficient. Let's see how, and go over the pros and cons.
Let's see how an HTTP request gets turned into code that Laravel can run!
PHP-FPM's default configuration is likely not optimized for your server. See why and how to fix it!
Mocking the Stripe API in your Laravel tests.
My 2018 year in review.
Dec 30, 2016
I wanted to change the default laravel.log
file name for an application I'm working on. This is hard-coded into Laravel core, and so I had to get a bit fancy to do it. See how!
Two personality traits exist on opposite ends of a spectrum: adapters and makers.
Jan 06, 2016
Here's a little bit about content negotiation in your Laravel application.