Commit Graph

196 Commits

Author SHA1 Message Date
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
Maarten Buis 6292958a6b
[11.x] Removed unused using in public/index.php (#6315) 2024-01-09 15:33:38 -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
Zeros Developer 472d31e5f2
Simplify the maintenance file call (#5752)
* Simplify the maintenance file call

* Update index.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2021-12-16 09:06:59 -06:00
Adam Mospan ca8e5d65da
Remove redundant tap() helper in index.php (#5719) 2021-11-05 08:00:12 -05:00
Taylor Otwell 9c5e6f9757 update wording 2021-03-15 08:41:28 -05:00
Matthew Setter e95a675e43 Minor update to check if application is under maintenance documentation
While reading through the documentation in public/index.php, the initial
sentence documenting checking if the application is under maintenance
didn't quite read properly to me, nor did the section's header. So, I'm
submitting this small patch to correct it.
2021-03-14 21:04:22 +01:00
Taylor Otwell 3b418421e7 change path 2020-07-17 08:03:16 -05:00
Taylor Otwell 47e2781f68 update for maintenance mode 2020-07-16 14:30:22 -05:00
Taylor Otwell 228aa230e6 update for maintenance mode 2020-07-16 14:27:19 -05:00
Taylor Otwell 6ca2ecacea remove unneeded block 2020-06-24 13:13:32 -05:00
Taylor Otwell c58b40b9bc Remove extra line 2020-06-24 13:12:04 -05:00
Taylor Otwell d2db8d8159 fix comments 2020-06-24 13:11:53 -05:00
Taylor Otwell 5c7c9f3638 adjust index script 2020-06-24 13:09:30 -05:00
Taylor Otwell ae2af3adfc tap 2020-06-24 13:03:02 -05:00
Diogo Azevedo 8914be5fc8 Remove extra autoload file 2017-04-17 18:39:32 -03:00
Taylor Otwell b0846539b1 fix cascade 2017-03-08 11:20:18 -06:00
Brandon Surowiec 97fde5bff9 Update email address 2016-08-16 00:11:58 -04:00
Pantelis Peslis 16e37cb370 Use the ::class notation 2015-06-08 10:29:33 +03:00
Graham Campbell bf3785d0bc Additional cs fixes
Signed-off-by: Graham Campbell <graham@cachethq.io>
2015-06-01 15:46:45 +01:00
Austin H 0bbe752e87 Fix more spacing.
This converts AppServiceProvider to spaces since it wasn't and removes
a few empty lines after class declarations.
2015-03-20 20:30:50 -07:00
Jan-Paul Kleemans 6b496a7209 Updated Run The Application comment 2015-02-23 19:12:15 +01:00
Yitzchok Willroth 56933e9d3d Update index.php - Fix Comment Lengths
What do you get the man who has everything?  Why _perfect_ 'less four' declining length comments,of course... Happy holidays! :-)
2014-12-24 18:47:55 -05:00
Taylor Otwell 46d1a27b77 Terminate the request after sending. 2014-11-06 20:06:49 -06:00
Taylor Otwell 4301348646 Large refactor of HTTP and Console stack. 2014-10-20 11:14:41 -05:00
Taylor Otwell 9aae50e501 Working on the default app structure. 2014-08-18 22:46:16 -05:00
Taylor Otwell 6070d93c4a Working on new directory structure. 2014-08-11 10:13:20 -05:00
Taylor Otwell 740983e62d Just call app->run(). 2013-10-28 09:29:09 -05:00
Taylor Otwell ce64714b2f Tweak front controller. Htaccess. 2013-10-26 11:27:40 -05:00
Taylor Otwell 29fc9f694d Working on more Stacky setup. 2013-10-25 00:28:22 -05:00
Jonathan Barronville e8fa5f02b7 Small grammar fix. 👀 . 2013-05-29 16:37:27 -04:00
Taylor Otwell 07a5edb9db Fix comment. Closes #1958. 2013-05-04 14:30:52 -05:00
Taylor Otwell 18cda5037a Move location of LARAVEL_START. 2013-03-28 16:07:32 -05:00
Taylor Otwell b8008ff7b3 Fix comment. 2013-03-13 16:40:10 -05:00
Taylor Otwell 2a14998be9 fire app shutdown event. 2013-03-08 10:52:24 -06:00
Ben Corlett 8a5f18e139 Moving start.php to bootstrap/start.php to collate all bootstrapping files.
Signed-off-by: Ben Corlett <bencorlett@me.com>
2013-02-07 09:27:15 +11:00
Taylor Otwell 9d3c3ea038 tweak how autoloaders are called. adjust phpunit bootstrap. 2013-01-23 23:33:47 -06:00
Richard Bradshaw 3ad58caba6 Fixup typo in comment block.
Fix a couple of typos in the comment block.
2013-01-19 19:34:38 +00:00
Taylor Otwell 5d99f9f1d6 moving laravel 4 into develop branch. 2013-01-11 15:14:07 -06:00
Taylor Otwell ab2581dba5 increment version. 2013-01-10 16:19:57 -06:00
Taylor Otwell d2fefa65aa Work on section handling. 2012-11-06 15:04:13 -06:00
Taylor Otwell 3416506194 increment version. refactor eloquent eager loading matching. 2012-10-07 14:04:29 -05:00
Taylor Otwell d1c1fe4446 fix bug in eloquent model and update version. 2012-09-27 17:45:12 -04:00
Taylor Otwell 14c6ff1692 Increment version and change log. 2012-09-26 10:13:30 -04:00
Taylor Otwell 8afab342c6 Incrementing version and updating change log. 2012-09-01 22:09:47 -05:00
Taylor Otwell c785067e95 Increment version and change log. 2012-08-29 14:45:22 -05:00
Taylor Otwell 9b902427fd Updating version. 2012-08-28 23:55:04 -05:00
Taylor Otwell e8119f8109 increment version. 2012-08-17 09:04:17 -05:00
Taylor Otwell 750365c740 increment version 2012-06-28 15:28:26 -05:00