Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion CHANGELOG-8.x.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
# Release Notes for 8.x

## [Unreleased](https://github.com/laravel/framework/compare/v8.30.1...8.x)
## [Unreleased](https://github.com/laravel/framework/compare/v8.32.1...8.x)


## [v8.32.1 (2021-03-09)](https://github.com/laravel/framework/compare/v8.32.0...v8.32.1)

### Changed
- Changed `Illuminate\Queue\Middleware\ThrottlesExceptions` ([b8a70e9](https://github.com/laravel/framework/commit/b8a70e9a3685871ed46a24fc03c0267849d2d7c8))


## [v8.32.0 (2021-03-09)](https://github.com/laravel/framework/compare/v8.31.0...v8.32.0)

Added
- Phpredis lock serialization and compression support ([#36412](https://github.com/laravel/framework/pull/36412), [10f1a93](https://github.com/laravel/framework/commit/10f1a935205340ba8954e7075c1d9b67943db27d))
- Added Fluent JSON Assertions ([#36454](https://github.com/laravel/framework/pull/36454))
- Added methods to dump requests of the Laravel HTTP client ([#36466](https://github.com/laravel/framework/pull/36466))
- Added `ThrottlesExceptions` and `ThrottlesExceptionsWithRedis` job middlewares for unstable services ([#36473](https://github.com/laravel/framework/pull/36473), [21fee76](https://github.com/laravel/framework/commit/21fee7649e1b48a7701b8ba860218741c2c3bcef), [36518](https://github.com/laravel/framework/pull/36518), [37e48ba](https://github.com/laravel/framework/commit/37e48ba864e2f463517429d41cefd94e88136c1c))
- Added support to Eloquent Collection on `Model::destroy()` ([#36497](https://github.com/laravel/framework/pull/36497))
- Added `rest` option to `php artisan queue:work` command ([#36521](https://github.com/laravel/framework/pull/36521), [c6ea49c](https://github.com/laravel/framework/commit/c6ea49c80a2ac93aebb8fdf2360161b73cec26af))
- Added `prohibited_if` and `prohibited_unless` validation rules ([#36516](https://github.com/laravel/framework/pull/36516))
- Added class `argument` to `Illuminate\Database\Console\Seeds\SeedCommand` ([#36513](https://github.com/laravel/framework/pull/36513))

### Fixed
- Fix validator treating null as true for (required|exclude)_(if|unless) due to loose `in_array()` check ([#36504](https://github.com/laravel/framework/pull/36504))

### Changed
- Delete existing links that are broken in `Illuminate\Foundation\Console\StorageLinkCommand` ([#36470](https://github.com/laravel/framework/pull/36470))
- Use user provided url in AwsTemporaryUrl method ([#36480](https://github.com/laravel/framework/pull/36480))
- Allow to override discover events base path ([#36515](https://github.com/laravel/framework/pull/36515))


## [v8.31.0 (2021-03-04)](https://github.com/laravel/framework/compare/v8.30.1...v8.31.0)

### Added
- Added new `VendorTagPublished` event ([#36458](https://github.com/laravel/framework/pull/36458))
- Added new `Stringable::test()` method ([#36462](https://github.com/laravel/framework/pull/36462))

### Reverted
- Reverted [Fixed `formatWheres()` methods in `DatabaseRule`](https://github.com/laravel/framework/pull/36441) ([#36452](https://github.com/laravel/framework/pull/36452))

### Changed
- Make user policy command fix (Windows) ([#36464](https://github.com/laravel/framework/pull/36464))


## [v8.30.1 (2021-03-03)](https://github.com/laravel/framework/compare/v8.30.0...v8.30.1)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Casts/AsArrayObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static function castUsing(array $arguments)
return new class implements CastsAttributes {
public function get($model, $key, $value, $attributes)
{
return new ArrayObject(json_decode($attributes[$key], true));
return isset($attributes[$key]) ? new ArrayObject(json_decode($attributes[$key], true)) : null;
}

public function set($model, $key, $value, $attributes)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Casts/AsCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static function castUsing(array $arguments)
return new class implements CastsAttributes {
public function get($model, $key, $value, $attributes)
{
return new Collection(json_decode($attributes[$key], true));
return isset($attributes[$key]) ? new Collection(json_decode($attributes[$key], true)) : null;
}

public function set($model, $key, $value, $attributes)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function map($from, $to = null)
* @param string $class
* @return $this
*/
protected function ignore(string $class)
public function ignore(string $class)
{
$this->dontReport[] = $class;

Expand Down