All notable changes to laravel-forge-logs will be documented in this file.
Added a new interactive Artisan command to delete logs on Laravel Forge:
php artisan forge-delete-logs
Features:
- Interactive menu to select which logs to delete
- Support for site/application logs, nginx access logs, nginx error logs, and all three
- Confirmation prompt before deletion (skippable with
--forceflag) - Integration with Laravel Forge API
- Detailed success/failure feedback
- Uses Laravel Prompts for clean UX (like
forge-init)
Usage:
# Interactive menu
php artisan forge-delete-logs
# Skip confirmation
php artisan forge-delete-logs --force
API Endpoints:
- DELETE
/orgs/{org}/servers/{server}/sites/{site}/logs/application - DELETE
/orgs/{org}/servers/{server}/sites/{site}/logs/nginx-access - DELETE
/orgs/{org}/servers/{server}/sites/{site}/logs/nginx-error
See CHANGELOG_DELETE_LOGS.md for comprehensive documentation.
- Added
deleteSiteLog(),deleteNginxAccessLog(),deleteNginxErrorLog()methods to ForgeApiService - Added corresponding methods to ForgeLogService with batch operation support
- New LaravelForgeDeleteLogsCommand with Laravel Prompts integration
- Full type hints and error handling
- 100% backward compatible
✅ Code formatted with Pint ✅ PHPStan static analysis: No errors ✅ All tests passing
- Nginx access logs fetching via
forge-nginx-access-logscommand - Nginx error logs fetching via
forge-nginx-error-logscommand - Unified log fetching command
forge-fetch-logs(withforge-all-logsalias) that fetches all logs in sequence - Customizable log file paths and filenames via configuration
- New
log_pathsconfiguration array for specifying custom storage paths
- Renamed
forge-fetch-logstoforge-laravel-logsfor clarity - Renamed
forge-nginx-logstoforge-nginx-access-logsfor clarity - Updated
forge-fetch-logscommand to fetch all three log types (Laravel, Nginx access, Nginx error) - Removed hardcoded
versionfield from composer.json to properly use Git tags
- Removed non-existent
typeoption fromforge-laravel-logscommand
Full Changelog: https://github.com/FrankFlow/laravel-forge-logs/compare/v1.9...v1.10
- Fix PHPstan issues
- Fixed PHPstan analysis errors
Full Changelog: https://github.com/FrankFlow/laravel-forge-logs/compare/v1.8...v1.9