Skip to content

Commit

Permalink
docs: enable symlinks following for Laravel app (#350)
Browse files Browse the repository at this point in the history
Co-authored-by: Kévin Dunglas <[email protected]>
  • Loading branch information
peterfox and dunglas authored Dec 8, 2023
1 parent b9eae57 commit d93bfc0
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions docs/laravel.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +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
# 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
}
}
```
Expand Down

0 comments on commit d93bfc0

Please sign in to comment.