This is a caddy template for laravel
NOTE : There is better way to host caddy with laravel read here : https://codingtricks.co/boost-laravel-performance-running-octane-with-frankenphp-in-production?utm=github
- 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