Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.x] Add config create command #40221

Closed
wants to merge 403 commits into from

Conversation

otilor
Copy link

@otilor otilor commented Jan 1, 2022

driesvints and others added 30 commits February 15, 2021 10:01
…ound (laravel#36407)

* [9.x] Fixing the Error : Class "League\Flysystem\Adapter\Local" not found

This is related to the new Flysystem v2 (Check the PR laravel#33612)

* Update VendorPublishCommand.php
# Conflicts:
#	CHANGELOG-6.x.md
#	src/Illuminate/Foundation/Application.php
# Conflicts:
#	src/Illuminate/Filesystem/FilesystemAdapter.php
#	src/Illuminate/Foundation/Application.php
* Update to EmailValidator v3

* Return null
Co-authored-by: Taylor Otwell <taylor@laravel.com>
# Conflicts:
#	CHANGELOG-6.x.md
#	CHANGELOG-8.x.md
# Conflicts:
#	CHANGELOG-8.x.md
#	src/Illuminate/Filesystem/FilesystemAdapter.php
#	src/Illuminate/Foundation/Application.php
#	src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php
#	src/Illuminate/Support/Str.php
#	tests/Support/SupportCollectionTest.php
* Add key option to $request->validated()

Co-authored-by: mattstauffer <matt@tighten.co>

* Make FoundationFormRequestTest method names consistent

Co-authored-by: mattstauffer <matt@tighten.co>
- Move JSON related functions from query grammar to base grammar
- Add JSON wrap functions to schema grammar
- Add JSON support for MySQL and SQLite for virtualAs and storedAs columns
* Added CarbonPeriod value type to Query\Builder->whereBetween

* Removed CarbonPeriod typehint and replaced it with native iterable type
nunomaduro and others added 28 commits December 10, 2021 07:05
* support x-forwarded-prefix

* fix TrustProxies code style

* test x-forwarded-prefix in TrustProxiesTest
* Allows to remove the `server.php` file

* Apply fixes from StyleCI

Co-authored-by: Taylor Otwell <taylorotwell@users.noreply.github.com>
…sages for size rules (laravel#40074)

* fix array to string conversion when using custom validation messages for size rules

* ci fixes

* remove missing comment

* formatting

Co-authored-by: Taylor Otwell <taylor@laravel.com>
# Conflicts:
#	CHANGELOG-8.x.md
#	composer.json
#	src/Illuminate/Broadcasting/composer.json
#	src/Illuminate/Foundation/Application.php
#	src/Illuminate/Mail/composer.json
* PSR Log v3

* Apply fixes from StyleCI

* Re-add support for psr/log v2

* formatting

Co-authored-by: Taylor Otwell <taylorotwell@users.noreply.github.com>
Co-authored-by: Taylor Otwell <taylor@laravel.com>
…uestExceptions (laravel#40079)

* Update PendingRequest.php

* Update Factory.php

* Update HttpClientTest.php
* chore (maintenance): move maintenance mode logic

Moving the maintenance mode logic to its own class. This enables users to extend/overwrite the class with their own logic.

Overwriting the logic may be needed if for example the application is running on multiple servers.

Fixes laravel#36474

* refactor (maintenance): add isUp method

Adding the isUp method to check if the application is up or is down for maintenance.

Relates to laravel#36474

* doc (maintenance): document code

Extend the documentation about what the code does. Also use FQN.

Relates to laravel#36474

* fix (maintenance): correctly check if in maintenance

Relates to laravel#36474

* refactor (maintenance): use make method

Use the make method instead of the app function to retrieve an instance of the MaintenanceMode container.

Relates to laravel#36474

* doc (maintenance): update docblock

Update the docblock with the newly added method param.

Relates to laravel#36474

* doc (maintenance): update docblock

Update the docblock with the newly added method param.

Relates to laravel#36474

* style (doc): update documentation style

Updating documentation style to comply to the style used within the Laravel codebase.

* style (doc): update documentation style

Updating documentation style to comply to the style used within the Laravel codebase.

* refactor (maintenance): change namespace

Move the class from its own namespace to the Foundation namespace.

Relates to laravel#36474

* style (doc): update documentation style

Updating documentation style to comply to the style used within the Laravel codebase.

* style (doc): update documentation style

Updating documentation style to comply to the style used within the Laravel codebase.

* Update src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php

Co-authored-by: Dries Vints <dries@vints.io>

* Update src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php

Co-authored-by: Dries Vints <dries@vints.io>

* refactor (maintenance): move to application

Create an application methode to retrieve the MaintenanceMode instance. This method reduces the need to fetch the MaintenanceMode with the usage of an additional argument in the middleware.

Relates to laravel#36474

* doc (maintenance): add DockBlock

Adding documentation for the newly added methods.

Relates to laravel#36474

* refactor (maintenance): use application method

Use the application method instead of using autowiring. The application method provides the MaintenanceMode instance which removes the requirement to inject the class in the handler method.

Relates to laravel#36474

* Update src/Illuminate/Foundation/MaintenanceMode.php

Co-authored-by: Dries Vints <dries@vints.io>

* Update src/Illuminate/Foundation/MaintenanceMode.php

Co-authored-by: Dries Vints <dries@vints.io>

* refactor (maintenance): remove comparison

Remove the comparison with the false value. The method always returns a bool which only allows a true or false return value. This make the comparison redundant.

Relates to laravel#36474

* chore (code): remove unused import

Remove the unused import. Because the FQN is used in the DocBlock the import has become redundant.

* refactor (maintenance): add interface

Add an interface under the contracts to enable developers to easily extend the MaintenanceMode class.

* style (doc): update documentation style

Updating documentation style to comply to the style used within the Laravel codebase.

* refactor (maintenance): bind instance to contract

Bind the default MaintenanceMode class to the contract reference in the service container.

This enables users to set-up their own contract binding to overwrite the default Maintenance Mode behavior.

* style (doc): update documentation style

Updating documentation style to comply to the style used within the Laravel codebase.

* Update src/Illuminate/Foundation/Providers/FoundationServiceProvider.php

Co-authored-by: Choraimy Kroonstuiver <3661474+axlon@users.noreply.github.com>

* formatting and renaming

Co-authored-by: Wim Ulkeman <wulkeman@assuradeurengilde.nl>
Co-authored-by: Dries Vints <dries@vints.io>
Co-authored-by: Choraimy Kroonstuiver <3661474+axlon@users.noreply.github.com>
Co-authored-by: Taylor Otwell <taylor@laravel.com>
* Allows to remove core class `app.aliases` from the skeleton

* Removes `Redis` alias

* Merges configurations

* Reverts changes on Register Facades

* Adds `Facade::defaultAliases`

* Apply fixes from StyleCI

Co-authored-by: Taylor Otwell <taylorotwell@users.noreply.github.com>
* Allows to remove core class `app.aliases` from the skeleton

* Removes `Redis` alias

* Merges configurations

* Reverts changes on Register Facades

* Adds `Facade::defaultAliases`

* Apply fixes from StyleCI

Co-authored-by: Taylor Otwell <taylorotwell@users.noreply.github.com>
* Add cache based maintenance mode support

* Add a maintenance mode driver manager

* Fix code style

* formatting

Co-authored-by: Taylor Otwell <taylor@laravel.com>
* Used `str_contains` instead of `strpos`.

* Used `str_contains` instead of `strpos`.
@otilor otilor closed this Jan 1, 2022
@otilor otilor deleted the add-config-create-command branch January 1, 2022 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet