113 Commits

Author SHA1 Message Date
Andrew Brown
79a94de4dd
remove APP_TIMEZONE environment variable (#6536)
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
force the timezone to be defined in the config file, rather than deferring to an environment variable.

IMO having the timezone dependent on an environment variable adds an unnecessary amount of risk for your average user who may be unaware of the effects from changing this value.

some scenarios where this could cause issues:

- devs set this value to their local timezone on their local dev machines, and they are writing `Carbon:create()` commands or similar that now are working only under the assumption of that timezone value
- you have multiple production servers setup across the country and each has their own timezone value according to their location, but they all talk to a central database. now the database is loaded with mixed timezone variables

having an explicit value defined once for the application removes these risks.

reverts part of #6188
2025-02-12 10:13:57 -06:00
Taylor Otwell
f437205a5e slim configuration 2024-02-23 14:35:25 -06:00
Taylor Otwell
96508d43ec wip 2024-02-23 11:53:06 -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
hedge-freek
ad1c5fe4c2
Redis maintenance store config example contains an excess space (#6264)
Binary operators should be surrounded by space a single space.
2023-10-31 09:38:55 -05: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
Tim MacDonald
e121424f90
Reverts #6089 (#6122) 2023-02-20 05:05:45 -06:00
Tim MacDonald
5eb99fcae6
sets ASSET_URL to use / as the default value (#6089) 2023-02-06 09:07:12 -06:00
Bruno Tomé
9d39835571
[9.x] Add missing maintenance to config (#5868)
* [9.x] Add missing maintenance to config

#40102

* fix spacing

* fix cache store for maintenance config

* formatting

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2022-04-20 15:29:25 -05:00
Noboru Shiroiwa
d8f0e93c56
[9.x] Add an example to the class aliases (#5846)
* Add an example to the class aliases

* Update app.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2022-03-21 09:00:48 -07:00
Taylor Otwell
f2b8023df3
Revert "Add Redis facade as comment in app.config (#5813)" (#5814)
This reverts commit efd49c6b94a575f3523f5809690314dc6d8bccf5.
2022-02-14 11:05:44 -06:00
Markus Machatschek
efd49c6b94
Add Redis facade as comment in app.config (#5813) 2022-02-14 11:05:17 -06:00
Felix Dorn
e077976680
[9.x] Remove redundant nulls (#5811)
* follow up of #5791

* Update app.php

Co-authored-by: Dries Vints <dries@vints.io>
2022-02-11 08:22:45 -06:00
Nuno Maduro
0df17db8d9
Improves app's default aliases configuration file (#5769) 2022-01-17 13:28:59 -06:00
Nuno Maduro
013b17793d
[9.x] Removes Core Class Aliases from the skeleton (#5751)
* Removes Core Class Aliases from the skeleton

* Updates configuration file

* use array merge

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2021-12-20 13:48:17 -06:00
Taylor Otwell
399d435c4f add facade 2021-11-09 09:56:25 -06:00
Taylor Otwell
52de5d84f6 wip 2021-08-20 07:59:36 -05:00
Dries Vints
c512ba2b16
Update app.php (#5674) 2021-08-19 09:03:02 -05:00
Claas Augner
c636fd0f67
add RateLimiter facade alias (#5642) 2021-07-10 10:23:22 -05:00
Tim MacDonald
89b15441a9
add date facade alias (#5556) 2021-03-10 08:13:17 -06:00
Taylor Otwell
612d166004 comment out alias by default 2020-11-24 16:10:36 -06:00
Graham Campbell
36373983ad Merge branch '6.x' 2020-03-06 11:48:34 +00:00
Graham Campbell
5ddbfb8454
Ensure that app.debug is a bool 2020-03-06 11:47:59 +00:00
Dries Vints
88a763e36f
Update app.php (#5237) 2020-02-27 09:21:15 -06:00
Sven Wittevrongel
590ae17031 Add Arr and Str aliases by default 2019-02-26 14:31:11 +01:00
Taylor Otwell
63a4039123 add asset url configuration option 2018-11-14 14:36:47 -06:00
Taylor Otwell
b98d49ebb3 formatting 2018-10-02 12:51:41 -05:00
Clément Blanco
24029be5b1
Fixing StyleCI identation 2018-10-02 15:50:48 +01:00
Clément Blanco
e9f6ec36a7
Adding faker_locale default config value.
As per [that PR](https://github.com/laravel/framework/pull/17895) and [the documentation](https://laravel.com/docs/5.6/database-testing#writing-factories), I wanted to make sure this was present in the `app/config.php` out of the box.

It's a great thing and I'm sure people will be happy to use it rather than overriding the singleton registration.
2018-10-02 15:45:42 +01:00
Taylor Otwell
6d9215c0a4 formatting 2018-09-04 08:09:32 -05:00
Taylor Otwell
acabdff2e3 update log configuration file 2018-01-04 15:28:26 -06:00
Taylor Otwell
a6c68c24c9 fixing conflicts 2017-08-30 11:55:27 +02:00
Jorge González
601b665ba3 Fix in comment in config/app.php
I know it is a small thing but it's driving me crazy!
2017-08-17 23:47:12 -05:00
Taylor Otwell
6db0f350fb no longer needed with autodiscovery 2017-06-01 11:39:13 -05:00
Matthew Davis
323e553f33 Make app name configurable in environment file 2017-04-03 20:07:41 +01:00
Taylor Otwell
52f0196fd3 Move broadcast channel registration to a routes file.
These are very similar to routes in that they are channel endpoints
that your application supports and they also fully support route model
binding in Laravel 5.4. Upgraded applications do not need to make this
change if they do not want to.
2016-12-30 15:46:05 -06:00
Graham Campbell
380c3a76a0 Added tinker to the default app 2016-12-29 13:06:11 +00:00
Taylor Otwell
a80e5bca0b add bus alias 2016-09-20 08:38:45 -05:00
Taylor Otwell
49a48100a7 different default name 2016-09-14 09:57:39 -05:00
Roelof Kallenkoot
f19c16c023 Sorted the Application Service Providers alphabetically
Minor change to stay consistent
2016-08-26 00:16:58 +02:00
Taylor Otwell
6f6851946b fix conflicts 2016-08-23 15:08:01 +02:00
Taylor Otwell
e6cc60349d add notification facade 2016-08-08 16:10:19 -05:00
Taylor Otwell
5d0ecde4cf get rid of space 2016-08-04 07:49:27 -05:00
Taylor Otwell
d0f90f9bfd Merge branch 'master' into develop 2016-08-04 07:49:02 -05:00
Taylor Otwell
e083273d97 Applied fixes from StyleCI 2016-08-04 08:48:57 -04:00
Bart Huisman (also known as VolgensBartjes)
936addceef give newbees a package service providers section, preventing adding after application
when i started, i ended up putting all package specific service providers just at the bottom of the application service providers. But when making a route group like domain.com/{keyword}, the packages that are registering its own url's, not work anymore (like now when i installed the translations manager from barryvdh). When putting them above the app specific, everything works. So just give it to the user as a default place?
2016-08-04 11:55:08 +02:00
Taylor Otwell
dc3d82f03f Add aliases. 2016-07-14 16:48:25 -05:00
Taylor Otwell
e7a03b4538 Stop aliasing a bunch of classes by default.
This is not a breaking change since upgrade aliases will still work.
2016-07-14 11:27:16 -05:00
Taylor Otwell
737b5eb3ef stub notifications 2016-06-22 09:57:59 -05:00
Taylor Otwell
edc5cee942 Merge branch 'master' into develop 2016-06-04 09:37:46 -05:00