20 Commits

Author SHA1 Message Date
Taylor Otwell
151eac5c1a remove comments 2024-02-14 11:46:47 -06:00
Nuno Maduro
d2b3ab2455
Moves withProviders to configure internally (#6340) 2024-02-13 15:53:33 -06:00
Taylor Otwell
7df47a2604 simple health route 2024-01-24 15:15:09 -06:00
Taylor Otwell
3898059e00 explicit directory 2024-01-21 15:49:03 -06:00
Taylor Otwell
b1502f3c07 slim comments 2024-01-17 16:44:19 -06:00
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
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
Pantelis Peslis
16e37cb370 Use the ::class notation 2015-06-08 10:29:33 +03: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