-
Notifications
You must be signed in to change notification settings - Fork 24.6k
[11.x] Slim skeleton #6188
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
Merged
Merged
[11.x] Slim skeleton #6188
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See: laravel/framework#47309
Laravel 11 Skeleton Overview
General Notes
More environment variables have been added to the
.env.examplefile.The default
QUEUE_CONNECTIONvariable value has been updated todatabaseinstead ofsync.The
BROADCAST_DRIVERandCACHE_DRIVERenvironment variables have been renamed toBROADCAST_CONNECTIONandCACHE_STORE, respectively.The HTTP Kernel has been removed. Configuration that was previously done in this file can be done in the
bootstrap/app.phpfile, including registering / replacing middleware.The console kernel has been removed. Schedules can be defined in the console “routes” file. Commands generated by
make:commandare automatically loaded and do not require registration. Additional command loading paths can be registered in thebootstrap/app.phpfile.The exception handler has been removed. Exception handling behavior can be configured in the
bootstrap/app.phpfile viareportable,renderable,throttle, and more. Callbacks received by these functions will have their type hints inspected to see if they handle a given exception.The base HTTP controller no longer extends any other classes (requiring new middleware definition feature). No traits are included by default on the base controller. Authorization can be done using facades, or traits can be added manually.
All middleware has been removed. Configuration of these middleware’s behavior can be done via static methods on the middleware themselves (see framework notes).
The
Usermodel now utilizes acastsmethod instead of a property. TheHasApiTokenstrait has been removed by default since Sanctum is not installed by default.All service providers except the
AppServiceProviderhave been removed. Policies are auto-discovered and gates can be registered inAppServiceProvider. Likewise, events can be registered inAppServiceProvider. Routing behavior is now determined / customized in thebootstrap/app.phpfile.New
bootstrap/app.phpfile can be used to customize core framework behavior like routing, container bindings, middleware, and exception handling.Sanctum is no longer installed by default (see
install:api).Configuration files are not present by default. Can be published by
config:publishcommand. Default values are present in the framework and application level configuration now cascades with framework definitions, so only customized values need be present in application level configuration files.Migration files have been re-dated to be evergreen. The
password_reset_tokenstable migration has been combined into theuserstable migration file. Likewise, thejobstable migration has been combined into a single migration with thefailed_jobstable.Echo bootstrapping has been removed by default. It is re-inserted by new
install:broadcastingcommand.API and channel routes files are not present by default, can be recreated by
install:apiandinstall:broadcastingrespectively.