Commit Graph

84 Commits

Author SHA1 Message Date
Kazem Alghasi
b6b2057df2 اولین کامیت پروژه vernova 2026-07-26 19:58:27 +03:30
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
Eliezer Margareten
84991f2301
Update Kernel.php (#6193) 2023-06-07 08:20:56 -05: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
edcbe6de7c rename property for clarity 2023-01-27 14:08:28 +00:00
Stephen Rees-Carter
dbced6ac8c
Add ValidateSignature middleware for ignore params (#5942)
* Add ValidateSignature middleware for ignore params

* Comment out query parameters by default

* Remove leading slash

* Update Kernel ValidateSignature middleware path
2022-08-15 10:19:56 -05:00
Taylor Otwell
d650fa2a30
[9.x] Make authenticate session a route middleware (#5842)
* make authenticate session a route middleware

* Update Kernel.php
2022-03-29 09:48:17 -05:00
Dries Vints
ecf7b06c4b
Replace Laravel CORS package (#5825) 2022-02-22 09:42:30 -06: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
Taylor Otwell
226d1bfc3c
[8.x] Sanctum (#5663)
* initial sanctum poc

* add files

* remove token
2021-08-11 13:44:34 -05:00
Taylor Otwell
b7cde8b495 comment trust hosts 2020-12-10 07:14:14 -06:00
Daniel Coulbourne
f6f772ba54
Uncomment TrustHosts middleware to enable it by default. (#5477) 2020-11-26 08:38:56 -06:00
Taylor Otwell
ced3e50bca use new rate limiting 2020-08-27 13:36:32 -05:00
Taylor Otwell
e471dd1cf0 rename class 2020-07-14 15:57:11 -05:00
Taylor Otwell
a14a1208ad remove alias that isnt needed 2020-07-14 15:48:22 -05:00
Taylor Otwell
5639581ea5 add basic trust host middleware 2020-05-18 16:50:22 -05:00
Taylor Otwell
0bec06cd45 formatting 2019-12-27 08:56:53 -06:00
Barry vd. Heuvel
bee0e8c94c Add HandleCors middleware 2019-12-24 22:28:20 +01: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
140d4d9b0a use class name to be consistent with web middleware 2019-12-18 12:02:46 -06:00
Dries Vints
ba3aae6c33
Implement password confirmation 2019-10-08 13:45:40 +02:00
Dries Vints
0dd31baf2a
Merge branch 'master' into develop 2019-07-25 00:49:45 -04:00
Gergő D. Nagy
7c9e5ea412 [5.9] Add ThrottleRequests to the priority array (#5057)
* add ThrottleRequests to the priority array

* Move ThrottleRequests under Authenticate middleware
2019-07-12 07:59:55 -06:00
Gary Green
e71f50f664 Move TrustProxies to highest priority - fixes maintenance mode ip whitelist if behind proxy e.g. Cloudflare (#5055) 2019-07-10 09:11:28 -06:00
Carl Olsen
6d75f17af5
Update Kernel.php 2018-11-20 11:19:31 -05:00
Taylor Otwell
9838f79d2c wip 2018-09-08 11:06:07 -05:00
Matt Hollis
04960ed8be
Update Kernel.php 2018-09-07 16:24:35 -05:00
Matt Hollis
7f6ec77e69
Update Kernel.php
StyleCI fixes
2018-09-07 16:22:40 -05:00
Matt Hollis
0eb1a8f3bc
Update Kernel.php 2018-09-07 16:20:54 -05:00
Matt Hollis
b354a35272
Update HttpKernel to use Authenticate middleware under App namespace
The `Authenticate` middleware is intended to be called in a specific order before applying developer-listed middleware. In 5.7, it was changed to `App\Http\Middleware\Authenticate` but the priority still lists it as living under `Illuminate\Auth\Middleware\Authenticate`.

This proposed fix moves that priority array to `App\Http\Kernel` and changes the reference to the userland class.
2018-09-07 15:58:40 -05:00
Taylor Otwell
bf9836a785 Merge branch 'master' into develop 2018-07-19 07:48:44 -05:00
Tobias
6bd50e79a9 Adding boilerplate maintenance middleware with excepted URIs array 2018-07-12 01:13:44 +02:00
Taylor Otwell
cd594395d9 add signed 2018-06-21 11:13:00 -05:00
Taylor Otwell
69e92d6454 initial pass 2018-06-21 11:08:49 -05:00
Taylor Otwell
4369e9144c add middleware 2018-03-14 12:40:35 -05:00
Taylor Otwell
a14e62325c customizable redirect on auth failure 2018-03-13 16:09:47 -05:00
Taylor Otwell
dabd0686be
Update Kernel.php 2017-12-18 19:30:09 -06:00
Taylor Otwell
bcaeb32430
Update Kernel.php 2017-12-18 19:29:49 -06:00
Kévin Dunglas
6e9c0c8852
Add the SetCacheHeaders middleware 2017-12-18 16:31:33 +01:00
Taylor Otwell
e23a1d284f add trust proxy middleware 2017-03-29 10:05:16 -05:00
Taylor Otwell
54c5e1585a Trim and convert strings to nulls. 2017-01-17 15:35:36 -06:00
Taylor Otwell
590257fbf6 Comment out by default. 2017-01-16 11:08:54 -06:00
Taylor Otwell
01ad31584b add auth session middleware to web group 2017-01-16 11:08:54 -06:00
Taylor Otwell
077d404c5f list post check middleware 2016-12-19 12:36:33 -06:00
Joseph Silber
4f018159b8 Update can middleware to new namespace 2016-05-29 22:27:14 -04:00
Taylor Otwell
19f8537829 fix namespace 2016-05-26 13:53:39 -05:00
Joseph Silber
945052508f Use the Authenticate middleware from core 2016-05-26 13:07:11 -04:00
Taylor Otwell
c332ad9582 fix typo 2016-05-25 09:24:11 -05:00