Commit Graph

38 Commits

Author SHA1 Message Date
Taylor Otwell f437205a5e slim configuration 2024-02-23 14:35:25 -06:00
Taylor Otwell 96508d43ec wip 2024-02-23 11:53:06 -06:00
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
Izzudin Anuar a337b99dfb
Fix typo (#6128) 2023-02-25 23:37:54 +05:30
Taylor Otwell f48a46bf20 Merge branch '9.x' into 10.x 2023-02-14 09:17:09 -06:00
Arne_ 5b60b604c4
[9.x] Adds clarification to throttle auth setting (#6096)
* adds clarification to throttle auth setting

* Update auth.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2023-02-12 14:06:25 -06:00
Taylor Otwell a28ad2966d rename password reset tokens table in skeleton 2023-01-30 16:53:14 -06:00
Taylor Otwell 5ae2f24a04 fix spacing 2022-02-01 08:43:03 -06:00
Taylor Otwell 226d1bfc3c
[8.x] Sanctum (#5663)
* initial sanctum poc

* add files

* remove token
2021-08-11 13:44:34 -05:00
Taylor Otwell 710d472d76 models directory 2020-08-20 15:31:07 -05:00
Taylor Otwell ba2f2abe83 tweak formatting 2019-10-21 13:42:31 -05:00
Michael Chernyshev ace38c133f Security fix: Waiting before retrying password reset 2019-10-18 13:57:19 +03:00
Taylor Otwell d1f7a5a886 formatting 2019-10-08 07:27:05 -05:00
Dries Vints ba3aae6c33
Implement password confirmation 2019-10-08 13:45:40 +02:00
Taylor Otwell d201c69a8b update config file 2019-02-19 21:58:25 -05:00
Taylor Otwell d09efa26d2 remove irrelevant comment 2016-09-01 09:01:57 -05:00
crynobone 34eb11faee [5.3] Password broker would always use notifications::email view.
Signed-off-by: crynobone <crynobone@gmail.com>
2016-06-30 21:03:16 +08:00
Christopher L Bray 6dcb3ac73e Typo in docs
Should be _separate_ not _seperate_ :)
2015-12-20 19:57:26 +00:00
Taylor Otwell 638b261a68 Change default view. 2015-12-15 16:58:41 -06:00
Taylor Otwell 1865c2993e use provider for consistent language 2015-12-15 15:01:35 -06:00
Taylor Otwell ba857ca50e Uncomment example. 2015-12-14 19:35:30 -06:00
Taylor Otwell 435104304e Basic token configuration. 2015-12-14 16:37:16 -06:00
Taylor Otwell 3fa12671ce adjusting comments 2015-12-03 22:26:09 -06:00
Taylor Otwell ff35b10a3d working on config 2015-12-03 22:08:12 -06:00
Taylor Otwell b0160f5ed6 update defaults 2015-12-03 17:10:09 -06:00
Taylor Otwell 0898381839 update name to reflect purpose 2015-12-03 12:28:41 -06:00
Taylor Otwell 8414d45cdc update middleware and config 2015-12-03 12:25:38 -06:00
Graham Campbell f2348b7897 Tweaked alignment 2015-10-30 18:19:00 +00:00
Romain Lanz 4b3391f6f0 Use PHP 5.5 ::class property in config files
See https://github.com/laravel/laravel/pull/3402
2015-06-05 14:58:10 +02:00
Taylor Otwell f424b87a63 PSR-2 for app. 2015-02-22 20:47:03 -06:00
Taylor Otwell 359af29ef3 Try a lighter version of the auth scaffolding. 2015-01-09 11:51:17 -06:00
Taylor Otwell ce48990bf2 Tweak some paths again. 2014-12-15 08:42:13 -06:00
Taylor Otwell 532297c109 Work on default project structure. 2014-12-08 09:31:31 -06:00
Taylor Otwell 546c81a190 Fix some password reset stuff. 2014-10-12 12:20:01 -05:00
Taylor Otwell 76c84d8652 Convert configuration PHP 5.4 arrays. 2014-08-24 14:03:58 -05:00
Taylor Otwell 9aae50e501 Working on the default app structure. 2014-08-18 22:46:16 -05:00
Taylor Otwell d9f2ba84c9 2.0 modular refactoring. 2011-08-18 23:23:57 -05:00
Taylor Otwell 1e90e42404 first commit of 2.0 2011-08-18 19:56:29 -05:00