update patch 1
This commit is contained in:
+45
-1
@@ -1,6 +1,50 @@
|
||||
# Release Notes for 11.x
|
||||
|
||||
## [Unreleased](https://github.com/laravel/framework/compare/v11.33.2...11.x)
|
||||
## [Unreleased](https://github.com/laravel/framework/compare/v11.34.1...11.x)
|
||||
|
||||
## [v11.34.1](https://github.com/laravel/framework/compare/v11.34.0...v11.34.1) - 2024-11-26
|
||||
|
||||
* Configure cloud log socket by [@taylorotwell](https://github.com/taylorotwell) in https://github.com/laravel/framework/pull/53666
|
||||
|
||||
## [v11.34.0](https://github.com/laravel/framework/compare/v11.33.2...v11.34.0) - 2024-11-26
|
||||
|
||||
* [10.x] Fix append and prepend batch to chain by [@Bencute](https://github.com/Bencute) in https://github.com/laravel/framework/pull/53455
|
||||
* [11.x] Allow `BackedEnum` when using `fromRoute()` in `MakesHttpRequests` by [@wietsewarendorff](https://github.com/wietsewarendorff) in https://github.com/laravel/framework/pull/53593
|
||||
* [11.x] Test Improvements by [@crynobone](https://github.com/crynobone) in https://github.com/laravel/framework/pull/53586
|
||||
* [11.x] Move `$ownerKey` check for `null` to `MorphTo` as `BelongsTo` relationship will always return a `string` by [@crynobone](https://github.com/crynobone) in https://github.com/laravel/framework/pull/53592
|
||||
* Unset eloquent model's cached cast attribute by [@adamthehutt](https://github.com/adamthehutt) in https://github.com/laravel/framework/pull/53583
|
||||
* [11.x] Add non-static JsonResource wrapping by [@SanderMuller](https://github.com/SanderMuller) in https://github.com/laravel/framework/pull/53543
|
||||
* [10.x] PHP 8.4 Code Compatibility by [@crynobone](https://github.com/crynobone) in https://github.com/laravel/framework/pull/53612
|
||||
* Add assertCount() for fake storage by [@ahmadreza1383](https://github.com/ahmadreza1383) in https://github.com/laravel/framework/pull/53620
|
||||
* Fix Paginator __construct parameter typehint for phpstan by [@Afrowson](https://github.com/Afrowson) in https://github.com/laravel/framework/pull/53615
|
||||
* [11.x] Add generics for Arr::last() by [@talkinnl](https://github.com/talkinnl) in https://github.com/laravel/framework/pull/53619
|
||||
* Add typed closure to bootstrappers in console application by [@MatusBoa](https://github.com/MatusBoa) in https://github.com/laravel/framework/pull/53613
|
||||
* refactor: Some minor performance & readability enhancements by [@dshafik](https://github.com/dshafik) in https://github.com/laravel/framework/pull/53596
|
||||
* [11.x] Improve doc blocks for interacting with enum inputs by [@axlon](https://github.com/axlon) in https://github.com/laravel/framework/pull/53625
|
||||
* [11.x] Skip object construction if no rebound callbacks are set by [@axlon](https://github.com/axlon) in https://github.com/laravel/framework/pull/53502
|
||||
* Make the bearerToken method case-insensitive by [@samtlewis](https://github.com/samtlewis) in https://github.com/laravel/framework/pull/53627
|
||||
* [11.x] Fix attribute inheritance for nested scheduled groups by [@istiak-tridip](https://github.com/istiak-tridip) in https://github.com/laravel/framework/pull/53626
|
||||
* [11.x] Supports PHP 8.4 by [@crynobone](https://github.com/crynobone) in https://github.com/laravel/framework/pull/53468
|
||||
* ☁️ by [@taylorotwell](https://github.com/taylorotwell) in https://github.com/laravel/framework/pull/53623
|
||||
* [11.x] Fix typo in docblock by [@stancl](https://github.com/stancl) in https://github.com/laravel/framework/pull/53636
|
||||
* Add Number::spellOrdinal() to spell ordinals as words. by [@joelstein](https://github.com/joelstein) in https://github.com/laravel/framework/pull/53661
|
||||
* [11.x] Add PausePrompt fallback by [@jwpage](https://github.com/jwpage) in https://github.com/laravel/framework/pull/53660
|
||||
* [11.x] Fix `SyntaxError` on Vite prefetch with empty assets by [@jnoordsij](https://github.com/jnoordsij) in https://github.com/laravel/framework/pull/53659
|
||||
* [11.x] Improved `class-string` types by [@timacdonald](https://github.com/timacdonald) in https://github.com/laravel/framework/pull/53657
|
||||
* [11.x] Use `never` type for methods that always throws by [@tamiroh](https://github.com/tamiroh) in https://github.com/laravel/framework/pull/53643
|
||||
* [11.x] Adds conditional to routes by [@Boorinio](https://github.com/Boorinio) in https://github.com/laravel/framework/pull/53654
|
||||
* [11.x] Make `withoutDefer` also return `$this` by [@tamiroh](https://github.com/tamiroh) in https://github.com/laravel/framework/pull/53644
|
||||
* Add shorthands for fake HTTP responses by [@jasonmccreary](https://github.com/jasonmccreary) in https://github.com/laravel/framework/pull/53663
|
||||
* Use the environment method instead of the isLocal method by [@NaokiTsuchiya](https://github.com/NaokiTsuchiya) in https://github.com/laravel/framework/pull/53638
|
||||
* [11.x] Fix: Ensure generated policies return boolean values by [@Aluisio-Pires](https://github.com/Aluisio-Pires) in https://github.com/laravel/framework/pull/53632
|
||||
* Bus assertempty by [@jasonmccreary](https://github.com/jasonmccreary) in https://github.com/laravel/framework/pull/53664
|
||||
* [11.x] Improve schedule group behaviors by [@istiak-tridip](https://github.com/istiak-tridip) in https://github.com/laravel/framework/pull/53641
|
||||
* [11.x] Add `Request::fluent` method by [@stevebauman](https://github.com/stevebauman) in https://github.com/laravel/framework/pull/53662
|
||||
* [11.x] Support named in-memory SQLite connections by [@stancl](https://github.com/stancl) in https://github.com/laravel/framework/pull/53635
|
||||
* event name & listener callback types by [@rudiedirkx](https://github.com/rudiedirkx) in https://github.com/laravel/framework/pull/53642
|
||||
* Test cleanup from #53664 by [@jasonmccreary](https://github.com/jasonmccreary) in https://github.com/laravel/framework/pull/53672
|
||||
* [11.x] Fix: Prevent invalid AWS credentials options being created by [@robchett](https://github.com/robchett) in https://github.com/laravel/framework/pull/53633
|
||||
* [11.x] Expand `Support\Fluent` data access and transformation capabilities by [@stevebauman](https://github.com/stevebauman) in https://github.com/laravel/framework/pull/53665
|
||||
|
||||
## [v11.33.2](https://github.com/laravel/framework/compare/v11.33.1...v11.33.2) - 2024-11-19
|
||||
|
||||
|
||||
@@ -494,7 +494,7 @@ class Collection implements ArrayAccess, CanBeEscapedWhenCastToString, Enumerabl
|
||||
*
|
||||
* @param (callable(TValue, TKey): TGroupKey)|array|string $groupBy
|
||||
* @param bool $preserveKeys
|
||||
* @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), TValue>>
|
||||
* @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), ($groupBy is array ? mixed : TValue)>>
|
||||
*/
|
||||
public function groupBy($groupBy, $preserveKeys = false)
|
||||
{
|
||||
|
||||
@@ -522,7 +522,7 @@ interface Enumerable extends Arrayable, Countable, IteratorAggregate, Jsonable,
|
||||
*
|
||||
* @param (callable(TValue, TKey): TGroupKey)|array|string $groupBy
|
||||
* @param bool $preserveKeys
|
||||
* @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), TValue>>
|
||||
* @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), ($groupBy is array ? mixed : TValue)>>
|
||||
*/
|
||||
public function groupBy($groupBy, $preserveKeys = false);
|
||||
|
||||
|
||||
@@ -552,7 +552,7 @@ class LazyCollection implements CanBeEscapedWhenCastToString, Enumerable
|
||||
*
|
||||
* @param (callable(TValue, TKey): TGroupKey)|array|string $groupBy
|
||||
* @param bool $preserveKeys
|
||||
* @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), TValue>>
|
||||
* @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), ($groupBy is array ? mixed : TValue)>>
|
||||
*/
|
||||
public function groupBy($groupBy, $preserveKeys = false)
|
||||
{
|
||||
|
||||
@@ -59,13 +59,6 @@ class Event
|
||||
*/
|
||||
protected $afterCallbacks = [];
|
||||
|
||||
/**
|
||||
* The human readable description of the event.
|
||||
*
|
||||
* @var string|null
|
||||
*/
|
||||
public $description;
|
||||
|
||||
/**
|
||||
* The event mutex implementation.
|
||||
*
|
||||
@@ -730,30 +723,6 @@ class Event
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the human-friendly description of the event.
|
||||
*
|
||||
* @param string $description
|
||||
* @return $this
|
||||
*/
|
||||
public function name($description)
|
||||
{
|
||||
return $this->description($description);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the human-friendly description of the event.
|
||||
*
|
||||
* @param string $description
|
||||
* @return $this
|
||||
*/
|
||||
public function description($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the summary of the event for display.
|
||||
*
|
||||
|
||||
+31
@@ -90,6 +90,13 @@ trait ManagesAttributes
|
||||
*/
|
||||
protected $rejects = [];
|
||||
|
||||
/**
|
||||
* The human readable description of the event.
|
||||
*
|
||||
* @var string|null
|
||||
*/
|
||||
public $description;
|
||||
|
||||
/**
|
||||
* Set which user the command should run as.
|
||||
*
|
||||
@@ -199,4 +206,28 @@ trait ManagesAttributes
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the human-friendly description of the event.
|
||||
*
|
||||
* @param string $description
|
||||
* @return $this
|
||||
*/
|
||||
public function name($description)
|
||||
{
|
||||
return $this->description($description);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the human-friendly description of the event.
|
||||
*
|
||||
* @param string $description
|
||||
* @return $this
|
||||
*/
|
||||
public function description($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
+4
@@ -42,6 +42,10 @@ class PendingEventAttributes
|
||||
$event->expression = $this->expression;
|
||||
$event->repeatSeconds = $this->repeatSeconds;
|
||||
|
||||
if ($this->description !== null) {
|
||||
$event->name($this->description);
|
||||
}
|
||||
|
||||
if ($this->timezone !== null) {
|
||||
$event->timezone($this->timezone);
|
||||
}
|
||||
|
||||
@@ -184,7 +184,7 @@ class Schedule
|
||||
: $job::class;
|
||||
}
|
||||
|
||||
return $this->call(function () use ($job, $queue, $connection) {
|
||||
return $this->name($jobName)->call(function () use ($job, $queue, $connection) {
|
||||
$job = is_string($job) ? Container::getInstance()->make($job) : $job;
|
||||
|
||||
if ($job instanceof ShouldQueue) {
|
||||
@@ -192,7 +192,7 @@ class Schedule
|
||||
} else {
|
||||
$this->dispatchNow($job);
|
||||
}
|
||||
})->name($jobName);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -45,7 +45,7 @@ class Application extends Container implements ApplicationContract, CachesConfig
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const VERSION = '11.34.0';
|
||||
const VERSION = '11.34.2';
|
||||
|
||||
/**
|
||||
* The base path for the Laravel installation.
|
||||
|
||||
+25
@@ -8,7 +8,9 @@ use Illuminate\Contracts\Debug\ExceptionHandler;
|
||||
use Illuminate\Contracts\Foundation\Application;
|
||||
use Illuminate\Log\LogManager;
|
||||
use Illuminate\Support\Env;
|
||||
use Monolog\Formatter\JsonFormatter;
|
||||
use Monolog\Handler\NullHandler;
|
||||
use Monolog\Handler\SocketHandler;
|
||||
use PHPUnit\Runner\ErrorHandler;
|
||||
use Symfony\Component\Console\Output\ConsoleOutput;
|
||||
use Symfony\Component\ErrorHandler\Error\FatalError;
|
||||
@@ -53,6 +55,10 @@ class HandleExceptions
|
||||
if (! $app->environment('testing')) {
|
||||
ini_set('display_errors', 'Off');
|
||||
}
|
||||
|
||||
if (laravel_cloud()) {
|
||||
$this->configureCloudSocketLogChannel($app);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -245,6 +251,25 @@ class HandleExceptions
|
||||
return new FatalError($error['message'], 0, $error, $traceOffset);
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure the Laravel Cloud socket log channel.
|
||||
*
|
||||
* @param \Illuminate\Contracts\Foundation\Application $app
|
||||
* @return void
|
||||
*/
|
||||
protected function configureCloudSocketLogChannel(Application $app)
|
||||
{
|
||||
$app['config']->set('logging.channels.laravel-cloud-socket', [
|
||||
'driver' => 'monolog',
|
||||
'handler' => SocketHandler::class,
|
||||
'formatter' => JsonFormatter::class,
|
||||
'with' => [
|
||||
'connectionString' => $_ENV['LARAVEL_CLOUD_LOG_SOCKET'] ?? '127.0.0.1:8765',
|
||||
'persistent' => true,
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Forward a method call to the given method if an application instance exists.
|
||||
*
|
||||
|
||||
@@ -42,13 +42,6 @@ class JsonResource implements ArrayAccess, JsonSerializable, Responsable, UrlRou
|
||||
*/
|
||||
public $additional = [];
|
||||
|
||||
/**
|
||||
* The instance level wrapper configured for the resource.
|
||||
*
|
||||
* @var string|null
|
||||
*/
|
||||
public $wrapper = null;
|
||||
|
||||
/**
|
||||
* The "data" wrapper that should be applied.
|
||||
*
|
||||
@@ -65,8 +58,6 @@ class JsonResource implements ArrayAccess, JsonSerializable, Responsable, UrlRou
|
||||
public function __construct($resource)
|
||||
{
|
||||
$this->resource = $resource;
|
||||
|
||||
$this->withWrapper(static::$wrap);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -209,29 +200,6 @@ class JsonResource implements ArrayAccess, JsonSerializable, Responsable, UrlRou
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the string that should wrap the outer-most resource array.
|
||||
*
|
||||
* @param string|null $value
|
||||
* @return $this
|
||||
*/
|
||||
public function withWrapper(?string $value)
|
||||
{
|
||||
$this->wrapper = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable wrapping of the outer-most resource array.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function withoutWrapper()
|
||||
{
|
||||
return $this->withWrapper(null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the string that should wrap the outer-most resource array.
|
||||
*
|
||||
|
||||
+2
-4
@@ -102,13 +102,11 @@ class ResourceResponse implements Responsable
|
||||
/**
|
||||
* Get the default data wrapper for the resource.
|
||||
*
|
||||
* @return string|null
|
||||
* @return string
|
||||
*/
|
||||
protected function wrapper()
|
||||
{
|
||||
return $this->resource instanceof JsonResource
|
||||
? $this->resource->wrapper
|
||||
: get_class($this->resource)::$wrap;
|
||||
return get_class($this->resource)::$wrap;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -70,12 +70,12 @@ class ResendTransport extends AbstractTransport
|
||||
|
||||
if ($email->getAttachments()) {
|
||||
foreach ($email->getAttachments() as $attachment) {
|
||||
$headers = $attachment->getPreparedHeaders();
|
||||
$attachmentHeaders = $attachment->getPreparedHeaders();
|
||||
|
||||
$filename = $headers->getHeaderParameter('Content-Disposition', 'filename');
|
||||
$filename = $attachmentHeaders->getHeaderParameter('Content-Disposition', 'filename');
|
||||
|
||||
$item = [
|
||||
'content_type' => $headers->get('Content-Type')->getBody(),
|
||||
'content_type' => $attachmentHeaders->get('Content-Type')->getBody(),
|
||||
'content' => str_replace("\r\n", '', $attachment->bodyToString()),
|
||||
'filename' => $filename,
|
||||
];
|
||||
|
||||
@@ -29,6 +29,8 @@ use Illuminate\Console\Scheduling\Schedule as ConsoleSchedule;
|
||||
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes runInBackground()
|
||||
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes when(\Closure|bool $callback)
|
||||
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes skip(\Closure|bool $callback)
|
||||
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes name(string $description)
|
||||
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes description(string $description)
|
||||
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes cron(string $expression)
|
||||
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes between(string $startTime, string $endTime)
|
||||
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes unlessBetween(string $startTime, string $endTime)
|
||||
|
||||
Reference in New Issue
Block a user