Commit Graph
13 Commits
Author SHA1 Message Date
Andrew Brown 79a94de4dd remove APP_TIMEZONE environment variable (#6536)
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
Andrew Brown 3b146114e2 match HidesAttributes docblocks (#6495)
the docblock in `HidesAttributes` was updated in #42512, so this child class should be using the same.

otherwise PHPStan throws a "PHPDoc type array<int, string> of property App\Models\User::$hidden is not covariant with PHPDoc type list<string> of  property Illuminate\Database\Eloquent\Model::$hidden" error
2024-11-18 08:18:13 -06:00
Andrew Brown 091aa7d882 switch email to a primary key (#6064)
switching from a normal index here to a primary index works the same except for adding a `UNIQUE` constraint.

The `DatabaseTokenRepository` deletes existing records with an email first, before creating a new one, so this additional constraint will be okay.

https://github.com/laravel/framework/blob/9.x/src/Illuminate/Auth/Passwords/DatabaseTokenRepository.php#L88
2023-01-02 08:45:35 -06:00
Andrew Brown 38bc9119eb type hint the middleware Request (#5438)
stemming from https://github.com/laravel/framework/pull/34224
2020-10-02 08:31:13 -05:00
Andrew Brown d7f67f631d styling 2020-02-05 10:48:51 -06:00
Andrew Brown 153746c2c1 add links option to filesystems config
https://github.com/laravel/framework/pull/31355
2020-02-05 10:33:45 -06:00
Andrew Brown 678901cc4d update name 2020-01-23 10:40:45 -06:00
Andrew Brown 2fe113e606 add new check_compiled option 2020-01-23 10:27:12 -06:00
Andrew 283413b256 update handler
remove comment suggesting to send reports to bug trackers in this method
2018-03-24 03:12:17 -05:00
Andrew d771ee6c8a add queue prefix value
this PR goes along with https://github.com/laravel/framework/pull/18860
2017-04-20 15:31:39 -05:00
Andrew 037769e1aa remove leading slash
requested by project maintainer
2015-07-07 15:44:15 -05:00
Andrew 7bb1326535 type hint faker generator
allow IDE to help with autocompletion
2015-07-07 14:47:02 -05:00
Andrew 695b3ef28d ignore maintenance mode down file 2015-04-23 00:46:16 -05:00