Commit Graph

79 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
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
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
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
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 ced3e50bca
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
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
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
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
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
Sercan Çakır
42930edb0c sort by name 2016-07-30 23:36:24 +03:00
Taylor Otwell
8f66f4b6e9 Tweak default files. 2016-07-24 22:17:23 -05:00
Taylor Otwell
7ec26ce916 Tweak location of routes files. 2016-07-14 09:36:17 -05:00
Taylor Otwell
2b05ce3b05 Just use facades in service providers. 2016-07-11 15:44:50 -05:00
Taylor Otwell
e316be4cec Applied fixes from StyleCI 2016-03-23 18:05:26 -04:00
Taylor Otwell
bcc54357bd add to comment 2016-03-23 17:05:17 -05:00
Taylor Otwell
5c30c98db9 just use web group by default 2016-03-23 17:04:42 -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
3b7e6dcdca fix a bunch of stufF 2015-04-10 22:19:42 -05:00
Mark Kevin Que
ddf92f9513 Defining global patterns before parent boot function call
Kindly check if my assumption is correct? In relation to this issue, http://stackoverflow.com/questions/28251154/laravel-5-0-dev-defining-global-patterns-is-not-working/29567578#29567578 and https://laracasts.com/discuss/channels/general-discussion/route-global-pattern-in-routeserviceprovider-not-working-in-laravel-5?page=1

or this could be a different issue/bug

thanks!
2015-04-10 13:59:42 -04:00
Taylor Otwell
8909e75552 Some spacing. 2015-03-02 15:31:27 -06:00
Taylor Otwell
f424b87a63 PSR-2 for app. 2015-02-22 20:47:03 -06:00
Davide Bellini
82cf205242 Allow to use $router in routes file 2015-01-21 10:18:18 +01:00
Taylor Otwell
8780949bec Make route loading a little more explicit. 2015-01-20 16:09:01 -06:00
Taylor Otwell
2e0afb9bf1 Fix a few comments for wording. 2014-11-19 19:59:36 -06:00
Taylor Otwell
8b70eabf39 Update the app skeleton. 2014-11-19 19:45:46 -06:00
Taylor Otwell
e3e7cc499f Set the root controller namespace. 2014-11-11 20:10:53 -06:00
Taylor Otwell
ca2f02284c Rename middleware to more "action" words. 2014-11-11 12:51:55 -06:00
Taylor Otwell
e02e3456ed Update middleware reference. 2014-11-10 13:43:44 -06:00