Setting this to an empty string by default overrides the default behaviour of using APP_NAME in the cache config file, this leads to unintended consequences if this has been blindly copied into the app's main .env file without setting a value
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
* feat: add type hints for $app in artisan and public/index.php
Added PHPDoc type hints for the $app variable to improve static analysis
support in PHPStan and PHPStorm. This prevents tools from incorrectly
flagging the variable and enhances developer experience.
No functional changes; only improves code readability and IDE support.
* Update artisan
* Update index.php
---------
Co-authored-by: Taylor Otwell <taylor@laravel.com>
* Preserve X-Xsrf-Token header from .htaccess
Preserve X-Xsrf-Token header for session based authentication when building API in Laravel
* Update .htaccess
* Update .htaccess
---------
Co-authored-by: Taylor Otwell <taylor@laravel.com>
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
This PR does two things...
First, it adds a basic Tailwind configuration out of the box. This lets you start using Tailwind immediately without installing any starter kit. Useful if you just want to mess around or build things from scratch.
Second, it adds a composer run dev script, which starts php artisan serve, php artisan queue:listen --tries=1, php artisan pail (now a dev dependency by default), and npm run dev all in one command, with color coded output in the terminal using concurrently.