emtiazzahid/git-log-laravel
View your app’s Git commit history in a simple Laravel web page. Install via Composer, register the service provider, and add a route to GitLogLaravelController. No public assets or vendor routes; supports Laravel 5–9. Optional view publish for customization.
git log) are unavailable or misconfigured.git log work as expected (e.g., no shallow clones, correct working directory)?git log) or a dedicated Git server (GitLab/GitHub) be more sustainable?git log commands. Works on Linux/Windows (with Git installed).git --version).git log output in a staging environment to ensure it meets formatting/visibility needs.composer.json:
composer require emtiazzahid/git-log-laravel
config/app.php.routes/web.php (consider namespacing or middleware for security).php artisan vendor:publish --provider="Emtiazzahid\GitLogLaravel\GitLogServiceProvider"
auth, role, or custom checks).git log)./git-log).// Example: Cache Git logs for 5 minutes
$logs = Cache::remember('git_logs', 300, function () {
return GitLog::fetchLogs();
});
--since, --until) or using --pretty=oneline.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Git not installed on server | Route returns 500/error | Pre-check Git installation in deployment. |
| Permission denied (Git commands) | Empty or partial logs | Ensure app user has Git access (e.g., git config --global --add safe.directory /path/to/repo). |
| Corrupted Git history | Malformed log output | Validate Git repo health in CI/CD. |
High traffic to /git-log |
Server timeouts or memory issues | Add rate-limiting or caching. |
| Sensitive data in commit messages | Data leakage risk | Restrict access; sanitize logs (e.g., regex to redact secrets). |
| Laravel upgrade (10+) | Package incompatibility | Test compatibility; fork if needed. |
/git-log) and any access requirements.deploy.php or Ansible).How can I help you explore Laravel packages today?