Integration Guide
Laravel
Speed up your Laravel app with fast.site in under 5 minutes. Keep your routing, your auth, your stack.
Setup Steps
- 1
Add your domain in fast.site
Log in to your fast.site dashboard and add your Laravel app's domain.
- 2
Confirm your platform
fast.site detects your stack automatically. In your case, that's Laravel. We pre-tune caching, image optimization and edge routing for it. Confirm on the platform step, or pick a different stack if the detection got it wrong. You can change it anytime from the domain overview.
- 3
Update your nameservers
Switch your domain's nameservers to the ones listed in your fast.site dashboard. Your existing DNS records get imported automatically.
- 4
Clear Laravel cache
Run
php artisan cache:clearto clear any existing cached content. Done!
Your Laravel app now runs through fast.site. Cacheable responses serve from the edge while authenticated routes stay live.
Laravel-aware caching
fast.site works with Laravel's features:
- CSRF tokens preserved for form submissions
- Authenticated routes bypass cache
- API endpoints can be cached or bypassed as needed
- Public assets (CSS, JS, images) cached globally
Setting Cache-Control headers
For best results, set appropriate Cache-Control headers in your Laravel responses:
return response($content)
->header('Cache-Control', 'public, max-age=3600');Verify it's working
Check that caching is active by looking for fs-cache: HIT in your response headers.