Commit Graph

95 Commits

Author SHA1 Message Date
Taylor Otwell 428a190050
[11.x] Slim skeleton (#6188)
See: https://github.com/laravel/framework/pull/47309

# Laravel 11 Skeleton Overview

### General Notes

More environment variables have been added to the `.env.example` file. 

The default `QUEUE_CONNECTION` variable value has been updated to `database` instead of `sync`.

The `BROADCAST_DRIVER` and `CACHE_DRIVER` environment variables have been renamed to `BROADCAST_CONNECTION` and `CACHE_STORE`, respectively.

The HTTP Kernel has been removed. Configuration that was previously done in this file can be done in the `bootstrap/app.php` file, including registering / replacing middleware.

The console kernel has been removed. Schedules can be defined in the console “routes” file. Commands generated by `make:command` are automatically loaded and do not require registration. Additional command loading paths can be registered in the `bootstrap/app.php` file.

The exception handler has been removed. Exception handling behavior can be configured in the `bootstrap/app.php` file via `reportable`, `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 `User` model now utilizes a `casts` method instead of a property. The `HasApiTokens` trait has been removed by default since Sanctum is not installed by default.

All service providers except the `AppServiceProvider` have been removed. Policies are auto-discovered and gates can be registered in `AppServiceProvider`. Likewise, events can be registered in `AppServiceProvider`. Routing behavior is now determined / customized in the `bootstrap/app.php` file.

New `bootstrap/app.php` file 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:publish` command. 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_tokens` table migration has been combined into the `users` table migration file. Likewise, the `jobs` table migration has been combined into a single migration with the `failed_jobs` table.

Echo bootstrapping has been removed by default. It is re-inserted by new `install:broadcasting` command.

API and channel routes files are not present by default, can be recreated by `install:api` and `install:broadcasting` respectively.
2023-11-28 14:28:15 -06:00
Taylor Otwell f62d260c76 remove dispatches job trait 2023-01-25 18:08:59 +00:00
Taylor Otwell b5bb91fea7 Remove controllers that are generated by laravel/ui package.
These controllers will be installed and generated by the laravel/ui (2.0) package in Laravel 7.x.
2019-12-20 11:48:38 -06:00
Taylor Otwell 972f3cd283
DRY up path (#5173) 2019-12-10 08:59:27 -06:00
Taylor Otwell 9bc23ee468 formatting 2019-10-08 07:35:48 -05:00
Dries Vints ba3aae6c33
Implement password confirmation 2019-10-08 13:45:40 +02:00
Dries Vints 4036f17416
Remove middleware from password reset
It's not necessary for the user to be logged out when resetting their password. This allows users to reset their password while logged in. Can be used in combination with the new RequiresPassword middleware.
2019-10-08 13:39:57 +02:00
Dries Vints e656932002 Apply fixes from StyleCI (#5100) 2019-09-10 17:26:00 +02:00
Taylor Otwell 4070dc98d4 fix conflicts 2018-12-18 09:06:40 -06:00
brainmaniac 3671ad399d
changed syntax for validation
Changed the syntax for the validation to be more aligned to the proposed way of implementing custom validations in the docs: https://laravel.com/docs/5.7/validation#custom-validation-rules
2018-10-16 22:36:12 +02:00
Taylor Otwell 1cb18d11ac
Merge pull request #4794 from jakebathman/change-password-min-length-to-8
[5.8] Change password min length to 8
2018-10-05 14:23:33 -05:00
jakebathman 325ae7ac69 Update `RegisterController` password validation rule and associated lang file 2018-10-05 13:54:15 -05:00
Oliver Payne 52fe45dd7b Fix 'resent' ambiguity 2018-09-16 17:32:31 +02:00
Laurence Ioannou 8c3e7603eb
Update VerificationController.php 2018-09-07 19:44:33 +10:00
Eliurkis Diaz 2c5633d334
Remove unnecessary use on verification controller 2018-09-05 00:24:52 -04:00
Taylor Otwell 69e92d6454 initial pass 2018-06-21 11:08:49 -05:00
Ricard 3332ff4cb2 add argon support to create method in RegisterController 2018-02-10 22:03:08 +01:00
Lucas Michot 8ceb2fddb7 Fix docblock. 2017-07-03 11:17:19 +02:00
Ilya Kudin 9aeef9812a More clear way to assign middleware in controller
Assign guest middleware to LoginController using documented way https://laravel.com/docs/5.4/controllers#controller-middleware 
to avoid confusing with $options array values meaning.
2017-04-18 19:13:35 +07:00
Laurence Ioannou 99fca4daef Update RegisterController.php 2017-04-07 21:11:39 +01:00
Matt McDonald fff42ec631 Redirect for registration only 2016-11-17 09:25:40 +00:00
Taylor Otwell fdef1b6fbe Merge pull request #4007 from vinkla/patch-1
Use fullpath for validator facade
2016-10-17 09:00:25 -05:00
Vincent Klaiber 6325610070 Use fullpath for validator facade
Added fullpath import for the validator facade.
2016-10-17 15:55:26 +02:00
Ron Melkhior 6b73fae8d7 Add redirectTo attribute to the reset password controller 2016-10-16 03:44:24 +03:00
Taylor Otwell 31fce5c503 change wording 2016-09-06 20:49:16 -05:00
Francisco Daniel 30d0e2dcca fix comments 2016-09-06 17:39:17 -05:00
Taylor Otwell ca7c973280 fix length 2016-08-01 08:51:52 -05:00
Alex 813c9411b6 fix wrong spelling
applications
2016-07-30 14:30:05 +08:00
Taylor Otwell b5a8c27991 add files 2016-07-10 15:31:28 -05:00
Taylor Otwell 9c817e7aef use new auth features 2016-07-10 15:31:23 -05:00
Taylor Otwell 4a44a0d3d5 no longer need this trait out of the box 2016-07-10 09:39:37 -05:00
Taylor Otwell 9ecfa9cf8e specify middleware directly 2016-07-10 08:48:46 -05:00
Graham Campbell b6bd185048 Merge branch 'master' into develop 2016-05-30 12:03:49 +01:00
Sadika Sumanapala 336d80c1f1 Get guest middleware using guestMiddleware() method
guestMiddleware() defined on ResetsPasswords trait

This change is required to fix issue #13383

Depends on pull request laravel/framework#13384
2016-04-30 12:39:22 +05:30
Taylor Otwell 749528db0c remove unneeded trait 2016-04-28 10:28:26 -05:00
Joseph Silber 39ba051a78 Add support for the authorize middleware and AuthorizesRequests trait 2016-03-30 11:58:14 -04:00
Jad Joubran 590593e0af Fixed order of password validation in registration 2016-03-02 20:48:02 +01:00
Taylor Otwell 62d62a0524 update method call 2016-02-22 22:19:31 -06:00
phecho 99b97ca7ca Change redirecTo in AuthController 2015-12-25 15:41:28 +08:00
Taylor Otwell ba7137dcb0 update routes and middleware 2015-12-03 23:11:04 -06:00
Taylor Otwell 4eb28ba069 base controller doesn't have to be abstract. 2015-12-02 08:21:23 -06:00
Taylor Otwell 58bc5273b8 add property by default 2015-10-29 09:59:32 -05:00
Taylor Otwell c82c5eceda acl changes 2015-08-29 16:36:22 -05:00
Taylor Otwell 901a45fd96 added throttles logins trait by default 2015-07-01 13:30:05 -05:00
Graham Campbell bf3785d0bc Additional cs fixes
Signed-off-by: Graham Campbell <graham@cachethq.io>
2015-06-01 15:46:45 +01:00
Taylor Otwell b21d263e84 Use DispatchesJobs. 2015-05-09 17:11:52 -05:00
Taylor Otwell 89e2d8e174 Auth controller stubs. 2015-05-01 23:04:32 -05:00
Taylor Otwell 2d9b6958ec Simplify opening routes. 2015-04-21 14:42:23 -05:00
Taylor Otwell 5e11f87de2 Remove auth scaffolding to make it opt-in. 2015-03-18 12:55:56 -05:00
Taylor Otwell 8909e75552 Some spacing. 2015-03-02 15:31:27 -06:00