143 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
ebf9d30bf3
[10.x] Minor skeleton slimming (#6159)
* remove rate limiter from route provider by default

* remove policy place holder

* remove broadcast skeleton in favor of new provider in core

* use default provider collection

* Remove unnecessary properties from exception handler.

* add back broadcast provider

* update comment

* add rate limiting

* Apply fixes from StyleCI

* fix formatting

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-04-15 16:53:39 -05:00
Taylor Otwell
7cc6699c3d clean up comment 2023-04-11 17:17:24 -05:00
Taylor Otwell
3986d4c540 remove unneeded call 2023-02-16 13:38:12 -06:00
Nuno Maduro
55af5469c3
[10.x] Uses PHP Native Type Declarations 🐘 (#6010)
* Adds basic typing around method's arguments and return types

* Adds missing `closure` type

* Adds typing on tests

* Fixes `RedirectIfAuthenticated`

* Fixes `Authenticate`

* Improves `RedirectIfAuthenticated` types

* Fixes user factory `unverified` return type
2023-01-03 10:35:24 +01:00
Nuno Maduro
fa5e54a2ab
[9.x] Uses laravel/pint for styling (#5945)
* Uses `laravel/pint` for styling

* Makes `.styleci.yml` ignored on export

* Update composer.json

Co-authored-by: Dries Vints <dries@vints.io>
2022-07-15 08:38:49 -05:00
Taylor Otwell
7216fa7e9a a few wording changes 2022-05-05 14:52:25 -05:00
Ostap Brehin
b630eae0b3
Update RouteServiceProvider.php (#5862) 2022-04-11 09:07:05 -05:00
emargareten
4a6229aa65
Update RouteServiceProvider.php (#5818) 2022-02-16 08:18:19 -06:00
Dries Vints
376ed676ee
Update RouteServiceProvider.php (#5816) 2022-02-15 08:32:48 -06:00
Taylor Otwell
5901059eba add discovery method default 2022-02-09 08:53:30 -06:00
Dries Vints
274d1bdd72
Merge branch '8.x'
# Conflicts:
#	CHANGELOG.md
2021-12-07 17:10:58 +01:00
Nuno Maduro
8a62ca2633
Improves generic types on the skeleton (#5740) 2021-12-03 09:04:57 -06:00
Bram
7bf32280e2
[8.x] Add types to arrays in boilerplate (#5738)
* Add more specific types

* Update Authenticate.php

* Update Authenticate.php
2021-12-02 14:40:24 -06:00
Iman
5f9dbb41b5
[9.x] Use php 8 null safe operator (#5670)
This PR leverages php 8 "null safe operator" instead of thrr `optional()` helper
2021-08-17 08:09:03 -05:00
Taylor Otwell
bec982b0a3 update by 2020-10-22 16:01:59 -05:00
Viktor Szépe
453d7286f3
Revert per user API rate limit
It was changed from per user to per application in ced3e50bca279f5a499a6d513fcdfd2a020c28ce
2020-10-22 22:41:03 +02:00
Taylor Otwell
a6ca577839 add comment 2020-09-22 14:17:27 -05:00
Ricardo Gobbo de Souza
d3353c9e9a
Fix route when uncomment $namespace (#5424) 2020-09-22 09:23:40 -05:00
Taylor Otwell
69d0c504e3 add commented code 2020-09-20 11:39:57 -05:00
Wojciech Gabryś
c62a7c13bf Update model path in AuthServiceProvider's policies.
Due to the change of default model location in Laravel 8.x from /App to /App/Models, the initial policy comment shoud also reflect this change.
2020-09-15 09:53:40 +02:00
Taylor Otwell
292a5b26a9 swap route order 2020-09-11 08:29:38 -05:00
Taylor Otwell
b33852ecac remove property 2020-09-10 14:28:44 -05:00
Taylor Otwell
9cbc3819f7 add property to route service provider 2020-09-09 21:00:21 -05:00
Taylor Otwell
ced3e50bca use new rate limiting 2020-08-27 13:36:32 -05:00
Taylor Otwell
a9623d3596 update wording 2020-07-14 14:10:07 -05:00
Taylor Otwell
a9abc85301 consolidate to a single method 2020-07-14 14:00:47 -05:00
Taylor Otwell
58a98efb86 tweak route provider default settings 2020-06-24 12:47:56 -05:00
Taylor Otwell
d53c56e4e0 remove unneeded parent boot calls 2020-04-14 16:14:22 -05:00
André Ricard
c7a0002432
Fix the code indent of object operators (#5258)
This commit fixes the code indent of object operators, as following the framework code standards -> 2.4. Indenting
2020-03-11 07:37:46 -05:00
Graham Campbell
583d1fa773 [7.x] Remove register in auth provider (#5182)
* Remove register in auth provider

* Update AuthServiceProvider.php

* Update Kernel.php
2019-12-19 09:36:06 -06:00
Taylor Otwell
7d70bfe828
Utilize Authentication Middleware Contract (#5181)
* adjust auth middleware to point to contract

* remove middleware priority
2019-12-18 13:44:16 -06:00
Taylor Otwell
972f3cd283
DRY up path (#5173) 2019-12-10 08:59:27 -06:00
Dries Vints
e656932002 Apply fixes from StyleCI (#5100) 2019-09-10 17:26:00 +02:00
Taylor Otwell
f4ff4f4176 comment 2019-02-27 07:24:37 -06:00
Sjors
e0ae7914b9 change order of boot and register method 2019-01-29 14:40:47 +01:00
Taylor Otwell
d6b6e706b1 add event registration 2018-06-21 11:09:58 -05:00
Taylor Otwell
605ffb9ba9 rename example event 2017-03-25 21:17:15 -05: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
Joseph Silber
3e661aa9f5 Use path for group directly 2016-12-08 21:08:33 -05:00
Joseph Silber
ef1ef753ba Use fluent routes 2016-12-07 22:57:15 -05:00
Taylor Otwell
100c102fc3 convert binding 2016-10-28 10:09:03 -05:00
Bryce Adams
78f4e85f74 Map API routes before Web routes 2016-09-05 20:54:21 +10:00
Mohamed Said
aed59d9f7a remove brackets 2016-08-21 01:17:41 +02:00
Mohamed Said
c0b95238c9 Remove defalut auth:api middleware 2016-08-21 01:01:52 +02:00
Taylor Otwell
7e41c61835 rename method 2016-08-10 14:21:02 -05:00
Taylor Otwell
30a9cbf54e Applied fixes from StyleCI 2016-08-05 16:44:47 -04:00
Taylor Otwell
9df814e512 Tweak a few broadcasting configurations. 2016-08-05 15:44:29 -05:00
Taylor Otwell
41c0eec70c tweak broadcast service provider 2016-08-05 14:28:22 -05:00
Sercan Çakır
42930edb0c sort by name 2016-07-30 23:36:24 +03:00