66 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
db47318925 update gitignores 2020-07-17 08:07:12 -05:00
Taylor Otwell
395ede7a2d add gitignore 2020-07-16 14:27:24 -05:00
Taylor Otwell
03ac80b779 change variable name 2018-11-20 22:01:06 -06:00
Taylor Otwell
071a05bd76 use env superglobal 2018-11-20 21:57:43 -06:00
Sammy Kaye Powers
6125693845
Make app path stream safe 2018-09-28 13:52:26 -04:00
Diogo Azevedo
8914be5fc8 Remove extra autoload file 2017-04-17 18:39:32 -03:00
Ivan Nikitin
1078776e95 Remove redundant check from bootstrap/autoload.php
Redundant check removed since compiled class file generation was removed
09964cc8c0 (diff-7b18a52eceff5eb716c1de268e98d55dL870)
2017-01-28 14:18:03 +03:00
Pantelis Peslis
16e37cb370 Use the ::class notation 2015-06-08 10:29:33 +03:00
Taylor Otwell
4e0b15fba1 Use new bootstrap/cache for cached optimizations loaded during bootstrapping. 2015-03-25 10:20:08 -05:00
Taylor Otwell
5644e8e320 fix conflicts. 2015-03-13 22:04:40 -05:00
Taylor Otwell
c822db1f5b Update compiled file directory. 2015-03-13 22:02:50 -05:00
Taylor Otwell
f424b87a63 PSR-2 for app. 2015-02-22 20:47:03 -06:00
Taylor Otwell
532297c109 Work on default project structure. 2014-12-08 09:31:31 -06:00
Taylor Otwell
3a2dd312be Fix comment. 2014-11-21 08:20:05 -06:00
Taylor Otwell
6b60dc6650 Fix handler. 2014-11-19 09:03:05 -06:00
Taylor Otwell
a7e6a89c91 Add scheduled commands. 2014-11-18 22:48:38 -06:00
Taylor Otwell
27aa85ccdb Remove exception handler. Move to core. 2014-11-03 19:13:06 -06:00
Taylor Otwell
1209ce7657 Working on exception handling. WIP. 2014-11-03 16:45:26 -06:00
Taylor Otwell
aa8bf8a211 Bind the kernels as singletons. 2014-10-25 21:27:57 -05:00
Taylor Otwell
4301348646 Large refactor of HTTP and Console stack. 2014-10-20 11:14:41 -05:00
Taylor Otwell
834cb7530d Fix spacing. 2014-10-15 16:37:56 -05:00
Taylor Otwell
52e68f981f Fix check. 2014-10-10 10:18:57 -05:00
Taylor Otwell
ef855c1175 Tweak environment file settings. 2014-10-10 08:33:05 -05:00
Taylor Otwell
5a34c60c61 Simplify environment loading. 2014-10-08 17:12:10 -05:00
Taylor Otwell
6980d95c21 Fix a few things. 2014-10-08 16:36:38 -05:00
Taylor Otwell
9f81d4df6e Simplify things. 2014-09-27 20:35:08 -05:00
Taylor Otwell
fdba65c0dc Convert arrays. 2014-08-24 14:04:21 -05:00
Taylor Otwell
c9fb1c9110 Fixing a few things. Namespace configuration. 2014-08-21 21:25:03 -05:00
Taylor Otwell
59289aff68 Tweak where views and lang files are located. 2014-08-20 20:41:24 -05:00
Taylor Otwell
a9a41d7b96 Update paths. 2014-08-18 23:19:53 -05:00
Taylor Otwell
9aae50e501 Working on the default app structure. 2014-08-18 22:46:16 -05:00
Taylor Otwell
2649df12ca Unused path. 2014-08-13 09:44:35 -05:00
Taylor Otwell
ee6f47dc47 Working on app structure. 2014-08-13 09:44:20 -05:00
Taylor Otwell
262dec16f8 Add more paths. 2014-08-13 09:30:14 -05:00
Taylor Otwell
084a91cf7c Add src path. 2014-08-11 13:36:28 -05:00
Taylor Otwell
6070d93c4a Working on new directory structure. 2014-08-11 10:13:20 -05:00
Taylor Otwell
c58286aa25 Remove class loader from aliases. 2014-07-31 23:41:39 -05:00
Taylor Otwell
0e0fd73b43 Working on overall app structure. 2014-07-31 15:13:50 -05:00
Taylor Otwell
b20409fa53 Move storage out of app directory. 2014-07-26 22:00:01 -05:00
Taylor Otwell
e5fe0aff57 Move the environment settings into their own file. 2014-06-23 21:22:55 -05:00
Taylor Otwell
6f005892b0 Cleaning up some default values. 2014-05-16 10:44:00 -04:00
Taylor Otwell
aeda6b13cd Shorten path line. 2014-01-18 21:58:28 -06:00
Taylor Otwell
0301a564e5 Tweak comment. 2013-11-27 11:40:44 -06:00
Taylor Otwell
a373ac8fed Merge branch 'master' into develop 2013-10-30 09:46:39 -05:00
Taylor Otwell
eea4713e7c Fix grammar. 2013-10-30 09:46:34 -05:00
Taylor Otwell
29fc9f694d Working on more Stacky setup. 2013-10-25 00:28:22 -05:00
Taylor Otwell
15bd1bfa63 Fix casing. 2013-05-26 13:50:33 -05:00
Taylor Otwell
af39f0c2b1 Just boot MbString on Patchwork. 2013-05-26 13:50:16 -05:00