This is a caddy template for laravel
NOTE : There is better way to host caddy with laravel read here : Boost Laravel Performance: Running Octane with FrankenPHP in Production ( Zero downtime)
- Caddy v2
https://caddyserver.com/docs/install
Step 1 : -
cd /etc/caddy/
Step 2 : -
git clone https://github.com/Kamleshpaul/laravel-caddy.git
Step 3 : -
edit Caddyfile
based on the example Caddyfile
import snippets/*
# Use the "laravel-app" snippet for our site:
import laravel-app exmaple.com /var/www/html/laravel-app
NOTE : - Edit you php version here which you want to use and install in you OS