Conversation
Apply fixes from StyleCI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Laravel Lockout v6.0.0
🎉 Major Release - Complete Maintenance Mode Solution
We're excited to announce Laravel Lockout v6.0, a major update that transforms this package from a simple read-only mode tool into a comprehensive maintenance and access control solution.
🚀 What's New
Laravel 11 & 12 Support
✨ 10 Powerful New Features
1. IP Whitelist & Blacklist
Control access at the IP level with support for individual IPs and CIDR notation.
2. Role-Based Exceptions
Allow specific user roles to bypass lockout. Supports Laravel Bouncer, Spatie Permission, and custom role implementations.
3. Custom Response Types
Choose how blocked requests are handled:
abort,json, orviewresponses.4. Route Patterns & Names
Whitelist entire route groups or specific named routes using patterns or route names.
5. API-Specific Handling
Automatic API detection with dedicated JSON responses for API requests.
6. Health Check Endpoint
Built-in
/healthendpoint for monitoring systems (configurable path).7. Cache Integration
Configurable caching for improved performance with customizable TTL.
8. Event System
Listen to lockout events:
LockoutEnabled,LockoutDisabled,RequestBlocked.9. Artisan Commands
Manage lockout from the command line:
php artisan lockout:enablephp artisan lockout:disablephp artisan lockout:status10. Graceful Degradation
Beautiful maintenance view included out of the box (customizable).
📋 Changes
Added
/health)Changed
Fixed
allow_logincheck was insidelocked_typesloop🔄 Migration Guide
From v5.0 to v6.0
Update Dependencies:
Update PHP Version:
Ensure you're running PHP 8.2 or higher.
Update Laravel:
Ensure you're running Laravel 11.x or 12.x.
Publish Updated Config:
php artisan vendor:publish --provider="Rappasoft\Lockout\LockoutServiceProvider" --tag=config --forceReview Configuration:
Check
config/lockout.phpfor new options. All existing configuration remains backward compatible.Clear Cache (Optional):
📚 Documentation
🧪 Testing
This release includes comprehensive test coverage:
Run tests:
composer test🙏 Credits
Thank you to all contributors and users who provided feedback and suggestions for this release.
📦 Installation
🔗 Links
Full Changelog: v5.0.0...v6.0.0