-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Upgrade Laravel 12 Bootstrap 5 #448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
masrodjie
wants to merge
9
commits into
changeweb:master
Choose a base branch
from
masrodjie:dev-laravel12
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
Documents the minimal-changes approach for upgrading from Bootstrap 4.6.0 to Bootstrap 5.3.0 while maintaining visual appearance and functionality. Key decisions: - Keep jQuery for calendar plugin compatibility - Preserve form-group classes to avoid layout shifts - Prioritize JavaScript component fixes over visual changes - Focus on data attribute migration (data-toggle → data-bs-toggle) 🤖 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
- Update bootstrap to ^5.3.0 - Replace popper.js with @popperjs/core ^2.11.8 - Keep jQuery for calendar plugin compatibility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
- Add bg- prefix to all contextual badge classes - Add text-dark to light badges for contrast 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
- Generate optimized CSS and JS bundles - Bootstrap v5.3.0 compiled and minified 🤖 Generated with Claude Code Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
- Remove references to deleted standalone bootstrap.min.css - Remove references to deleted bootstrap.bundle.min.js - Use compiled app.js and app.css which include Bootstrap 5 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
- Verify Bootstrap 5.x mentioned in project description - Update Laravel version reference from 8.x to 12.x - Document Bootstrap 5.3.0 upgrade completion 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Add middleware to automatically log in a user when USER_TESTING_ID environment variable is set. This is intended for local development and testing only. Safety features: - Only works in local/development environments (excludes production and testing) - Only logs in if user is not already authenticated - Gracefully handles database errors with try-catch - Documented in .env.example with security warnings Changes: - Created app/Http/Middleware/AutoLoginForTesting.php - Registered middleware in web middleware group (bootstrap/app.php) - Added USER_TESTING_ID documentation to .env.example 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Update Docker environment to use modern versions: - PHP 7.4 → PHP 8.2.30 (matching local development environment) - MySQL 5.7.22 → MySQL 8.0.44 Changes: - Updated Dockerfile base image from php:7.4-fpm to php:8.2-fpm - Updated docker-compose.yml MySQL image from mysql:5.7.22 to mysql:8.0 Testing: - All containers build and start successfully - Database migrations and seeders run without errors - Application accessible at http://localhost:8080 - All 6 tests passing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
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.
Upgrade:
Minimum requirement: PHP 8.2