296 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
underwood
4bc502bba6
Delete web.config (#5744)
During a security audit one of the few recommendations they made was to remove or limit access to web.config.

Since this is mainly used by Microsoft IIS server it isn't necessary for most Laravel projects and could be added if someone is using Microsoft server.
2021-12-09 16:09:19 -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
Govar Jabar
c1b56831df
update web.config (#5528) 2021-01-29 07:57:50 -06: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
Taylor Otwell
cf5e99e9aa change comment 2019-12-20 14:48:04 -06:00
Taylor Otwell
fc39b073f3 remove ui scaffolding 2019-06-27 19:57:39 -05:00
Dries Vints
3c53897ee4
Merge branch 'master' into develop 2019-02-15 18:47:27 +01:00
Taylor Otwell
7b322b6431
Update web.config 2019-01-30 16:26:00 -06:00
Chris Fidao
19528fba83
web.config comment to help debug issues
IIS error reporting won't let you know why it errors out if the rewrite module is not installed.
2019-01-30 10:44:02 -06:00
Dries Vints
2498f317d7
Remove unused Bootstrap class
This class isn't available in Bootstrap 4.
2019-01-23 15:23:51 +01:00
Taylor Otwell
cfc2220109 remove svgs 2018-12-30 19:41:37 -05:00
Jeffrey Way
dc58f95ebb Bump to Mix v4 2018-12-14 15:14:03 -05:00
Taylor Otwell
fa2af39310 compile assets 2018-11-02 10:14:29 -05:00
Taylor Otwell
0d43633f9f add illustrations 2018-08-31 13:53:27 +02:00
Taylor Otwell
5da2d13b04 compile 2018-07-19 07:50:06 -05:00
Taylor Otwell
0178fd8921 update bootstrap 2018-01-19 08:01:34 -06:00
Taylor Otwell
cd53623249 compile 2017-12-20 17:02:59 -06:00
Taylor Otwell
6ee9718038 recompile 2017-12-20 16:53:12 -06:00
lbausch
83f568a317
Remove whitespace 2017-12-02 23:53:28 +01:00
Taylor Otwell
da9851055a compile assets 2017-10-09 15:49:15 -05:00
David Cox Jr
8d1d1e1b94 Update .htaccess
This rewrite condition is never hit as the rewrite to index is triggered before this, and the authorization is never passed on. Moving this condition corrects that issue as mentioned on the commit
2017-09-26 13:13:01 -04:00
Andrey Helldar
bf59cd3ce1 Added "-Indexes" option
If you open the `/css`, `/js`, or any other folder on the default server, you can see the list of files in the directory.
The `-Indexes` option forbids viewing directory files via the web interface.
2017-09-18 20:42:11 +03:00
Drew
c5f993fa28 Fixed trailing slash redirection for subdirectory installs.
Previously redirection to remove trailing slashes would fail if Laravel was not installed in the root directory.
2017-07-23 00:35:36 -07:00
Taylor Otwell
d0ce75926f Merge branch 'master' into develop 2017-07-11 13:26:38 -05:00
Taylor Otwell
1155245a59 formatting. compile 2017-05-10 09:03:25 -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
Taylor Otwell
a205b127c6 add mix settings 2017-01-17 14:30:48 -06:00
Taylor Otwell
e78ef3ee42 tweak js file 2016-12-17 10:14:49 -06:00
Taylor Otwell
60cbf6727c rebuild assets 2016-12-08 14:14:42 -06:00
Taylor Otwell
7b318939c9 Ship axios instead of vue-resource. 2016-11-03 17:06:06 -05:00
restored18
366f8ab23a Add web.config 2016-08-26 14:33:46 -05:00
Brandon Surowiec
97fde5bff9 Update email address 2016-08-16 00:11:58 -04:00
Taylor Otwell
24d0102fcc recompile 2016-08-10 09:16:52 -05:00
Taylor Otwell
2a8c38ac31 compile assets 2016-07-26 15:39:57 -04:00
PascaleBeier
0cfc40e790 Make use of Bootstrap 3.3.7 with jQuery 3 support 2016-07-26 17:11:10 +02:00