From 102b6980b2afa289b837cb7d10c39a332ed1ec01 Mon Sep 17 00:00:00 2001 From: Peter Fox Date: Fri, 8 Dec 2023 19:39:36 +0000 Subject: [PATCH 1/3] Update example Laravel config --- docs/laravel.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/laravel.md b/docs/laravel.md index f0754cada..5d2f32ff3 100644 --- a/docs/laravel.md +++ b/docs/laravel.md @@ -32,7 +32,10 @@ Alternatively, you can run your Laravel projects with FrankenPHP from your local # Enable compression (optional) encode zstd gzip # Execute PHP files in the current directory and serve assets - php_server + php_server { + # Required for /public/storage folder + resolve_root_symlink + } } ``` From 7ac9fdc88c965e72273dc804094584f12e007c85 Mon Sep 17 00:00:00 2001 From: Peter Fox Date: Fri, 8 Dec 2023 19:42:25 +0000 Subject: [PATCH 2/3] fix formatting --- docs/laravel.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/laravel.md b/docs/laravel.md index 5d2f32ff3..885e53178 100644 --- a/docs/laravel.md +++ b/docs/laravel.md @@ -33,9 +33,9 @@ Alternatively, you can run your Laravel projects with FrankenPHP from your local encode zstd gzip # Execute PHP files in the current directory and serve assets php_server { - # Required for /public/storage folder + # Required for /public/storage folder resolve_root_symlink - } + } } ``` From a8b49c243910a87620c4f73adaf627a35381e9b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 8 Dec 2023 23:18:04 +0100 Subject: [PATCH 3/3] fix identation --- docs/laravel.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/laravel.md b/docs/laravel.md index 885e53178..d1bee6989 100644 --- a/docs/laravel.md +++ b/docs/laravel.md @@ -21,21 +21,21 @@ Alternatively, you can run your Laravel projects with FrankenPHP from your local ```caddyfile { - frankenphp - order php_server before file_server + frankenphp + order php_server before file_server } # The domain name of your server localhost { - # Set the webroot to the public/ dir - root * public/ - # Enable compression (optional) - encode zstd gzip - # Execute PHP files in the current directory and serve assets - php_server { - # Required for /public/storage folder - resolve_root_symlink - } + # Set the webroot to the public/ dir + root * public/ + # Enable compression (optional) + encode zstd gzip + # Execute PHP files in the current directory and serve assets + php_server { + # Required for the public/storage/ dir + resolve_root_symlink + } } ```