Commit Graph

25 Commits

Author SHA1 Message Date
Nuno Maduro dd60315e9a
[11.x] Simplify PHP comments (#6316)
* Simplifies comments

* Apply fixes from StyleCI

* Removes non used line

* remove some comments

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Taylor Otwell <taylor@laravel.com>
2024-01-11 14:32:05 -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
Taylor Otwell cfe893dbf6 adjust wording 2023-01-25 18:07:55 +00: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 fd8a872b3b update channel 2020-08-20 15:32:30 -05:00
Taylor Otwell ca3b58cd21 change method 2020-08-01 09:50:05 -05:00
Barry vd. Heuvel e4683c6eca Revert routes 2019-12-26 19:48:38 +01:00
Barry vd. Heuvel 860ec9f2a4 Use config instead of middleware property 2019-12-26 19:46:41 +01:00
Taylor Otwell 4d565e681c import facades 2019-12-20 15:10:23 -06:00
Taylor Otwell 52f0196fd3 Move broadcast channel registration to a routes file.
These are very similar to routes in that they are channel endpoints
that your application supports and they also fully support route model
binding in Laravel 5.4. Upgraded applications do not need to make this
change if they do not want to.
2016-12-30 15:46:05 -06:00
Taylor Otwell 99bb07502c use new route syntax 2016-12-06 09:40:56 -06:00
Taylor Otwell 74e35eb084 formatting 2016-10-27 09:39:51 -05:00
Kalpa Perera 6ab4975bac changed typo 2016-10-27 05:11:25 +00:00
vagrant e5147a55f1 Changed web route description 2016-10-27 04:40:15 +00:00
dersvenhesse 330a9aaa96 Adding description for default inspire command 2016-08-28 13:17:43 +02:00
Taylor Otwell cf0875a655 move middleware to route 2016-08-21 07:49:37 -05:00
Taylor Otwell c7a1c7d773 Ship a console routes file by default. 🌊 2016-08-16 19:44:31 -05:00
Taylor Otwell a39c52c67d remove test code 2016-08-04 08:22:16 -05:00
Taylor Otwell 196c267562 resolve conflicts and clean up file 2016-08-04 08:21:57 -05:00
Taylor Otwell e2b297b9fc Tweak marketing text. 2016-07-24 22:22:23 -05:00
Taylor Otwell 8f66f4b6e9 Tweak default files. 2016-07-24 22:17:23 -05:00
Taylor Otwell 5ccd086552 Remove aliases. 2016-07-14 16:48:59 -05:00
Taylor Otwell e7a03b4538 Stop aliasing a bunch of classes by default.
This is not a breaking change since upgrade aliases will still work.
2016-07-14 11:27:16 -05:00
Taylor Otwell 5183501c1b Applied fixes from StyleCI 2016-07-14 10:36:36 -04:00
Taylor Otwell 7ec26ce916 Tweak location of routes files. 2016-07-14 09:36:17 -05:00