language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Foundation/Console/ServeCommand.php | @@ -149,7 +149,7 @@ protected function port()
}
/**
- * Check if command has reached its max amount of port tries.
+ * Check if the command has reached its max amount of port tries.
*
* @return bool
*/ | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Foundation/Http/Kernel.php | @@ -254,7 +254,7 @@ public function hasMiddleware($middleware)
}
/**
- * Add a new middleware to beginning of the stack if it does not already exist.
+ * Add a new middleware to the beginning of the stack if it does not already exist.
*
* @param string $middleware
* @return $this | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Http/Resources/Json/JsonResource.php | @@ -69,7 +69,7 @@ public static function make(...$parameters)
}
/**
- * Create new anonymous resource collection.
+ * Create a new anonymous resource collection.
*
* @param mixed $resource
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Http/Resources/MergeValue.php | @@ -15,7 +15,7 @@ class MergeValue
public $data;
/**
- * Create new merge value instance.
+ * Create a new merge value instance.
*
* @param \Illuminate\Support\Collection|\JsonSerializable|array $data
* @return void | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Mail/SendQueuedMailable.php | @@ -89,7 +89,7 @@ public function failed($e)
}
/**
- * Get number of seconds before a released mailable will be available.
+ * Get the number of seconds before a released mailable will be available.
*
* @return mixed
*/ | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Notifications/SendQueuedNotifications.php | @@ -128,7 +128,7 @@ public function failed($e)
}
/**
- * Get number of seconds before a released notification will be available.
+ * Get the number of seconds before a released notification will be available.
*
* @return mixed
*/ | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Pagination/AbstractPaginator.php | @@ -739,7 +739,7 @@ public function __call($method, $parameters)
}
/**
- * Render the contents of the paginator when casting to string.
+ * Render the contents of the paginator when casting to a string.
*
* @return string
*/ | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Queue/Middleware/RateLimited.php | @@ -99,7 +99,7 @@ protected function handleJob($job, $next, array $limits)
}
/**
- * Do not release the job back to the queue if limit is exceeded.
+ * Do not release the job back to the queue if the limit is exceeded.
*
* @return $this
*/ | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Queue/WorkerOptions.php | @@ -54,7 +54,7 @@ class WorkerOptions
public $force;
/**
- * Indicates if the worker should stop when queue is empty.
+ * Indicates if the worker should stop when the queue is empty.
*
* @var bool
*/ | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Redis/Connections/PhpRedisConnection.php | @@ -71,7 +71,7 @@ public function mget(array $keys)
}
/**
- * Set the string value in argument as value of the key.
+ * Set the string value in the argument as the value of the key.
*
* @param string $key
* @param mixed $value
@@ -556,7 +556,7 @@ public function disconnect()
}
/**
- * Apply prefix to the given key if necessary.
+ * Apply a prefix to the given key if necessary.
*
* @param string $key
* @return string | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Redis/Connectors/PhpRedisConnector.php | @@ -50,7 +50,7 @@ public function connectToCluster(array $config, array $clusterOptions, array $op
}
/**
- * Build a single cluster seed string from array.
+ * Build a single cluster seed string from an array.
*
* @param array $server
* @return string | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Routing/Console/ControllerMakeCommand.php | @@ -86,7 +86,7 @@ protected function getDefaultNamespace($rootNamespace)
/**
* Build the class with the given name.
*
- * Remove the base controller import if we are already in base namespace.
+ * Remove the base controller import if we are already in the base namespace.
*
* @param string $name
* @return string | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Support/DateFactory.php | @@ -217,7 +217,7 @@ public function __call($method, $parameters)
return $dateClass::$method(...$parameters);
}
- // If that fails, create the date with the default class..
+ // If that fails, create the date with the default class...
$date = $defaultClassName::$method(...$parameters);
// If the configured class has an "instance" method, we'll try to pass our date into there... | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Support/Str.php | @@ -696,7 +696,7 @@ public static function studly($value)
}
/**
- * Returns the portion of string specified by the start and length parameters.
+ * Returns the portion of the string specified by the start and length parameters.
*
* @param string $string
* @param int $start | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Support/Stringable.php | @@ -607,7 +607,7 @@ public function studly()
}
/**
- * Returns the portion of string specified by the start and length parameters.
+ * Returns the portion of the string specified by the start and length parameters.
*
* @param int $start
* @param int|null $length | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Testing/PendingCommand.php | @@ -52,7 +52,7 @@ class PendingCommand
protected $expectedExitCode;
/**
- * Determine if command has executed.
+ * Determine if the command has executed.
*
* @var bool
*/ | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Validation/Concerns/FormatsMessages.php | @@ -116,7 +116,7 @@ protected function getFromLocalArray($attribute, $lowerRule, $source = null)
}
/**
- * Get the custom error message from translator.
+ * Get the custom error message from the translator.
*
* @param string $key
* @return string | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Validation/ValidationData.php | @@ -8,7 +8,7 @@
class ValidationData
{
/**
- * Initialize and gather data for given attribute.
+ * Initialize and gather data for the given attribute.
*
* @param string $attribute
* @param array $masterData | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/View/Compilers/BladeCompiler.php | @@ -100,7 +100,7 @@ class BladeCompiler extends Compiler implements CompilerInterface
protected $echoFormat = 'e(%s)';
/**
- * Array of footer lines to be added to template.
+ * Array of footer lines to be added to the template.
*
* @var array
*/ | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/View/Compilers/ComponentTagCompiler.php | @@ -48,7 +48,7 @@ class ComponentTagCompiler
protected $boundAttributes = [];
/**
- * Create new component tag compiler.
+ * Create a new component tag compiler.
*
* @param array $aliases
* @param array $namespaces | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php | @@ -7,7 +7,7 @@
trait CompilesConditionals
{
/**
- * Identifier for the first case in switch statement.
+ * Identifier for the first case in the switch statement.
*
* @var bool
*/ | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/View/Concerns/ManagesLayouts.php | @@ -175,7 +175,7 @@ public static function parentPlaceholder($section = '')
}
/**
- * Check if section exists.
+ * Check if the section exists.
*
* @param string $name
* @return bool | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | tests/Foundation/Testing/WormholeTest.php | @@ -11,17 +11,17 @@ class WormholeTest extends TestCase
{
public function testCanTravelBackToPresent()
{
- // Preserve the timelines we want to compare the reality with..
+ // Preserve the timelines we want to compare the reality with...
$present = now();
$future = now()->addDays(10);
- // Travel in time..
+ // Travel in time...
(new Wormhole(10))->days();
- // Assert we are now in the future..
+ // Assert we are now in the future...
$this->assertEquals($future->format('Y-m-d'), now()->format('Y-m-d'));
- // Assert we can go back to the present..
+ // Assert we can go back to the present...
$this->assertEquals($present->format('Y-m-d'), Wormhole::back()->format('Y-m-d'));
}
| true |
Other | laravel | framework | 6e90f9af9ed752f346c0bdba9cd0ea16ee13d6a8.json | Apply fixes from StyleCI (#36099) | src/Illuminate/Testing/ParallelRunner.php | @@ -149,4 +149,4 @@ protected function createApplication()
return call_user_func($applicationResolver);
}
-}
\ No newline at end of file
+} | false |
Other | laravel | framework | b1381f2d876ba4cec4dbdea84ae0fb6ccce0bb79.json | Remove unused import | src/Illuminate/Support/Stringable.php | @@ -6,7 +6,6 @@
use Illuminate\Support\Traits\Macroable;
use Illuminate\Support\Traits\Tappable;
use JsonSerializable;
-use League\CommonMark\GithubFlavoredMarkdownConverter;
use Symfony\Component\VarDumper\VarDumper;
class Stringable implements JsonSerializable | false |
Other | laravel | framework | a7c1bc22549c4450a6c41c638a37eb54261a573c.json | Fix style issue | src/Illuminate/Routing/Middleware/SubstituteBindings.php | @@ -40,7 +40,7 @@ public function handle($request, Closure $next)
$this->router->substituteImplicitBindings($route);
} catch (ModelNotFoundException $exception) {
- if($route->getMissing()) {
+ if ($route->getMissing()) {
return $route->getMissing()($request);
}
| false |
Other | laravel | framework | 6e79268aa8b0d242ab78a54bce304f0cc7735876.json | Fix PHP 8.0 showing as 8 (#36039) | .github/workflows/tests.yml | @@ -31,7 +31,7 @@ jobs:
strategy:
fail-fast: true
matrix:
- php: [7.2, 7.3, 7.4, 8.0]
+ php: ['7.2', '7.3', '7.4', '8.0']
stability: [prefer-lowest, prefer-stable]
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
@@ -78,7 +78,7 @@ jobs:
strategy:
fail-fast: true
matrix:
- php: [7.2, 7.3, 7.4, 8.0]
+ php: ['7.2', '7.3', '7.4', '8.0']
stability: [prefer-lowest, prefer-stable]
name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - Windows | false |
Other | laravel | framework | e72027960fd4d8ff281938edb4632e13e391b8fd.json | fix bus fake | src/Illuminate/Support/Testing/Fakes/BusFake.php | @@ -201,7 +201,13 @@ public function assertChained(array $expectedChain)
if ($command instanceof Closure) {
[$command, $callback] = [$this->firstClosureParameterType($command), $command];
} elseif (! is_string($command)) {
- $command = get_class($command);
+ $instance = $command;
+
+ $command = get_class($instance);
+
+ $callback = function ($job) use ($instance) {
+ return serialize($this->resetChainPropertiesToDefaults($job)) === serialize($instance);
+ };
}
PHPUnit::assertTrue(
@@ -219,6 +225,22 @@ public function assertChained(array $expectedChain)
: $this->assertDispatchedWithChainOfClasses($command, $expectedChain, $callback);
}
+ /**
+ * Reset the chain properties to their default values on the job.
+ *
+ * @param mixed $job
+ * @return mixed
+ */
+ protected function resetChainPropertiesToDefaults($job)
+ {
+ return tap(clone $job, function ($job) {
+ $job->chainConnection = null;
+ $job->chainQueue = null;
+ $job->chainCatchCallbacks = null;
+ $job->chained = [];
+ });
+ }
+
/**
* Assert if a job was dispatched with an empty chain based on a truth-test callback.
* | false |
Other | laravel | framework | e5f217135464a7de2b11d6e11ca7e5940678ecf9.json | Fix styling issue | src/Illuminate/Routing/Router.php | @@ -671,7 +671,7 @@ protected function runRoute(Request $request, Route $route)
$this->runRouteWithinStack($route, $request)
);
} catch (ModelNotFoundException $exception) {
- if($route->getElse()) {
+ if ($route->getElse()) {
return $route->getElse();
}
| false |
Other | laravel | framework | 7f1138e362c6e124f4e1b327fc14d83eb80fffee.json | make Stringable Tappable | src/Illuminate/Support/Stringable.php | @@ -4,11 +4,12 @@
use Closure;
use Illuminate\Support\Traits\Macroable;
+use Illuminate\Support\Traits\Tappable;
use Symfony\Component\VarDumper\VarDumper;
class Stringable
{
- use Macroable;
+ use Tappable, Macroable;
/**
* The underlying string value. | false |
Other | laravel | framework | 6e6d699b05c2fe9447e26adaf26e154c8063a34d.json | Fix Filesystem type (#35979) | src/Illuminate/Database/PostgresConnection.php | @@ -10,6 +10,7 @@
use Illuminate\Database\Schema\Grammars\PostgresGrammar as SchemaGrammar;
use Illuminate\Database\Schema\PostgresBuilder;
use Illuminate\Database\Schema\PostgresSchemaState;
+use Illuminate\Filesystem\Filesystem;
use PDO;
class PostgresConnection extends Connection
@@ -77,7 +78,7 @@ protected function getDefaultSchemaGrammar()
/**
* Get the schema state for the connection.
*
- * @param \Illuminate\Database\Filesystem|null $files
+ * @param \Illuminate\Filesystem\Filesystem|null $files
* @param callable|null $processFactory
* @return \Illuminate\Database\Schema\PostgresSchemaState
*/ | false |
Other | laravel | framework | c6b8168e6cbbe339fdc3af5ccdded545779965df.json | Add limit bindings for having between + tests. | src/Illuminate/Database/Query/Builder.php | @@ -1791,7 +1791,7 @@ public function havingBetween($column, array $values, $boolean = 'and', $not = f
$this->havings[] = compact('type', 'column', 'values', 'boolean', 'not');
- $this->addBinding($this->cleanBindings($values), 'having');
+ $this->addBinding(array_slice($this->cleanBindings(Arr::flatten($values)), 0, 2), 'having');
return $this;
} | true |
Other | laravel | framework | c6b8168e6cbbe339fdc3af5ccdded545779965df.json | Add limit bindings for having between + tests. | tests/Database/DatabaseQueryBuilderTest.php | @@ -654,6 +654,16 @@ public function testWhereBetweens()
$this->assertSame('select * from "users" where "id" between ? and ?', $builder->toSql());
$this->assertEquals([0 => 1, 1 => 2], $builder->getBindings());
+ $builder = $this->getBuilder();
+ $builder->select('*')->from('users')->whereBetween('id', [[1, 2, 3]]);
+ $this->assertSame('select * from "users" where "id" between ? and ?', $builder->toSql());
+ $this->assertEquals([0 => 1, 1 => 2], $builder->getBindings());
+
+ $builder = $this->getBuilder();
+ $builder->select('*')->from('users')->whereBetween('id', [[1], [2, 3]]);
+ $this->assertSame('select * from "users" where "id" between ? and ?', $builder->toSql());
+ $this->assertEquals([0 => 1, 1 => 2], $builder->getBindings());
+
$builder = $this->getBuilder();
$builder->select('*')->from('users')->whereNotBetween('id', [1, 2]);
$this->assertSame('select * from "users" where "id" not between ? and ?', $builder->toSql());
@@ -1172,10 +1182,19 @@ public function testHavings()
$builder = $this->getBuilder();
$builder->select(['category', new Raw('count(*) as "total"')])->from('item')->where('department', '=', 'popular')->groupBy('category')->having('total', '>', 3);
$this->assertSame('select "category", count(*) as "total" from "item" where "department" = ? group by "category" having "total" > ?', $builder->toSql());
+ }
+ public function testHavingBetweens()
+ {
$builder = $this->getBuilder();
- $builder->select('*')->from('users')->havingBetween('last_login_date', ['2018-11-16', '2018-12-16']);
- $this->assertSame('select * from "users" having "last_login_date" between ? and ?', $builder->toSql());
+ $builder->select('*')->from('users')->havingBetween('id', [1, 2, 3]);
+ $this->assertSame('select * from "users" having "id" between ? and ?', $builder->toSql());
+ $this->assertEquals([0 => 1, 1 => 2], $builder->getBindings());
+
+ $builder = $this->getBuilder();
+ $builder->select('*')->from('users')->havingBetween('id', [[1, 2], [3, 4]]);
+ $this->assertSame('select * from "users" having "id" between ? and ?', $builder->toSql());
+ $this->assertEquals([0 => 1, 1 => 2], $builder->getBindings());
}
public function testHavingShortcut() | true |
Other | laravel | framework | 8eaec037421aa9f3860da9d339986448b4c884eb.json | Add JobQueued event
(Follows: https://github.com/laravel/framework/pull/32894) | src/Illuminate/Queue/Events/JobQueued.php | @@ -0,0 +1,29 @@
+<?php
+
+namespace Illuminate\Queue\Events;
+
+class JobQueued
+{
+ /**
+ * @var string|int|null
+ */
+ public $jobId;
+
+ /**
+ * @var string|object
+ */
+ public $job;
+
+ /**
+ * JobQueued constructor.
+ *
+ * @param string|int|null $jobId
+ * @param \Closure|string|object $job
+ * @return void
+ */
+ public function __construct($jobId, $job)
+ {
+ $this->jobId = $jobId;
+ $this->job = $job;
+ }
+} | true |
Other | laravel | framework | 8eaec037421aa9f3860da9d339986448b4c884eb.json | Add JobQueued event
(Follows: https://github.com/laravel/framework/pull/32894) | src/Illuminate/Queue/Queue.php | @@ -7,6 +7,7 @@
use Illuminate\Container\Container;
use Illuminate\Contracts\Encryption\Encrypter;
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
+use Illuminate\Queue\Events\JobQueued;
use Illuminate\Support\Arr;
use Illuminate\Support\InteractsWithTime;
use Illuminate\Support\Str;
@@ -284,13 +285,17 @@ protected function enqueueUsing($job, $payload, $queue, $delay, $callback)
if ($this->shouldDispatchAfterCommit($job) &&
$this->container->bound('db.transactions')) {
return $this->container->make('db.transactions')->addCallback(
- function () use ($payload, $queue, $delay, $callback) {
- return $callback($payload, $queue, $delay);
+ function () use ($payload, $queue, $delay, $callback, $job) {
+ return tap($callback($payload, $queue, $delay), function ($jobId) use ($job) {
+ $this->raiseJobQueuedEvent($jobId, $job);
+ });
}
);
}
- return $callback($payload, $queue, $delay);
+ return tap($callback($payload, $queue, $delay), function ($jobId) use ($job) {
+ $this->raiseJobQueuedEvent($jobId, $job);
+ });
}
/**
@@ -345,4 +350,18 @@ public function setContainer(Container $container)
{
$this->container = $container;
}
+
+ /**
+ * Raise the job queued event.
+ *
+ * @param string|int|null $jobId
+ * @param \Closure|string|object $job
+ * @return void
+ */
+ protected function raiseJobQueuedEvent($jobId, $job)
+ {
+ if ($this->container->bound('events')) {
+ $this->container['events']->dispatch(new JobQueued($jobId, $job));
+ }
+ }
} | true |
Other | laravel | framework | 8eaec037421aa9f3860da9d339986448b4c884eb.json | Add JobQueued event
(Follows: https://github.com/laravel/framework/pull/32894) | tests/Queue/QueueBeanstalkdQueueTest.php | @@ -13,6 +13,16 @@
class QueueBeanstalkdQueueTest extends TestCase
{
+ /**
+ * @var BeanstalkdQueue
+ */
+ private $queue;
+
+ /**
+ * @var Container|m\LegacyMockInterface|m\MockInterface
+ */
+ private $container;
+
protected function tearDown(): void
{
m::close();
@@ -26,14 +36,16 @@ public function testPushProperlyPushesJobOntoBeanstalkd()
return $uuid;
});
- $queue = new BeanstalkdQueue(m::mock(Pheanstalk::class), 'default', 60);
- $pheanstalk = $queue->getPheanstalk();
+ $this->setQueue('default', 60);
+ $pheanstalk = $this->queue->getPheanstalk();
$pheanstalk->shouldReceive('useTube')->once()->with('stack')->andReturn($pheanstalk);
$pheanstalk->shouldReceive('useTube')->once()->with('default')->andReturn($pheanstalk);
$pheanstalk->shouldReceive('put')->twice()->with(json_encode(['uuid' => $uuid, 'displayName' => 'foo', 'job' => 'foo', 'maxTries' => null, 'maxExceptions' => null, 'backoff' => null, 'timeout' => null, 'data' => ['data']]), 1024, 0, 60);
- $queue->push('foo', ['data'], 'stack');
- $queue->push('foo', ['data']);
+ $this->queue->push('foo', ['data'], 'stack');
+ $this->queue->push('foo', ['data']);
+
+ $this->container->shouldHaveReceived('bound')->with('events')->times(2);
Str::createUuidsNormally();
}
@@ -46,53 +58,68 @@ public function testDelayedPushProperlyPushesJobOntoBeanstalkd()
return $uuid;
});
- $queue = new BeanstalkdQueue(m::mock(Pheanstalk::class), 'default', 60);
- $pheanstalk = $queue->getPheanstalk();
+ $this->setQueue('default', 60);
+ $pheanstalk = $this->queue->getPheanstalk();
$pheanstalk->shouldReceive('useTube')->once()->with('stack')->andReturn($pheanstalk);
$pheanstalk->shouldReceive('useTube')->once()->with('default')->andReturn($pheanstalk);
$pheanstalk->shouldReceive('put')->twice()->with(json_encode(['uuid' => $uuid, 'displayName' => 'foo', 'job' => 'foo', 'maxTries' => null, 'maxExceptions' => null, 'backoff' => null, 'timeout' => null, 'data' => ['data']]), Pheanstalk::DEFAULT_PRIORITY, 5, Pheanstalk::DEFAULT_TTR);
- $queue->later(5, 'foo', ['data'], 'stack');
- $queue->later(5, 'foo', ['data']);
+ $this->queue->later(5, 'foo', ['data'], 'stack');
+ $this->queue->later(5, 'foo', ['data']);
+
+ $this->container->shouldHaveReceived('bound')->with('events')->times(2);
Str::createUuidsNormally();
}
public function testPopProperlyPopsJobOffOfBeanstalkd()
{
- $queue = new BeanstalkdQueue(m::mock(Pheanstalk::class), 'default', 60);
- $queue->setContainer(m::mock(Container::class));
- $pheanstalk = $queue->getPheanstalk();
+ $this->setQueue('default', 60);
+
+ $pheanstalk = $this->queue->getPheanstalk();
$pheanstalk->shouldReceive('watchOnly')->once()->with('default')->andReturn($pheanstalk);
$job = m::mock(Job::class);
$pheanstalk->shouldReceive('reserveWithTimeout')->once()->with(0)->andReturn($job);
- $result = $queue->pop();
+ $result = $this->queue->pop();
$this->assertInstanceOf(BeanstalkdJob::class, $result);
}
public function testBlockingPopProperlyPopsJobOffOfBeanstalkd()
{
- $queue = new BeanstalkdQueue(m::mock(Pheanstalk::class), 'default', 60, 60);
- $queue->setContainer(m::mock(Container::class));
- $pheanstalk = $queue->getPheanstalk();
+ $this->setQueue('default', 60, 60);
+
+ $pheanstalk = $this->queue->getPheanstalk();
$pheanstalk->shouldReceive('watchOnly')->once()->with('default')->andReturn($pheanstalk);
$job = m::mock(Job::class);
$pheanstalk->shouldReceive('reserveWithTimeout')->once()->with(60)->andReturn($job);
- $result = $queue->pop();
+ $result = $this->queue->pop();
$this->assertInstanceOf(BeanstalkdJob::class, $result);
}
public function testDeleteProperlyRemoveJobsOffBeanstalkd()
{
- $queue = new BeanstalkdQueue(m::mock(Pheanstalk::class), 'default', 60);
- $pheanstalk = $queue->getPheanstalk();
+ $this->setQueue('default', 60);
+
+ $pheanstalk = $this->queue->getPheanstalk();
$pheanstalk->shouldReceive('useTube')->once()->with('default')->andReturn($pheanstalk);
$pheanstalk->shouldReceive('delete')->once()->with(m::type(Job::class));
- $queue->deleteMessage('default', 1);
+ $this->queue->deleteMessage('default', 1);
+ }
+
+ /**
+ * @param string $default
+ * @param int $timeToRun
+ * @param int $blockFor
+ */
+ private function setQueue($default, $timeToRun, $blockFor = 0)
+ {
+ $this->queue = new BeanstalkdQueue(m::mock(Pheanstalk::class), $default, $timeToRun, $blockFor);
+ $this->container = m::spy(Container::class);
+ $this->queue->setContainer($this->container);
}
} | true |
Other | laravel | framework | 8eaec037421aa9f3860da9d339986448b4c884eb.json | Add JobQueued event
(Follows: https://github.com/laravel/framework/pull/32894) | tests/Queue/QueueDatabaseQueueUnitTest.php | @@ -2,6 +2,7 @@
namespace Illuminate\Tests\Queue;
+use Illuminate\Container\Container;
use Illuminate\Database\Connection;
use Illuminate\Queue\DatabaseQueue;
use Illuminate\Queue\Queue;
@@ -28,6 +29,7 @@ public function testPushProperlyPushesJobOntoDatabase()
$queue = $this->getMockBuilder(DatabaseQueue::class)->onlyMethods(['currentTime'])->setConstructorArgs([$database = m::mock(Connection::class), 'table', 'default'])->getMock();
$queue->expects($this->any())->method('currentTime')->willReturn('time');
+ $queue->setContainer($container = m::spy(Container::class));
$database->shouldReceive('table')->with('table')->andReturn($query = m::mock(stdClass::class));
$query->shouldReceive('insertGetId')->once()->andReturnUsing(function ($array) use ($uuid) {
$this->assertSame('default', $array['queue']);
@@ -39,6 +41,8 @@ public function testPushProperlyPushesJobOntoDatabase()
$queue->push('foo', ['data']);
+ $container->shouldHaveReceived('bound')->with('events')->once();
+
Str::createUuidsNormally();
}
@@ -56,6 +60,7 @@ public function testDelayedPushProperlyPushesJobOntoDatabase()
[$database = m::mock(Connection::class), 'table', 'default']
)->getMock();
$queue->expects($this->any())->method('currentTime')->willReturn('time');
+ $queue->setContainer($container = m::spy(Container::class));
$database->shouldReceive('table')->with('table')->andReturn($query = m::mock(stdClass::class));
$query->shouldReceive('insertGetId')->once()->andReturnUsing(function ($array) use ($uuid) {
$this->assertSame('default', $array['queue']);
@@ -67,6 +72,8 @@ public function testDelayedPushProperlyPushesJobOntoDatabase()
$queue->later(10, 'foo', ['data']);
+ $container->shouldHaveReceived('bound')->with('events')->once();
+
Str::createUuidsNormally();
}
| true |
Other | laravel | framework | 8eaec037421aa9f3860da9d339986448b4c884eb.json | Add JobQueued event
(Follows: https://github.com/laravel/framework/pull/32894) | tests/Queue/QueueRedisQueueTest.php | @@ -2,6 +2,7 @@
namespace Illuminate\Tests\Queue;
+use Illuminate\Container\Container;
use Illuminate\Contracts\Redis\Factory;
use Illuminate\Queue\LuaScripts;
use Illuminate\Queue\Queue;
@@ -28,11 +29,13 @@ public function testPushProperlyPushesJobOntoRedis()
$queue = $this->getMockBuilder(RedisQueue::class)->onlyMethods(['getRandomId'])->setConstructorArgs([$redis = m::mock(Factory::class), 'default'])->getMock();
$queue->expects($this->once())->method('getRandomId')->willReturn('foo');
+ $queue->setContainer($container = m::spy(Container::class));
$redis->shouldReceive('connection')->once()->andReturn($redis);
$redis->shouldReceive('eval')->once()->with(LuaScripts::push(), 2, 'queues:default', 'queues:default:notify', json_encode(['uuid' => $uuid, 'displayName' => 'foo', 'job' => 'foo', 'maxTries' => null, 'maxExceptions' => null, 'backoff' => null, 'timeout' => null, 'data' => ['data'], 'id' => 'foo', 'attempts' => 0]));
$id = $queue->push('foo', ['data']);
$this->assertSame('foo', $id);
+ $container->shouldHaveReceived('bound')->with('events')->once();
Str::createUuidsNormally();
}
@@ -47,6 +50,7 @@ public function testPushProperlyPushesJobOntoRedisWithCustomPayloadHook()
$queue = $this->getMockBuilder(RedisQueue::class)->onlyMethods(['getRandomId'])->setConstructorArgs([$redis = m::mock(Factory::class), 'default'])->getMock();
$queue->expects($this->once())->method('getRandomId')->willReturn('foo');
+ $queue->setContainer($container = m::spy(Container::class));
$redis->shouldReceive('connection')->once()->andReturn($redis);
$redis->shouldReceive('eval')->once()->with(LuaScripts::push(), 2, 'queues:default', 'queues:default:notify', json_encode(['uuid' => $uuid, 'displayName' => 'foo', 'job' => 'foo', 'maxTries' => null, 'maxExceptions' => null, 'backoff' => null, 'timeout' => null, 'data' => ['data'], 'custom' => 'taylor', 'id' => 'foo', 'attempts' => 0]));
@@ -56,6 +60,7 @@ public function testPushProperlyPushesJobOntoRedisWithCustomPayloadHook()
$id = $queue->push('foo', ['data']);
$this->assertSame('foo', $id);
+ $container->shouldHaveReceived('bound')->with('events')->once();
Queue::createPayloadUsing(null);
@@ -72,6 +77,7 @@ public function testPushProperlyPushesJobOntoRedisWithTwoCustomPayloadHook()
$queue = $this->getMockBuilder(RedisQueue::class)->onlyMethods(['getRandomId'])->setConstructorArgs([$redis = m::mock(Factory::class), 'default'])->getMock();
$queue->expects($this->once())->method('getRandomId')->willReturn('foo');
+ $queue->setContainer($container = m::spy(Container::class));
$redis->shouldReceive('connection')->once()->andReturn($redis);
$redis->shouldReceive('eval')->once()->with(LuaScripts::push(), 2, 'queues:default', 'queues:default:notify', json_encode(['uuid' => $uuid, 'displayName' => 'foo', 'job' => 'foo', 'maxTries' => null, 'maxExceptions' => null, 'backoff' => null, 'timeout' => null, 'data' => ['data'], 'custom' => 'taylor', 'bar' => 'foo', 'id' => 'foo', 'attempts' => 0]));
@@ -85,6 +91,7 @@ public function testPushProperlyPushesJobOntoRedisWithTwoCustomPayloadHook()
$id = $queue->push('foo', ['data']);
$this->assertSame('foo', $id);
+ $container->shouldHaveReceived('bound')->with('events')->once();
Queue::createPayloadUsing(null);
@@ -100,6 +107,7 @@ public function testDelayedPushProperlyPushesJobOntoRedis()
});
$queue = $this->getMockBuilder(RedisQueue::class)->onlyMethods(['availableAt', 'getRandomId'])->setConstructorArgs([$redis = m::mock(Factory::class), 'default'])->getMock();
+ $queue->setContainer($container = m::spy(Container::class));
$queue->expects($this->once())->method('getRandomId')->willReturn('foo');
$queue->expects($this->once())->method('availableAt')->with(1)->willReturn(2);
@@ -112,6 +120,7 @@ public function testDelayedPushProperlyPushesJobOntoRedis()
$id = $queue->later(1, 'foo', ['data']);
$this->assertSame('foo', $id);
+ $container->shouldHaveReceived('bound')->with('events')->once();
Str::createUuidsNormally();
}
@@ -126,6 +135,7 @@ public function testDelayedPushWithDateTimeProperlyPushesJobOntoRedis()
$date = Carbon::now();
$queue = $this->getMockBuilder(RedisQueue::class)->onlyMethods(['availableAt', 'getRandomId'])->setConstructorArgs([$redis = m::mock(Factory::class), 'default'])->getMock();
+ $queue->setContainer($container = m::spy(Container::class));
$queue->expects($this->once())->method('getRandomId')->willReturn('foo');
$queue->expects($this->once())->method('availableAt')->with($date)->willReturn(2);
@@ -137,6 +147,7 @@ public function testDelayedPushWithDateTimeProperlyPushesJobOntoRedis()
);
$queue->later($date, 'foo', ['data']);
+ $container->shouldHaveReceived('bound')->with('events')->once();
Str::createUuidsNormally();
} | true |
Other | laravel | framework | 8eaec037421aa9f3860da9d339986448b4c884eb.json | Add JobQueued event
(Follows: https://github.com/laravel/framework/pull/32894) | tests/Queue/QueueSqsQueueTest.php | @@ -92,33 +92,39 @@ public function testDelayedPushWithDateTimeProperlyPushesJobOntoSqs()
{
$now = Carbon::now();
$queue = $this->getMockBuilder(SqsQueue::class)->onlyMethods(['createPayload', 'secondsUntil', 'getQueue'])->setConstructorArgs([$this->sqs, $this->queueName, $this->account])->getMock();
+ $queue->setContainer($container = m::spy(Container::class));
$queue->expects($this->once())->method('createPayload')->with($this->mockedJob, $this->queueName, $this->mockedData)->willReturn($this->mockedPayload);
$queue->expects($this->once())->method('secondsUntil')->with($now)->willReturn(5);
$queue->expects($this->once())->method('getQueue')->with($this->queueName)->willReturn($this->queueUrl);
$this->sqs->shouldReceive('sendMessage')->once()->with(['QueueUrl' => $this->queueUrl, 'MessageBody' => $this->mockedPayload, 'DelaySeconds' => 5])->andReturn($this->mockedSendMessageResponseModel);
$id = $queue->later($now->addSeconds(5), $this->mockedJob, $this->mockedData, $this->queueName);
$this->assertEquals($this->mockedMessageId, $id);
+ $container->shouldHaveReceived('bound')->with('events')->once();
}
public function testDelayedPushProperlyPushesJobOntoSqs()
{
$queue = $this->getMockBuilder(SqsQueue::class)->onlyMethods(['createPayload', 'secondsUntil', 'getQueue'])->setConstructorArgs([$this->sqs, $this->queueName, $this->account])->getMock();
+ $queue->setContainer($container = m::spy(Container::class));
$queue->expects($this->once())->method('createPayload')->with($this->mockedJob, $this->queueName, $this->mockedData)->willReturn($this->mockedPayload);
$queue->expects($this->once())->method('secondsUntil')->with($this->mockedDelay)->willReturn($this->mockedDelay);
$queue->expects($this->once())->method('getQueue')->with($this->queueName)->willReturn($this->queueUrl);
$this->sqs->shouldReceive('sendMessage')->once()->with(['QueueUrl' => $this->queueUrl, 'MessageBody' => $this->mockedPayload, 'DelaySeconds' => $this->mockedDelay])->andReturn($this->mockedSendMessageResponseModel);
$id = $queue->later($this->mockedDelay, $this->mockedJob, $this->mockedData, $this->queueName);
$this->assertEquals($this->mockedMessageId, $id);
+ $container->shouldHaveReceived('bound')->with('events')->once();
}
public function testPushProperlyPushesJobOntoSqs()
{
$queue = $this->getMockBuilder(SqsQueue::class)->onlyMethods(['createPayload', 'getQueue'])->setConstructorArgs([$this->sqs, $this->queueName, $this->account])->getMock();
+ $queue->setContainer($container = m::spy(Container::class));
$queue->expects($this->once())->method('createPayload')->with($this->mockedJob, $this->queueName, $this->mockedData)->willReturn($this->mockedPayload);
$queue->expects($this->once())->method('getQueue')->with($this->queueName)->willReturn($this->queueUrl);
$this->sqs->shouldReceive('sendMessage')->once()->with(['QueueUrl' => $this->queueUrl, 'MessageBody' => $this->mockedPayload])->andReturn($this->mockedSendMessageResponseModel);
$id = $queue->push($this->mockedJob, $this->mockedData, $this->queueName);
$this->assertEquals($this->mockedMessageId, $id);
+ $container->shouldHaveReceived('bound')->with('events')->once();
}
public function testSizeProperlyReadsSqsQueueSize() | true |
Other | laravel | framework | 8eaec037421aa9f3860da9d339986448b4c884eb.json | Add JobQueued event
(Follows: https://github.com/laravel/framework/pull/32894) | tests/Queue/RedisQueueIntegrationTest.php | @@ -3,7 +3,9 @@
namespace Illuminate\Tests\Queue;
use Illuminate\Container\Container;
+use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Foundation\Testing\Concerns\InteractsWithRedis;
+use Illuminate\Queue\Events\JobQueued;
use Illuminate\Queue\Jobs\RedisJob;
use Illuminate\Queue\RedisQueue;
use Illuminate\Support\Carbon;
@@ -21,6 +23,11 @@ class RedisQueueIntegrationTest extends TestCase
*/
private $queue;
+ /**
+ * @var \Mockery\MockInterface|\Mockery\LegacyMockInterface
+ */
+ private $container;
+
protected function setUp(): void
{
Carbon::setTestNow(Carbon::now());
@@ -57,6 +64,8 @@ public function testExpiredJobsArePopped($driver)
$this->queue->later(-300, $jobs[2]);
$this->queue->later(-100, $jobs[3]);
+ $this->container->shouldHaveReceived('bound')->with('events')->times(4);
+
$this->assertEquals($jobs[2], unserialize(json_decode($this->queue->pop()->getRawBody())->data->command));
$this->assertEquals($jobs[1], unserialize(json_decode($this->queue->pop()->getRawBody())->data->command));
$this->assertEquals($jobs[3], unserialize(json_decode($this->queue->pop()->getRawBody())->data->command));
@@ -183,13 +192,14 @@ public function testPopProperlyPopsDelayedJobOffOfRedis($driver)
*/
public function testPopPopsDelayedJobOffOfRedisWhenExpireNull($driver)
{
- $this->queue = new RedisQueue($this->redis[$driver], 'default', null, null);
- $this->queue->setContainer(m::mock(Container::class));
+ $this->setQueue($driver, 'default', null, null);
// Push an item into queue
$job = new RedisQueueIntegrationTestJob(10);
$this->queue->later(-10, $job);
+ $this->container->shouldHaveReceived('bound')->with('events')->once();
+
// Pop and check it is popped correctly
$before = $this->currentTime();
$this->assertEquals($job, unserialize(json_decode($this->queue->pop()->getRawBody())->data->command));
@@ -264,19 +274,21 @@ public function testBlockingPopProperlyPopsExpiredJobs($driver)
*/
public function testNotExpireJobsWhenExpireNull($driver)
{
- $this->queue = new RedisQueue($this->redis[$driver], 'default', null, null);
- $this->queue->setContainer(m::mock(Container::class));
+ $this->setQueue($driver, 'default', null, null);
// Make an expired reserved job
$failed = new RedisQueueIntegrationTestJob(-20);
$this->queue->push($failed);
+ $this->container->shouldHaveReceived('bound')->with('events')->once();
+
$beforeFailPop = $this->currentTime();
$this->queue->pop();
$afterFailPop = $this->currentTime();
// Push an item into queue
$job = new RedisQueueIntegrationTestJob(10);
$this->queue->push($job);
+ $this->container->shouldHaveReceived('bound')->with('events')->times(2);
// Pop and check it is popped correctly
$before = $this->currentTime();
@@ -309,12 +321,12 @@ public function testNotExpireJobsWhenExpireNull($driver)
*/
public function testExpireJobsWhenExpireSet($driver)
{
- $this->queue = new RedisQueue($this->redis[$driver], 'default', null, 30);
- $this->queue->setContainer(m::mock(Container::class));
+ $this->setQueue($driver, 'default', null, 30);
// Push an item into queue
$job = new RedisQueueIntegrationTestJob(10);
$this->queue->push($job);
+ $this->container->shouldHaveReceived('bound')->with('events')->once();
// Pop and check it is popped correctly
$before = $this->currentTime();
@@ -455,17 +467,67 @@ public function testSize($driver)
$this->assertEquals(2, $this->queue->size());
}
+ /**
+ * @dataProvider redisDriverProvider
+ *
+ * @param string $driver
+ */
+ public function testPushJobQueuedEvent($driver)
+ {
+ $events = m::mock(Dispatcher::class);
+ $events->shouldReceive('dispatch')->withArgs(function (JobQueued $jobQueued) {
+ $this->assertInstanceOf(RedisQueueIntegrationTestJob::class, $jobQueued->job);
+ $this->assertIsString(RedisQueueIntegrationTestJob::class, $jobQueued->jobId);
+
+ return true;
+ })->andReturnNull()->once();
+
+ $container = m::mock(Container::class);
+ $container->shouldReceive('bound')->with('events')->andReturn(true)->once();
+ $container->shouldReceive('offsetGet')->with('events')->andReturn($events)->once();
+
+ $queue = new RedisQueue($this->redis[$driver]);
+ $queue->setContainer($container);
+
+ $queue->push(new RedisQueueIntegrationTestJob(5));
+ }
+
+ /**
+ * @dataProvider redisDriverProvider
+ *
+ * @param string $driver
+ */
+ public function testBulkJobQueuedEvent($driver)
+ {
+ $events = m::mock(Dispatcher::class);
+ $events->shouldReceive('dispatch')->with(m::type(JobQueued::class))->andReturnNull()->times(3);
+
+ $container = m::mock(Container::class);
+ $container->shouldReceive('bound')->with('events')->andReturn(true)->times(3);
+ $container->shouldReceive('offsetGet')->with('events')->andReturn($events)->times(3);
+
+ $queue = new RedisQueue($this->redis[$driver]);
+ $queue->setContainer($container);
+
+ $queue->bulk([
+ new RedisQueueIntegrationTestJob(5),
+ new RedisQueueIntegrationTestJob(10),
+ new RedisQueueIntegrationTestJob(15),
+ ]);
+ }
+
/**
* @param string $driver
* @param string $default
- * @param string $connection
+ * @param string|null $connection
* @param int $retryAfter
* @param int|null $blockFor
*/
private function setQueue($driver, $default = 'default', $connection = null, $retryAfter = 60, $blockFor = null)
{
$this->queue = new RedisQueue($this->redis[$driver], $default, $connection, $retryAfter, $blockFor);
- $this->queue->setContainer(m::mock(Container::class));
+ $this->container = m::spy(Container::class);
+ $this->queue->setContainer($this->container);
}
}
| true |
Other | laravel | framework | b9624ab7b3b3994a5e962d0f468fcf6c45a198d7.json | Consolidate CHANGELOG.md for 9.x (#35943) | CHANGELOG-6.x.md | @@ -1,1015 +0,0 @@
-# Release Notes for 6.x
-
-## [Unreleased](https://github.com/laravel/framework/compare/v6.20.10...6.x)
-
-
-## [v6.20.10 (2021-01-12)](https://github.com/laravel/framework/compare/v6.20.9...v6.20.10)
-
-### Added
-- Added new line to `DetectsLostConnections` ([#35790](https://github.com/laravel/framework/pull/35790))
-
-### Fixed
-- Fixed error from missing null check on PHP 8 in `Illuminate\Validation\Concerns\ValidatesAttributes::validateJson()` ([#35797](https://github.com/laravel/framework/pull/35797))
-
-
-## [v6.20.9 (2021-01-05)](https://github.com/laravel/framework/compare/v6.20.8...v6.20.9)
-
-### Added
-- [Updated Illuminate\Database\DetectsLostConnections with new strings](https://github.com/laravel/framework/compare/v6.20.8...v6.20.9)
-
-
-## [v6.20.8 (2020-12-22)](https://github.com/laravel/framework/compare/v6.20.7...v6.20.8)
-
-### Fixed
-- Fixed `Illuminate\Validation\Concerns\ValidatesAttributes::validateJson()` for PHP8 ([#35646](https://github.com/laravel/framework/pull/35646))
-- Catch DecryptException with invalid X-XSRF-TOKEN in `Illuminate\Foundation\Http\Middleware\VerifyCsrfToken` ([#35671](https://github.com/laravel/framework/pull/35671))
-
-
-## [v6.20.7 (2020-12-08)](https://github.com/laravel/framework/compare/v6.20.6...v6.20.7)
-
-### Fixed
-- Backport for fix issue with polymorphic morphMaps with literal 0 ([#35487](https://github.com/laravel/framework/pull/35487))
-- Fixed mime validation for jpeg files ([#35518](https://github.com/laravel/framework/pull/35518))
-
-
-## [v6.20.6 (2020-12-01)](https://github.com/laravel/framework/compare/v6.20.5...v6.20.6)
-
-### Fixed
-- Backport Redis context option ([#35370](https://github.com/laravel/framework/pull/35370))
-- Fixed validating image/jpeg images after Symfony/Mime update ([#35419](https://github.com/laravel/framework/pull/35419))
-
-
-## [v6.20.5 (2020-11-24)](https://github.com/laravel/framework/compare/v6.20.4...v6.20.5)
-
-### Fixed
-- Fixing BroadcastException message in PusherBroadcaster@broadcast ([#35290](https://github.com/laravel/framework/pull/35290))
-- Fixed generic DetectsLostConnection string ([#35323](https://github.com/laravel/framework/pull/35323))
-
-### Changed
-- Updated `aws/aws-sdk-php` suggest to `^3.155` ([#35267](https://github.com/laravel/framework/pull/35267))
-
-
-## [v6.20.4 (2020-11-17)](https://github.com/laravel/framework/compare/v6.20.3...v6.20.4)
-
-### Fixed
-- Fixed pivot restoration ([#35218](https://github.com/laravel/framework/pull/35218))
-
-
-## [v6.20.3 (2020-11-10)](https://github.com/laravel/framework/compare/v6.20.2...v6.20.3)
-
-### Fixed
-- Turn the eloquent collection into a base collection if mapWithKeys loses models ([#35129](https://github.com/laravel/framework/pull/35129))
-
-
-## [v6.20.2 (2020-10-29)](https://github.com/laravel/framework/compare/v6.20.1...v6.20.2)
-
-### Fixed
-- [Add some fixes](https://github.com/laravel/framework/compare/v6.20.1...v6.20.2)
-
-
-## [v6.20.1 (2020-10-29)](https://github.com/laravel/framework/compare/v6.20.0...v6.20.1)
-
-### Fixed
-- Fixed alias usage in `Eloquent` ([6091048](https://github.com/laravel/framework/commit/609104806b8b639710268c75c22f43034c2b72db))
-- Fixed `Illuminate\Support\Reflector::isCallable()` ([a90f344](https://github.com/laravel/framework/commit/a90f344c66f0a5bb1d718f8bbd20c257d4de9e02))
-
-
-## [v6.20.0 (2020-10-28)](https://github.com/laravel/framework/compare/v6.19.1...v6.20.0)
-
-### Added
-- Full PHP 8.0 Support ([#33388](https://github.com/laravel/framework/pull/33388))
-- Added `Illuminate\Support\Reflector::isCallable()` ([#34994](https://github.com/laravel/framework/pull/34994), [8c16891](https://github.com/laravel/framework/commit/8c16891c6e7a4738d63788f4447614056ab5136e), [31917ab](https://github.com/laravel/framework/commit/31917abcfa0db6ec6221bb07fc91b6e768ff5ec8), [11cfa4d](https://github.com/laravel/framework/commit/11cfa4d4c92bf2f023544d58d51b35c5d31dece0), [#34999](https://github.com/laravel/framework/pull/34999))
-
-### Changed
-- Bump minimum PHP version to v7.2.5 ([#34928](https://github.com/laravel/framework/pull/34928))
-
-### Fixed
-- Fixed ambigious column on many to many with select load ([5007986](https://github.com/laravel/framework/commit/500798623d100a9746b2931ae6191cb756521f05))
-
-
-## [v6.19.1 (2020-10-20)](https://github.com/laravel/framework/compare/v6.19.0...v6.19.1)
-
-### Fixed
-- Fixed `bound()` method ([a7759d7](https://github.com/laravel/framework/commit/a7759d70e15b0be946569b8299ac694c08a35d7e))
-
-
-## [v6.19.0 (2020-10-20)](https://github.com/laravel/framework/compare/v6.18.43...v6.19.0)
-
-### Added
-- Provisional support for PHP 8.0 ([#34884](https://github.com/laravel/framework/pull/34884), [28bb76e](https://github.com/laravel/framework/commit/28bb76efbcfc5fee57307ffa062b67ff709240dc))
-
-
-## [v6.18.43 (2020-10-13)](https://github.com/laravel/framework/compare/v6.18.42...v6.18.43)
-
-### Fixed
-- Matched `symfony/debug` version with other symfony reqs ([6ce02a2](https://github.com/laravel/framework/commit/6ce02a21cf736f28beda2529d1e28849e86b0944))
-
-
-## [v6.18.42 (2020-10-06)](https://github.com/laravel/framework/compare/v6.18.41...v6.18.42)
-
-### Fixed
-- Added missed RESET_THROTTLED constant to Password Facade ([#34641](https://github.com/laravel/framework/pull/34641))
-
-
-## [v6.18.41 (2020-09-29)](https://github.com/laravel/framework/compare/v6.18.40...v6.18.41)
-
-### Fixed
-- Added support for stream reads in FileManager for S3 driver ([#34480](https://github.com/laravel/framework/pull/34480))
-
-
-## [v6.18.40 (2020-09-09)](https://github.com/laravel/framework/compare/v6.18.39...v6.18.40)
-
-### Revert
-- Revert of ["Fixed for empty fallback_locale in `Illuminate\Translation\Translator`"](https://github.com/laravel/framework/pull/34136) ([7c54eb6](https://github.com/laravel/framework/commit/7c54eb678d58fb9ee7f532a5a5842e6f0e1fe4c9))
-
-
-## [v6.18.39 (2020-09-08)](https://github.com/laravel/framework/compare/v6.18.38...v6.18.39)
-
-### Fixed
-- Fixed for empty fallback_locale in `Illuminate\Translation\Translator` ([#34136](https://github.com/laravel/framework/pull/34136))
-
-
-## [v6.18.38 (2020-09-01)](https://github.com/laravel/framework/compare/v6.18.37...v6.18.38)
-
-### Changed
-- Changed postgres processor ([#34055](https://github.com/laravel/framework/pull/34055))
-
-
-## [v6.18.37 (2020-08-27)](https://github.com/laravel/framework/compare/v6.18.36...v6.18.37)
-
-### Fixed
-- Fixed offset error on invalid remember token ([#34020](https://github.com/laravel/framework/pull/34020))
-- Only prepend scheme to PhpRedis host when necessary ([#34017](https://github.com/laravel/framework/pull/34017))
-- Fixed `whereKey` and `whereKeyNot` in `Illuminate\Database\Eloquent\Builder` ([#34031](https://github.com/laravel/framework/pull/34031))
-
-
-## [v6.18.36 (2020-08-25)](https://github.com/laravel/framework/compare/v6.18.35...v6.18.36)
-
-### Fixed
-- Fix dimension ratio calculation in `Illuminate\Validation\Concerns\ValidatesAttributes::failsRatioCheck()` ([#34003](https://github.com/laravel/framework/pull/34003))
-
-### Changed
-- Normalize scheme in Redis connections ([#33892](https://github.com/laravel/framework/pull/33892))
-- Check no-interaction flag exists and is true for Artisan commands ([#33950](https://github.com/laravel/framework/pull/33950))
-
-
-## [v6.18.35 (2020-08-07)](https://github.com/laravel/framework/compare/v6.18.34...v6.18.35)
-
-### Changed
-- Verify column names are actual columns when using guarded ([#33777](https://github.com/laravel/framework/pull/33777))
-
-
-## [v6.18.34 (2020-08-06)](https://github.com/laravel/framework/compare/v6.18.33...v6.18.34)
-
-### Fixed
-- Fixed `Illuminate\Support\Arr::query()` ([c6f9ae2](https://github.com/laravel/framework/commit/c6f9ae2b6fdc3c1716938223de731b97f6a5a255))
-- Don't allow mass filling with table names ([9240404](https://github.com/laravel/framework/commit/9240404b22ef6f9e827577b3753e4713ddce7471), [f5fa6e3](https://github.com/laravel/framework/commit/f5fa6e3a0fbf9a93eab45b9ae73265b4dbfc3ad7))
-
-
-## [v6.18.33 (2020-08-06)](https://github.com/laravel/framework/compare/v6.18.32...v6.18.33)
-
-### Fixed
-- Fixed `Illuminate\Database\Eloquent\Concerns\GuardsAttributes::isGuarded()` ([1b70bef](https://github.com/laravel/framework/commit/1b70bef5fd7cc5da74abcdf79e283f830fa3b0a4), [624d873](https://github.com/laravel/framework/commit/624d873733388aa2246553a3b465e38554953180), [b70876a](https://github.com/laravel/framework/commit/b70876ac80759fbf168c91cdffd7a2b2305e27cb))
-- Fixed escaping quotes ([687df01](https://github.com/laravel/framework/commit/687df01fa19c99546c1ae1dd53c2a465459b50dc))
-
-
-## [v6.18.32 (2020-08-04)](https://github.com/laravel/framework/compare/v6.18.31...v6.18.32)
-
-### Changed
-- Ignore numeric field names in validators ([#33712](https://github.com/laravel/framework/pull/33712))
-- Fixed validation rule 'required_unless' when other field value is boolean. ([#33715](https://github.com/laravel/framework/pull/33715))
-
-
-## [v6.18.31 (2020-07-27)](https://github.com/laravel/framework/compare/v6.18.30...v6.18.31)
-
-### Update
-- Update cookies encryption ([release](https://github.com/laravel/framework/compare/v6.18.30...v6.18.31))
-
-
-## [v6.18.30 (2020-07-27)](https://github.com/laravel/framework/compare/v6.18.29...v6.18.30)
-
-### Update
-- Update cookies encryption ([release](https://github.com/laravel/framework/compare/v6.18.29...v6.18.30))
-
-
-## [v6.18.29 (2020-07-27)](https://github.com/laravel/framework/compare/v6.18.28...v6.18.29)
-
-### Fixed
-- Fixed cookie issues encryption ([c9ce261](https://github.com/laravel/framework/commit/c9ce261a9f7b8e07c9ebc8a7d45651ee1cf86215), [5786aa4](https://github.com/laravel/framework/commit/5786aa4a388adfcc62862573275bd37d49aa07d7))
-
-
-## [v6.18.28 (2020-07-27)](https://github.com/laravel/framework/compare/v6.18.27...v6.18.28)
-
-### Fixed
-- Fixed cookie issues ([bb9db21](https://github.com/laravel/framework/commit/bb9db21af137344feffa192fcabe4e439c8b0f60))
-
-
-## [v6.18.27 (2020-07-27)](https://github.com/laravel/framework/compare/v6.18.26...v6.18.27)
-
-### Fixed
-- Don't decrement transaction below 0 in `Illuminate\Database\Concerns\ManagesTransactions::handleCommitTransactionException()` ([7681795](https://github.com/laravel/framework/commit/768179578e5492b5f80c391bd43b233938e16e27))
-- Fixed transaction problems on closure transaction ([c4cdfc7](https://github.com/laravel/framework/commit/c4cdfc7c54127b772ef10f37cfc9ef8e9d6b3227))
-- Prevent to serialize uninitialized properties ([#33644](https://github.com/laravel/framework/pull/33644))
-- Fixed missing statement preventing deletion in `Illuminate\Database\Eloquent\Relations\MorphPivot::delete()` ([#33648](https://github.com/laravel/framework/pull/33648))
-
-### Changed
-- Improve cookie encryption ([#33662](https://github.com/laravel/framework/pull/33662))
-
-
-## [v6.18.26 (2020-07-21)](https://github.com/laravel/framework/compare/v6.18.25...v6.18.26)
-
-### Fixed
-- Align (fix) nested arrays support for `assertViewHas` & `assertViewMissing` in `Illuminate\Testing\TestResponse` ([#33566](https://github.com/laravel/framework/pull/33566))
-
-
-## [v6.18.25 (2020-07-10)](https://github.com/laravel/framework/compare/v6.18.24...v6.18.25)
-
-### Fixed
-- Fixed `Illuminate\Cache\FileStore::flush()` ([#33458](https://github.com/laravel/framework/pull/33458))
-- Fixed auto creating model by class name ([#33481](https://github.com/laravel/framework/pull/33481))
-- Don't return nested data from validator when failing an exclude rule ([#33435](https://github.com/laravel/framework/pull/33435))
-- Fixed validation nested error messages ([6615371](https://github.com/laravel/framework/commit/6615371d7c0a7431372244d21eae54696b3c19f2))
-- Fixed `Illuminate\Support\Reflector` to handle parent ([#33502](https://github.com/laravel/framework/pull/33502))
-
-### Revert
-- Revert [Improve SQL Server last insert id retrieval](https://github.com/laravel/framework/pull/33453) ([#33496](https://github.com/laravel/framework/pull/33496))
-
-
-## [v6.18.24 (2020-07-07)](https://github.com/laravel/framework/compare/v6.18.23...v6.18.24)
-
-### Fixed
-- Fixed notifications database channel for anonymous notifiables ([#33409](https://github.com/laravel/framework/pull/33409))
-- Added float comparison null checks ([#33421](https://github.com/laravel/framework/pull/33421))
-- Improve SQL Server last insert id retrieval ([#33453](https://github.com/laravel/framework/pull/33453))
-
-
-## [v6.18.23 (2020-06-30)](https://github.com/laravel/framework/compare/v6.18.22...v6.18.23)
-
-### Fixed
-- Fixed `ConfigurationUrlParser` query decoding ([#33340](https://github.com/laravel/framework/pull/33340))
-- Correct implementation of float casting comparison ([#33322](https://github.com/laravel/framework/pull/33322))
-
-
-## [v6.18.22 (2020-06-24)](https://github.com/laravel/framework/compare/v6.18.21...v6.18.22)
-
-### Revert
-- Revert "Fixed `Model::originalIsEquivalent()` with floats ([#33259](https://github.com/laravel/framework/pull/33259), [d68d915](https://github.com/laravel/framework/commit/d68d91516db6d1b9cba8a72f99b2c7e8223e988f))" [bf3cb6f](https://github.com/laravel/framework/commit/bf3cb6f6979df2d6965d2e0aa731724d0e2b15e5)
-
-
-## [v6.18.21 (2020-06-23)](https://github.com/laravel/framework/compare/v6.18.20...v6.18.21)
-
-### Fixed
-- Fixed `Model::originalIsEquivalent()` with floats ([#33259](https://github.com/laravel/framework/pull/33259), [d68d915](https://github.com/laravel/framework/commit/d68d91516db6d1b9cba8a72f99b2c7e8223e988f))
-
-
-## [v6.18.20 (2020-06-16)](https://github.com/laravel/framework/compare/v6.18.19...v6.18.20)
-
-### Changed
-- Improved the reflector ([#33184](https://github.com/laravel/framework/pull/33184))
-
-
-## [v6.18.19 (2020-06-09)](https://github.com/laravel/framework/compare/v6.18.18...v6.18.19)
-
-### Fixed
-- Fixed `Model::withoutEvents()` not registering listeners inside boot() ([#33149](https://github.com/laravel/framework/pull/33149), [4bb32ae](https://github.com/laravel/framework/commit/4bb32aea50eec4c3cc8b77f463e4a96213a0af09))
-
-
-## [v6.18.18 (2020-06-03)](https://github.com/laravel/framework/compare/v6.18.17...v6.18.18)
-
-### Fixed
-- Fixed `Illuminate\Database\Eloquent\Relations\MorphToMany::getCurrentlyAttachedPivots()` ([110b129](https://github.com/laravel/framework/commit/110b129531df172f03bf163f561c71123fac6296))
-
-
-## [v6.18.17 (2020-06-02)](https://github.com/laravel/framework/compare/v6.18.16...v6.18.17)
-
-### Added
-- Support PHP 8's reflection API ([#33039](https://github.com/laravel/framework/pull/33039))
-
-### Fixed
-- Fixed `Illuminate\Database\Eloquent\Collection::getQueueableRelations()` ([00e9ed7](https://github.com/laravel/framework/commit/00e9ed76483ea6ad1264676e7b1095b23e16a433))
-- Fixed bug with update existing pivot and polymorphic many to many ([684208b](https://github.com/laravel/framework/commit/684208b10460b49fa34354cc42f33b9b7135814f))
-
-
-## [v6.18.15 (2020-05-19)](https://github.com/laravel/framework/compare/v6.18.14...v6.18.15)
-
-### Added
-- Added `Illuminate\Http\Middleware\TrustHosts` ([9229264](https://github.com/laravel/framework/commit/92292649621f2aadc84ab94376244650a9f55696))
-
-### Fixed
-- Revert of ["Remove `strval` from `Illuminate/Validation/ValidationRuleParser::explodeWildcardRules()`"](https://github.com/laravel/framework/commit/1c76a6f3a80fa8f756740566dffd9fa1be65c123) ([52940cf](https://github.com/laravel/framework/commit/52940cf3275cfebd47ec008fd8ae5bc6d6a42dfd))
-- Fixed Queued Mail MessageSent Listener With Attachments ([#32795](https://github.com/laravel/framework/pull/32795))
-- Added error clearing before sending in `Illuminate\Mail\Mailer::sendSwiftMessage()` ([#32799](https://github.com/laravel/framework/pull/32799))
-- Avoid foundation function call in the auth component ([#32805](https://github.com/laravel/framework/pull/32805))
-
-### Changed
-- Added explicit `symfony/polyfill-php73` dependency ([5796b1e](https://github.com/laravel/framework/commit/5796b1e43dfe14914050a7e5dd24ddf803ec99b8))
-- Set `Cache\FileStore` file permissions only once ([#32845](https://github.com/laravel/framework/pull/32845), [11c533b](https://github.com/laravel/framework/commit/11c533b9aa062f4cba1dd0fe3673bf33d275480f))
-
-
-## [v6.18.14 (2020-05-12)](https://github.com/laravel/framework/compare/v6.18.13...v6.18.14)
-
-### Added
-- Added SSL SYSCALL EOF as a lost connection message ([#32697](https://github.com/laravel/framework/pull/32697))
-
-### Fixed
-- Fixed `FakerGenerator` Unique caching issue ([#32703](https://github.com/laravel/framework/pull/32703))
-- Added boolean to types that don't need character options ([#32716](https://github.com/laravel/framework/pull/32716))
-- Fixed `Illuminate\Foundation\Testing\PendingCommand` that do not resolve 'OutputStyle::class' from the container ([#32687](https://github.com/laravel/framework/pull/32687))
-- Clear resolved event facade on `Illuminate\Foundation\Testing\Concerns\MocksApplicationServices::withoutEvents()` ([d1e7f85](https://github.com/laravel/framework/commit/d1e7f85dfd79abbe4f5e01818f620f6ecc67de4d))
-- Fixed deprecated "Doctrine/Common/Inflector/Inflector" class ([#32734](https://github.com/laravel/framework/pull/32734))
-
-### Changed
-- Remove the undocumented dot keys support in validators ([#32764](https://github.com/laravel/framework/pull/32764))
-- Remove `strval` from `Illuminate/Validation/ValidationRuleParser::explodeWildcardRules()` [1c76a6f](https://github.com/laravel/framework/commit/1c76a6f3a80fa8f756740566dffd9fa1be65c123)
-
-
-## [v6.18.13 (2020-05-05)](https://github.com/laravel/framework/compare/v6.18.12...v6.18.13)
-
-### Fixed
-- Fixed `Illuminate\Database\Eloquent\Collection::getQueueableRelations()` ([7b32460](https://github.com/laravel/framework/commit/7b32469420258e9e52b24b2ffa7f491e79a3a870))
-
-
-## [v6.18.12 (2020-05-05)](https://github.com/laravel/framework/compare/v6.18.11...v6.18.12)
-
-### Added
-- Add pdo try again as lost connection message ([#32605](https://github.com/laravel/framework/pull/32605))
-
-### Fixed
-- Fixed `Illuminate\Foundation\Testing\TestResponse::assertSessionHasInput()` ([f0639fd](https://github.com/laravel/framework/commit/f0639fda45fc2874986fe409d944dde21d42c6f3))
-- Set relation connection on eager loaded MorphTo ([#32602](https://github.com/laravel/framework/pull/32602))
-- Fixed `Illuminate\Database\Schema\Grammars\SqlServerGrammar::compileDropDefaultConstraint()` was ignoring Table prefixes ([#32606](https://github.com/laravel/framework/pull/32606))
-- Filtering null's in `hasMorph()` ([#32614](https://github.com/laravel/framework/pull/32614))
-- Fixed `Illuminate\Console\Scheduling\Schedule::compileParameters()` ([cfc3ac9](https://github.com/laravel/framework/commit/cfc3ac9c8b0a593d264ae722ab90601fa4882d0e), [36e215d](https://github.com/laravel/framework/commit/36e215dd39cd757a8ffc6b17794de60476b2289d))
-- Fixed bug with model name in `Illuminate\Database\Eloquent\RelationNotFoundException::make()` ([f72a166](https://github.com/laravel/framework/commit/f72a1662ab64cc543c532941b1ab1279001af8e9))
-- Fixed `Illuminate\Foundation\Testing\TestResponse::assertJsonCount()` not accepting falsey keys ([#32655](https://github.com/laravel/framework/pull/32655))
-
-### Changed
-- Changed `Illuminate/Database/Eloquent/Relations/Concerns/AsPivot::fromRawAttributes()` ([6c502c1](https://github.com/laravel/framework/commit/6c502c1135082e8b25f2720931b19d36eeec8f41))
-- Restore оnly common relations ([#32613](https://github.com/laravel/framework/pull/32613), [d82f78b](https://github.com/laravel/framework/commit/d82f78b13631c4a04b9595099da0022ca3d8b94e), [48e4d60](https://github.com/laravel/framework/commit/48e4d602d4f8fe9304e8998c5893206f67504dbf))
-- Use single space if plain email is empty in `Illuminate\Mail\Mailer::addContent()` ([0557622](https://github.com/laravel/framework/commit/055762286132d545cbc064dce645562c0d51532f))
-- Remove wasted file read when loading package manifest in `Illuminate\Foundation\PackageManifest::getManifest()` ([#32646](https://github.com/laravel/framework/pull/32646))
-- Cache `FakerGenerator` instances ([#32585](https://github.com/laravel/framework/pull/32585))
-- Do not change `character` and `collation` for some columns on change ([fccdf7c](https://github.com/laravel/framework/commit/fccdf7c42d5ceb50985b3e8243d7ba650de996d6))
-
-
-## [v6.18.11 (2020-04-28)](https://github.com/laravel/framework/compare/v6.18.10...v6.18.11)
-
-### Fixed
-- Auth with each master on flushdb ([d0afa58](https://github.com/laravel/framework/commit/d0afa5846ca1d85ca07cdb580d3b9e9768ebdf41))
-- Clear resolved facades earlier ([f2ea1a2](https://github.com/laravel/framework/commit/f2ea1a23fdac94d3f0818e7ff514fbaed3f45643))
-- Register opis key so it is not tied to a deferred service provider ([a4574ea](https://github.com/laravel/framework/commit/a4574ea973bab9bd6a2ba34d36dfb8f9b55d5a4a))
-- Pass status code to schedule finish ([b815dc6](https://github.com/laravel/framework/commit/b815dc6c1b1c595f3241c493255f0fbfd67a6131))
-- Fix firstWhere behavior for relations ([#32525](https://github.com/laravel/framework/pull/32525))
-- Fixed boolean value in `Illuminate\Foundation\Testing\TestResponse::assertSessionHasErrors()` ([#32555](https://github.com/laravel/framework/pull/32555))
-
-
-## [v6.18.10 (2020-04-21)](https://github.com/laravel/framework/compare/v6.18.9...v6.18.10)
-
-### Fixed
-- Check if object ([1b0bdb4](https://github.com/laravel/framework/commit/1b0bdb43062a2792befe6fd754140124a8e4dc35))
-
-
-## [v6.18.9 (2020-04-21)](https://github.com/laravel/framework/compare/v6.18.8...v6.18.9)
-
-### Fixed
-- Fix `refresh()` to support `AsPivot` trait ([#32420](https://github.com/laravel/framework/pull/32420))
-- Fix orderBy with callable ([#32471](https://github.com/laravel/framework/pull/32471))
-
-
-## [v6.18.8 (2020-04-15)](https://github.com/laravel/framework/compare/v6.18.7...v6.18.8)
-
-### Fixed
-- Removed dots ([e78d24f](https://github.com/laravel/framework/commit/e78d24f31b84cd81c30b5d8837731d77ec089761))
-- Duplicated mailable in-memory data attachments with different names ([#32392](https://github.com/laravel/framework/pull/32392))
-- Fix a regression caused by #32315 ([#32388](https://github.com/laravel/framework/pull/32388))
-- Duplicated mailable storage attachments with different names ([#32394](https://github.com/laravel/framework/pull/32394))
-
-
-## [v6.18.7 (2020-04-14)](https://github.com/laravel/framework/compare/v6.18.6...v6.18.7)
-
-### Fixed
-- Call setlocale ([1c6a504](https://github.com/laravel/framework/commit/1c6a50424c5558782a55769a226ab834484282e1))
-- Use a map to prevent unnecessary array access ([#32296](https://github.com/laravel/framework/pull/32296))
-- Prevent timestamp update when pivot is not dirty ([#32311](https://github.com/laravel/framework/pull/32311))
-- Add support for the new composer installed.json format ([#32310](https://github.com/laravel/framework/pull/32310))
-- ValidatesAttributes::validateUrl use Symfony/Validator 5.0.7 regex ([#32315](https://github.com/laravel/framework/pull/32315))
-- Fix *scan methods for phpredis ([#32336](https://github.com/laravel/framework/pull/32336))
-- Use the router for absolute urls ([#32345](https://github.com/laravel/framework/pull/32345))
-
-
-## [v6.18.6 (2020-04-08)](https://github.com/laravel/framework/compare/v6.18.5...v6.18.6)
-
-### Security
-- Prevent insecure characters in locale ([c248521](https://github.com/laravel/framework/commit/c248521f502c74c6cea7b0d221639d4aa752d5db))
-
-
-## [v6.18.5 (2020-04-07)](https://github.com/laravel/framework/compare/v6.18.4...v6.18.5)
-
-### Fixed
-- Revert "Fix setting mail header" ([#32278](https://github.com/laravel/framework/pull/32278))
-
-
-## [v6.18.4 (2020-04-07)](https://github.com/laravel/framework/compare/v6.18.3...v6.18.4)
-
-### Fixed
-- Added missing return in the sendNow pending mail fake ([#32095](https://github.com/laravel/framework/pull/32095))
-- Prevent long URLs from breaking email layouts ([#32189](https://github.com/laravel/framework/pull/32189))
-- Fix setting mail header ([#32272](https://github.com/laravel/framework/pull/32272))
-
-
-## [v6.18.3 (2020-03-24)](https://github.com/laravel/framework/compare/v6.18.2...v6.18.3)
-
-### Fixed
-- Corrected suggested dependencies ([#32072](https://github.com/laravel/framework/pull/32072), [c01a70e](https://github.com/laravel/framework/commit/c01a70e33198e81d06d4b581e36e25a80acf8a68))
-- Avoid deadlock in test when sharing process group ([#32067](https://github.com/laravel/framework/pull/32067))
-
-
-## [v6.18.2 (2020-03-17)](https://github.com/laravel/framework/compare/v6.18.1...v6.18.2)
-
-### Fixed
-- Fixed scheduler dependency assumptions ([#31894](https://github.com/laravel/framework/pull/31894))
-- Corrected suggested dependencies ([bb0ec42](https://github.com/laravel/framework/commit/bb0ec42b5a55b3ebf3a5a35cc6df01eec290dfa9))
-- Unset `pivotParent` on `Pivot::unsetRelations()` ([#31956](https://github.com/laravel/framework/pull/31956))
-- Fixed `cookie` helper signature , matching match `CookieFactory` ([#31974](https://github.com/laravel/framework/pull/31974))
-
-
-## [v6.18.1 (2020-03-10)](https://github.com/laravel/framework/compare/v6.18.0...v6.18.1)
-
-### Fixed
-- Fixed array lock release behavior ([#31795](https://github.com/laravel/framework/pull/31795))
-- Fixed model restoring right after being soft deleting ([#31719](https://github.com/laravel/framework/pull/31719))
-- Fixed phpredis "zadd" and "exists" on cluster ([#31838](https://github.com/laravel/framework/pull/31838))
-- Fixed "srid" mysql schema ([#31852](https://github.com/laravel/framework/pull/31852))
-- Fixed Microsoft ODBC lost connection handling ([#31879](https://github.com/laravel/framework/pull/31879))
-
-
-## [v6.18.0 (2020-03-03)](https://github.com/laravel/framework/compare/v6.17.1...v6.18.0)
-
-### Added
-- Added `Arr::hasAny()` method ([#31636](https://github.com/laravel/framework/pull/31636))
-
-### Fixed
-- Use correct locale when resolving Faker from the container ([#31615](https://github.com/laravel/framework/pull/31615))
-- Fixed loading deferred providers for binding interfaces and implementations ([#31629](https://github.com/laravel/framework/pull/31629), [1764ff7](https://github.com/laravel/framework/commit/1764ff762966083a12dd2c9b522cec5f1bbda967))
-
-### Changed
-- Make `newPivotQuery()` method public ([#31677](https://github.com/laravel/framework/pull/31677))
-- Allowed easier customization of the queued mailable job ([#31684](https://github.com/laravel/framework/pull/31684))
-- Expose Notification Id within Message Data in `Illuminate\Notifications\Channels\MailChannel` ([#31632](https://github.com/laravel/framework/pull/31632))
-
-
-## [v6.17.1 (2020-02-26)](https://github.com/laravel/framework/compare/v6.17.0...v6.17.1)
-
-### Changed
-- Don`t do chmod in File cache in case if permission not set ([#31593](https://github.com/laravel/framework/pull/31593))
-
-
-## [v6.17.0 (2020-02-25)](https://github.com/laravel/framework/compare/v6.16.0...v6.17.0)
-
-### Added
-- Allowed private-encrypted pusher channels ([#31559](https://github.com/laravel/framework/pull/31559), [ceabaef](https://github.com/laravel/framework/commit/ceabaef88741c0c6a891166cf14eb967fdf4e8ee), [8215e0d](https://github.com/laravel/framework/commit/8215e0dc66bf71a7ff4e9bf260380cf4a26f28a6))
-- Added file `permission` config option for the File cache store ([#31579](https://github.com/laravel/framework/pull/31579))
-- Added `Connection refused` and `running with the --read-only option so it cannot execute this statement` to `DetectsLostConnections` ([#31539](https://github.com/laravel/framework/pull/31539))
-
-### Reverted
-- Reverted ["Fixed memory usage on downloading large files"](https://github.com/laravel/framework/pull/31163) ([#31587](https://github.com/laravel/framework/pull/31587))
-
-### Fixed
-- Fixed issue `Content Type not specified` ([#31533](https://github.com/laravel/framework/pull/31533))
-
-### Changed
-- Allowed `cache` helper to have an optional `expiration` parameter ([#31554](https://github.com/laravel/framework/pull/31554))
-- Allowed passing of strings to `TestResponse::dumpSession()` method ([#31583](https://github.com/laravel/framework/pull/31583))
-- Consider mailto: and tel: links in the subcopy actionUrl label in emails ([#31523](https://github.com/laravel/framework/pull/31523), [641a7cd](https://github.com/laravel/framework/commit/641a7cda8280ecd3035616d4ce6434434b116624))
-- Exclude mariaDB from database queue support for new SKIP LOCKED ([fff96e7](https://github.com/laravel/framework/commit/fff96e7df7de470e162a6b7f6dd528e6fe17aadc))
-
-
-## [v6.16.0 (2020-02-18)](https://github.com/laravel/framework/compare/v6.15.1...v6.16.0)
-
-### Added
-- Added Guzzle 7 support ([#31484](https://github.com/laravel/framework/pull/31484))
-- Added `Illuminate\Database\Query\Builder::groupByRaw()` ([#31498](https://github.com/laravel/framework/pull/31498))
-- Added SQLite JSON update support with json_patch ([#31492](https://github.com/laravel/framework/pull/31492))
-
-### Fixed
-- Fixed `appendRow` on console table ([#31469](https://github.com/laravel/framework/pull/31469))
-- Fixed password check in `EloquentUserProvider::retrieveByCredentials()` ([4436662](https://github.com/laravel/framework/commit/4436662a1ee19fc5e9eb76a0651d0de1aedb3ee2))
-
-### Revert
-- Revert table feature in the console output ([4094d78](https://github.com/laravel/framework/commit/4094d785269ce7849557b792f650fb278d48978e))
-
-### Changed
-- Change MySql nullable modifier to allow generated columns to be not null ([#31452](https://github.com/laravel/framework/pull/31452))
-- Throw exception on empty collection in `assertSentTo()` \ `assertNotSentTo()` methods in `NotificationFake` class ([#31471](https://github.com/laravel/framework/pull/31471))
-
-
-## [v6.15.1 (2020-02-12)](https://github.com/laravel/framework/compare/v6.15.0...v6.15.1)
-
-### Added
-- Added `whereNull` and `whereNotNull` to `Collection` ([#31425](https://github.com/laravel/framework/pull/31425))
-- Added `Illuminate\Foundation\Testing\MockStream` class ([#31447](https://github.com/laravel/framework/pull/31447))
-
-### Fixed
-- Fixed `event:list` command for shows non-registered events ([#31444](https://github.com/laravel/framework/pull/31444))
-- Fixed postgres grammar for nested json arrays with ([#31448](https://github.com/laravel/framework/pull/31448), [b3d0da1](https://github.com/laravel/framework/commit/b3d0da164bdf3d5d829384025476ca1b2065c97e))
-
-
-## [v6.15.0 (2020-02-11)](https://github.com/laravel/framework/compare/v6.14.0...v6.15.0)
-
-### Added
-- Added `Illuminate\Auth\Events\Validated` event ([#31357](https://github.com/laravel/framework/pull/31357), [7ddac28](https://github.com/laravel/framework/commit/7ddac28bc08b99ee248b1e4aa559efc3a8bfec8c))
-- Make `Blueprint` support Grammar's `macro` ([#31365](https://github.com/laravel/framework/pull/31365))
-- Added `Macroable` trait to `Illuminate\Console\Scheduling\Schedule` class ([#31354](https://github.com/laravel/framework/pull/31354))
-- Added support `dispatchAfterResponse` in `BusFake` ([#31418](https://github.com/laravel/framework/pull/31418), [e59597f](https://github.com/laravel/framework/commit/e59597f13af3ee6e6467bdb8593844f9db6bb789))
-- Added `Illuminate\Foundation\Exceptions\Handler::getHttpExceptionView()` ([#31420](https://github.com/laravel/framework/pull/31420))
-- Allowed appending of rows to Artisan tables ([#31426](https://github.com/laravel/framework/pull/31426))
-
-### Fixed
-- Fixed `locks` for `sqlsrv` queue ([5868066](https://github.com/laravel/framework/commit/58680668102282fcc4215a48e8947c2c1b051201))
-- Fixed `Illuminate\Events\Dispatcher::hasListeners()` ([#31403](https://github.com/laravel/framework/pull/31403), [c80302e](https://github.com/laravel/framework/commit/c80302e6e9403f9fad71f114d94e758ee0fcbff7))
-- Fixed testing with unencrypted cookies ([#31390](https://github.com/laravel/framework/pull/31390))
-
-### Changed
-- Allowed multiple paths to be passed to migrate fresh and migrate refresh commands ([#31381](https://github.com/laravel/framework/pull/31381))
-- Split Console InteractsWithIO to external trait ([#31376](https://github.com/laravel/framework/pull/31376))
-- Added sms link as valid URL in `UrlGenerator::isValid()` method ([#31382](https://github.com/laravel/framework/pull/31382))
-- Upgrade CommonMark and use the bundled table extension ([#31411](https://github.com/laravel/framework/pull/31411))
-- Ensure `Application::$terminatingCallbacks` are reset on `Application::flush()` ([#31413](https://github.com/laravel/framework/pull/31413))
-- Remove serializer option in `PhpRedisConnector::createClient()` ([#31417](https://github.com/laravel/framework/pull/31417))
-
-
-## [v6.14.0 (2020-02-04)](https://github.com/laravel/framework/compare/v6.13.1...v6.14.0)
-
-### Added
-- Added `Illuminate\Bus\Dispatcher::dispatchAfterResponse()` method ([#31300](https://github.com/laravel/framework/pull/31300), [8a3cdb0](https://github.com/laravel/framework/commit/8a3cdb0622047b1d94b4a754bfe98fb7dc1c174a))
-- Added `Illuminate\Support\Testing\Fakes\QueueFake::assertPushedWithoutChain()` method ([#31332](https://github.com/laravel/framework/pull/31332), [7fcc6b5](https://github.com/laravel/framework/commit/7fcc6b5feb004f57aa61a0fa93c340694ae6a980))
-- Added `Macroable` trait to the `Illuminate\Events\Dispatcher` ([#31317](https://github.com/laravel/framework/pull/31317))
-- Added `NoPendingMigrations` event ([#31289](https://github.com/laravel/framework/pull/31289), [739fcea](https://github.com/laravel/framework/commit/739fcea5cfcc9079d3ca8e5aa9673f706741418e))
-
-### Fixed
-- Used current DB to create Doctrine Connections ([#31278](https://github.com/laravel/framework/pull/31278))
-- Removed duplicate output when publishing tags in `vendor:publish` command ([#31333](https://github.com/laravel/framework/pull/31333))
-- Fixed plucking column name containing a space ([#31299](https://github.com/laravel/framework/pull/31299))
-- Fixed bug with wildcard caching in event dispatcher ([#31313](https://github.com/laravel/framework/pull/31313))
-- Fixed infinite value for RedisStore ([#31348](https://github.com/laravel/framework/pull/31348))
-- Fixed dropping columns in SQLServer with default value ([#31341](https://github.com/laravel/framework/pull/31341))
-
-### Changed
-- Use SKIP LOCKED for mysql 8.1 and pgsql 9.5 queue workers ([#31287](https://github.com/laravel/framework/pull/31287))
-- Don't merge middleware from method and property in `Illuminate\Bus\Queueable::middleware()` ([#31301](https://github.com/laravel/framework/pull/31301))
-- Split `specifyParameter()` from `Illuminate\Console\Command` to `HasParameters` trait ([#31254](https://github.com/laravel/framework/pull/31254))
-- Make sure changing a database field to json does not include charset ([#31343](https://github.com/laravel/framework/pull/31343))
-
-
-## [v6.13.1 (2020-01-28)](https://github.com/laravel/framework/compare/v6.13.0...v6.13.1)
-
-### Fixed
-- Fixed error on `queue:work` database on Windows ([#31277](https://github.com/laravel/framework/pull/31277))
-
-
-## [v6.13.0 (2020-01-28)](https://github.com/laravel/framework/compare/v6.12.0...v6.13.0)
-
-### Added
-- Added `--api` option to the `make:model` command ([#31197](https://github.com/laravel/framework/pull/31197), [#31222](https://github.com/laravel/framework/pull/31222))
-- Added `PendingResourceRegistration::shallow()` method ([#31208](https://github.com/laravel/framework/pull/31208), [104c539](https://github.com/laravel/framework/commit/104c539c342d395e2f3c4ba7339df095f83f6352))
-- Allowed formatting an implicit attribute using a closure ([#31246](https://github.com/laravel/framework/pull/31246))
-- Added `Filesystem::ensureDirectoryExists()` method ([8a8eed4](https://github.com/laravel/framework/commit/8a8eed4d157102ef77527891ac1d8f8e85e7afee))
-- Added support to `Storage::url()` for the Ftp driver ([#31258](https://github.com/laravel/framework/pull/31258), [b8790e5](https://github.com/laravel/framework/commit/b8790e56bb7333943db799e6ff6e21a7b01218e0))
-
-### Fixed
-- Fixed laravel migrations when migrating to sql server (dropColumn with default value) ([#31229](https://github.com/laravel/framework/pull/31229))
-- Fixed `handleBeginTransactionException()` method calling pdo property instead of getPdo() method ([#31233](https://github.com/laravel/framework/pull/31233))
-- Fixed channel names when broadcasting via redis ([#31261](https://github.com/laravel/framework/pull/31261))
-- Replace asterisks before validation ([#31257](https://github.com/laravel/framework/pull/31257))
-
-### Changed
-- Reset timeout handler after worker loop ([#31198](https://github.com/laravel/framework/pull/31198))
-
-
-## [v6.12.0 (2020-01-21)](https://github.com/laravel/framework/compare/v6.11.0...v6.12.0)
-
-### Added
-- Added `ServiceProvider::loadFactoriesFrom()` method ([#31133](https://github.com/laravel/framework/pull/31133))
-- Added `TestResponse::dumpSession()` method ([#31131](https://github.com/laravel/framework/pull/31131))
-- Added `Str::isUuid()` method ([#31148](https://github.com/laravel/framework/pull/31148))
-- Restored phpunit 7 support ([#31113](https://github.com/laravel/framework/pull/31113))
-- Added `Request::boolean()` method ([#31160](https://github.com/laravel/framework/pull/31160))
-- Added `Database\Eloquent\FactoryBuilder::createMany()` ([#31171](https://github.com/laravel/framework/pull/31171), [6553d59](https://github.com/laravel/framework/commit/6553d5923959bd947b49eb089053cd430d8968d4))
-- Added missing options for PhpRedis ([#31182](https://github.com/laravel/framework/pull/31182))
-
-### Fixed
-- Fixed `Cache\RedisLock::acquire()` ([#31168](https://github.com/laravel/framework/pull/31168), [8683a3d](https://github.com/laravel/framework/commit/8683a3d721f92e512a83a3e5feb3d0a9bb682560))
-- Fixed database url parsing for connections with no database specified ([#31185](https://github.com/laravel/framework/pull/31185))
-- Prevent ambiguous column with table name prefix ([#31174](https://github.com/laravel/framework/pull/31174))
-
-### Optimization
-- Fixed memory usage on downloading large files ([#31163](https://github.com/laravel/framework/pull/31163))
-
-### Changed
-- Replace Event Dispatcher in resolved cache repositories when `Event::fake()` is used ([#31119](https://github.com/laravel/framework/pull/31119), [0a70beb](https://github.com/laravel/framework/commit/0a70bebd5ecfd51185a312bbfb60ee7f8ff7eb09))
-
-
-## [v6.11.0 (2020-01-14)](https://github.com/laravel/framework/compare/v6.10.1...v6.11.0)
-
-### Added
-- Added `Illuminate\Database\Eloquent\Builder::firstWhere()` method ([#31089](https://github.com/laravel/framework/pull/31089))
-- Redis Broadcaster: Broadcast to multiple channels at once ([#31108](https://github.com/laravel/framework/pull/31108))
-
-### Fixed
-- Fixed undefined property in `WithFaker::makeFaker()` ([#31083](https://github.com/laravel/framework/pull/31083))
-- Fixed `Str::afterLast()` method ([#31095](https://github.com/laravel/framework/pull/31095))
-- Fixed insert float into MySQL with PHP 7.3 ([#31100](https://github.com/laravel/framework/pull/31100))
-- Fixed refresh on Model with customized pivot attribute name ([#31125](https://github.com/laravel/framework/pull/31125), [678b26b](https://github.com/laravel/framework/commit/678b26b1a9cd0d8a6bef85932420e67a1b20e677))
-
-### Changed
-- Remove all indentation in blade templates ([917ee51](https://github.com/laravel/framework/commit/917ee514d4bbd4162b6ddb385c643df97dcfa7d3))
-- Added mailable names to assertion messages in `MailFake::assertNothingSent()` and `MailFake::assertNothingQueued()` ([#31106](https://github.com/laravel/framework/pull/31106))
-- Search for similar results in `assertDatabaseHas()` ([#31042](https://github.com/laravel/framework/pull/31042), [2103eb7](https://github.com/laravel/framework/commit/2103eb7ccfbb6798e9078d82e0ebffcf87d95b14))
-
-
-## [v6.10.1 (2020-01-08)](https://github.com/laravel/framework/compare/v6.10.0...v6.10.1)
-
-### Changed
-- Updated some blade templates ([f17e347](https://github.com/laravel/framework/commit/f17e347b15e8d27b4e775a8f961bda083326ee8f))
-
-
-## [v6.10.0 (2020-01-07)](https://github.com/laravel/framework/compare/v6.9.0...v6.10.0)
-
-### Added
-- Added `withoutMix()` and `withMix()` test helpers ([#30900](https://github.com/laravel/framework/pull/30900))
-- Added `validateWithBag()` macro to `Request` ([#30896](https://github.com/laravel/framework/pull/30896))
-- Added PHPUnit 9 support ([#30947](https://github.com/laravel/framework/pull/30947), [#30989](https://github.com/laravel/framework/pull/30989))
-- Added `exclude_if` and `exclude_unless` validation rules ([#30835](https://github.com/laravel/framework/pull/30835), [c0fdb56](https://github.com/laravel/framework/commit/c0fdb566831b7ebf34a15bbdfec81dd0039c76f0))
-- Added generated columns (virtual/stored) support for PostgreSQL ([#30971](https://github.com/laravel/framework/pull/30971))
-- Added `mixin` support to Eloquent builder ([#30978](https://github.com/laravel/framework/pull/30978), [28fa74e](https://github.com/laravel/framework/commit/28fa74e8222a57118ae1b590101a35f63b964f81))
-- Make the Redis Connection `Macroable` ([#31020](https://github.com/laravel/framework/pull/31020))
-- Added `PackageManifest::config()` method ([#31039](https://github.com/laravel/framework/pull/31039), [9b73540](https://github.com/laravel/framework/commit/9b73540cbe7ebb67b0a0a127743791511e5ae8fe))
-- Added `redis.connection` aliases in container ([#31034](https://github.com/laravel/framework/pull/31034))
-- Extracted `CallsCommands` feature from `Illuminate\Console\Command` ([#31026](https://github.com/laravel/framework/pull/31026), [ef72716](https://github.com/laravel/framework/commit/ef72716db85f36e003fb92d2625adabbf94d5afe))
-- Allowed absolute file path for `Storage::putFile()` ([#31040](https://github.com/laravel/framework/pull/31040))
-
-### Changed
-- Handled passing too many arguments to `@slot` ([#30893](https://github.com/laravel/framework/pull/30893), [878f159](https://github.com/laravel/framework/commit/878f15922523e748bfbfdf50f40269f8ffe20d9d))
-- Make `ThrottleRequestsException` extend `TooManyRequestsHttpException` ([#30943](https://github.com/laravel/framework/pull/30943))
-- Used `league/commonmark` instead of `erusev/parsedown` for mail markdown ([#30982](https://github.com/laravel/framework/pull/30982))
-- Regenerate token on logout ([b2af428](https://github.com/laravel/framework/commit/b2af428e60188ea55fb06f3a1e0b0b0c690bbe86))
-- Make `RedisQueue::getConnection()` public ([#31016](https://github.com/laravel/framework/pull/31016))
-- Resolve `Faker\Generator` out of the container if it is bound ([#30992](https://github.com/laravel/framework/pull/30992))
-
-### Fixed
-- Fixed `float` database types in `Blueprint` ([#30891](https://github.com/laravel/framework/pull/30891))
-- Fixed code that depended on `getenv()` ([#30924](https://github.com/laravel/framework/pull/30924))
-- Prevented making actual pdo connections while reconnecting ([#30998](https://github.com/laravel/framework/pull/30998))
-- Fixed `exclude_if` \ `exclude_unless` validation rules for nested data ([#31006](https://github.com/laravel/framework/pull/31006))
-- Update `dev-master` branch aliases from `6.0-dev` to `6.x-dev` ([d06cc79](https://github.com/laravel/framework/commit/d06cc79d92c18b0ff423466554eeed0aea09ae51))
-- Utilize Symfony’s PSR Factory. Fixed [#31017](https://github.com/laravel/framework/issues/31017) ([#31018](https://github.com/laravel/framework/pull/31018), [#31027](https://github.com/laravel/framework/pull/31027))
-- Used model connection by default in the database validators ([#31037](https://github.com/laravel/framework/pull/31037))
-
-### Optimization
-- Optimize Service Provider registration ([#30960](https://github.com/laravel/framework/pull/30960))
-- Optimize `runningInConsole` method ([#30922](https://github.com/laravel/framework/pull/30922))
-- Delay instantiation of translator and view factory ([#31009](https://github.com/laravel/framework/pull/31009))
-
-### Deprecated
-- Deprecate `PendingMail::sendNow()` and remove unneeded check ([#30999](https://github.com/laravel/framework/pull/30999))
-
-### Reverted
-- Reverted [TransactionCommitted event doesn’t contain transaction level I’d expect it to](https://github.com/laravel/framework/pull/30883) ([#31051](https://github.com/laravel/framework/pull/31051))
-
-### Refactoring
-- Refactoring of `BladeCompiler::compileString()` method ([08887f9](https://github.com/laravel/framework/commit/08887f99d05bb85affd3cbc6f7fdbc32a9297eea))
-
-
-## [v6.9.0 (2019-12-19)](https://github.com/laravel/framework/compare/v6.8.0...v6.9.0)
-
-### Added
-- Added `MIME` type argument to `Testing/FileFactory::create()` ([#30870](https://github.com/laravel/framework/pull/30870))
-- Added `seed` to `all` option when creating the model (`make:model` command) ([#30874](https://github.com/laravel/framework/pull/30874))
-- Allowed configurable emergency logger ([#30873](https://github.com/laravel/framework/pull/30873))
-- Added `prependMiddlewareToGroup()` / `appendMiddlewareToGroup()` / `prependToMiddlewarePriority()` / `appendToMiddlewarePriority()` to `Kernal` for manipulating middleware ([6f33feb](https://github.com/laravel/framework/commit/6f33feba124d4a7ff2af4f3ed18583d67fb68f7c))
-
-### Reverted
-- Reverted [Added `Model::setRawAttribute()`](https://github.com/laravel/framework/pull/30853) ([#30885](https://github.com/laravel/framework/pull/30885))
-
-### Fixed
-- Fixed `Builder::withCount()` binding error when a scope is added into related model with binding in a sub-select ([#30869](https://github.com/laravel/framework/pull/30869))
-
-### Changed
-- Don't throw exception when session is not set in `AuthenticateSession` middleware ([4de1d24](https://github.com/laravel/framework/commit/4de1d24cf390f07d4f503973e5556f73060fbb31))
-
-
-## [v6.8.0 (2019-12-17)](https://github.com/laravel/framework/compare/v6.7.0...v6.8.0)
-
-### Added
-- Allowed packages to use custom markdown mail themes ([#30814](https://github.com/laravel/framework/pull/30814), [2206d52](https://github.com/laravel/framework/commit/2206d5223606f5a24e7e3bf0ba1f25b343dfcc6b))
-- Added more quotes to `Inspiring` ([4a7d566](https://github.com/laravel/framework/commit/4a7d566ff4a330970cfaa03df4c988c580804a7f), [9693ced](https://github.com/laravel/framework/commit/9693cedbfc1fb0e38a8e688375e5b2ce5273b75f))
-- Added support for nested arrays in `TestResponse::assertViewHas()` ([#30837](https://github.com/laravel/framework/pull/30837))
-- Added `Model::setRawAttribute()` ([#30853](https://github.com/laravel/framework/pull/30853))
-- Added `--force` option to the `make:controller` resource ([#30856](https://github.com/laravel/framework/pull/30856))
-- Allowed passing an array to `Resource::collection()` ([#30800](https://github.com/laravel/framework/pull/30800))
-- Implemented ArrayAccess on `JsonResponse` and `TestResponse` ([#30817](https://github.com/laravel/framework/pull/30817))
-- Added `--seed` option to the `make::model` resource ([#30828](https://github.com/laravel/framework/pull/30828), [2cd9417](https://github.com/laravel/framework/commit/2cd9417064123fd6c9114788d331659ede568dbf))
-
-### Fixed
-- Fixed two index creation instead of one when using `change()` ([#30843](https://github.com/laravel/framework/pull/30843))
-- Prevent duplicate attachments in the `Mailable` ([3c8ccc2](https://github.com/laravel/framework/commit/3c8ccc2fb4ec03572076e6df71608f6bbb7d71e1))
-- Fixed `ServiceProvider` for PHP 7.4 in `Lumen` ([#30819](https://github.com/laravel/framework/pull/30819))
-- Fixed non-eloquent model validation in database validation rules ([#30840](https://github.com/laravel/framework/pull/30840))
-
-### Changed
-- Changed `rescue()` helper ([#30838](https://github.com/laravel/framework/pull/30838))
-- Added previous exception to `EntryNotFoundException` thrown in `Container.php` ([#30862](https://github.com/laravel/framework/pull/30862))
-- Changed `DatabaseNotification::$keyType` to match `uuid` ([#30823](https://github.com/laravel/framework/pull/30823))
-
-
-## [v6.7.0 (2019-12-10)](https://github.com/laravel/framework/compare/v6.6.2...v6.7.0)
-
-### Added
-- Added `getQualifiedCreatedAtColumn()` and `getQualifiedUpdatedAtColumn()` methods to `HasTimestamps` concern ([#30792](https://github.com/laravel/framework/pull/30792))
-- Added `exceptionContext()` method to the `Exceptions\Handler` ([#30780](https://github.com/laravel/framework/pull/30780))
-- Added ability for postmark transport to throw errors ([#30799](https://github.com/laravel/framework/pull/30799), [4320b82](https://github.com/laravel/framework/commit/4320b82f848d63d41df95860ed3bf595202873a9))
-- Added `withoutRelations()` and `unsetRelations()` methods to `HasRelationships` ([#30802](https://github.com/laravel/framework/pull/30802))
-- Added `ResourceCollection::preserveQueryParameters()` for preserve query parameters on paginated api resources ([#30745](https://github.com/laravel/framework/pull/30745), [e92a708](https://github.com/laravel/framework/commit/e92a70800671187cc30a39e965144101d5db169a))
-
-### Fixed
-- Fixed explicit models in string-based database validation rules ([#30790](https://github.com/laravel/framework/pull/30790))
-- Fixed `Routing\RedirectController()` ([#30783](https://github.com/laravel/framework/pull/30783))
-
-### Changed
-- Reconnect `PhpRedisConnection` on connection missing ([#30778](https://github.com/laravel/framework/pull/30778))
-- Improved ShouldBroadcastNow performance ([#30797](https://github.com/laravel/framework/pull/30797), [5b3cc97](https://github.com/laravel/framework/commit/5b3cc9752d873be96ac34d9062cc35aa9c95bd59))
-
-
-## [v6.6.2 (2019-12-05)](https://github.com/laravel/framework/compare/v6.6.1...v6.6.2)
-
-### Added
-- Added `Illuminate\Support\Facades\Facade::partialMock()` method ([#30754](https://github.com/laravel/framework/pull/30754))
-- Added of support `retryAfter` option on queued listeners ([#30743](https://github.com/laravel/framework/pull/30743))
-
-### Fixed
-- Fixed zero parameter for routes ([#30768](https://github.com/laravel/framework/pull/30768))
-
-### Changed
-- Changed `getAllViews()` method visibility from `protected` to `public` in all schema builders ([#30757](https://github.com/laravel/framework/pull/30757))
-
-
-## [v6.6.1 (2019-12-03)](https://github.com/laravel/framework/compare/v6.6.0...v6.6.1)
-
-### Added
-- Added `setInput()` and `setOutput()` methods to `Illuminate\Console\Command` ([#30706](https://github.com/laravel/framework/pull/30706))
-
-### Fixed
-- Fixed RouteUrlGenerator with empty string for required parameter ([#30714](https://github.com/laravel/framework/pull/30714))
-
-### Changed
-- Force usage getting timestamps columns in model ([#30697](https://github.com/laravel/framework/pull/30697))
-
-### Reverted
-- Revert [Added `Illuminate\Routing\Router::head()`](https://github.com/laravel/framework/pull/30646) ([#30710](https://github.com/laravel/framework/pull/30710))
-
-
-## [v6.6.0 (2019-11-26)](https://github.com/laravel/framework/compare/v6.5.2...v6.6.0)
-
-### Added
-- Allowed explicit Model definitions in database rules ([#30653](https://github.com/laravel/framework/pull/30653), [9beceac](https://github.com/laravel/framework/commit/9beceacb1a1b8ba37cd0f775cb2fb81e21ba4c31))
-- Allowed `ResponseFactory::view()` to return first view ([#30651](https://github.com/laravel/framework/pull/30651))
-- Added `Foundation\Testing\Concerns\InteractsWithDatabase::assertDeleted()` method ([#30648](https://github.com/laravel/framework/pull/30648))
-- Added `Illuminate\Routing\Router::head()` ([#30646](https://github.com/laravel/framework/pull/30646))
-- Added `wherePivotNotIn()` and `orWherePivotNotIn()` methods to `BelongsToMany` ([#30671](https://github.com/laravel/framework/pull/30671))
-- Added options in `SqlServerConnector` to encrypt data with Azure Key vault ([#30636](https://github.com/laravel/framework/pull/30636))
-
-### Fixed
-- Fixed errors in `Illuminate\Http\Testing\FileFactory::create()` ([#30632](https://github.com/laravel/framework/pull/30632))
-- Fixed routing bug that causes missing parameters to be ignored ([#30659](https://github.com/laravel/framework/pull/30659))
-
-### Changed
-- Updated error message in `PhpRedisConnector::createClient()` if redis extension is not loaded ([#30673](https://github.com/laravel/framework/pull/30673), [184a0f4](https://github.com/laravel/framework/commit/184a0f45bc9959ebadf36a7dd6966c2bfcb96191))
-- Updated `windows_os()` helper to use PHP_OS_FAMILY ([#30660](https://github.com/laravel/framework/pull/30660))
-
-
-## [v6.5.2 (2019-11-19)](https://github.com/laravel/framework/compare/v6.5.1...v6.5.2)
-
-### Added
-- Allowed model serialization on jobs for typed properties ([#30604](https://github.com/laravel/framework/pull/30604), [#30605](https://github.com/laravel/framework/pull/30605), [920c364](https://github.com/laravel/framework/commit/920c3640269b7c1dd0f26e5b6f765ca9b7f99366))
-- Allowed fallback when facade root accessor has previously been resolved ([#30616](https://github.com/laravel/framework/pull/30616))
-- Added support for separation between `geometry` and `geography` types for `Postgres` ([#30545](https://github.com/laravel/framework/pull/30545))
-- Added `createWithContent()` method to `Illuminate\Http\Testing\File` and `Illuminate\Http\Testing\FileFactory` ([2cc6fa3](https://github.com/laravel/framework/commit/2cc6fa33732118cc71c74209b02382b989689b63), [181db51](https://github.com/laravel/framework/commit/181db51595d546cbd24b3fac0cb276255e147286))
-
-### Refactoring
-- Improved `PostgresGrammar::formatPostGisType()` method readability ([#30593](https://github.com/laravel/framework/pull/30593))
-
-### Changed
-- Added `symfony/debug` dependency to `illuminate/pipeline` ([#30611](https://github.com/laravel/framework/pull/30611))
-- Override `BelongsToMany::cursor()` to hydrate pivot relations ([#30580](https://github.com/laravel/framework/pull/30580))
-- Ignore Redis prefix when verifying channel access in RedisBroadcaster ([#30597](https://github.com/laravel/framework/pull/30597), [d77ce36](https://github.com/laravel/framework/commit/d77ce36917510d5a6800dd4116a4e18b7bf720b3))
-
-
-## [v6.5.1 (2019-11-12)](https://github.com/laravel/framework/compare/v6.5.0...v6.5.1)
-
-### Added
-- Added `includeUnless` Blade directive ([#30538](https://github.com/laravel/framework/pull/30538))
-
-### Fixed
-- Fixed default value for $count in `PhpRedisConnection::spop()` method ([#30546](https://github.com/laravel/framework/pull/30546))
-- Fixed breaking compatibility with multi-schema postgres ([#30562](https://github.com/laravel/framework/pull/30562), [6460d2b](https://github.com/laravel/framework/commit/6460d2b1bd89f470a76f5c2c3bddd390fe430e0f))
-- Fixed `Model::isDirty()` with `collection` / `object` casts ([#30565](https://github.com/laravel/framework/pull/30565))
-- Fixed `bcc` in `MailgunTransport::send()` ([#30569](https://github.com/laravel/framework/pull/30569))
-
-### Changed
-- Remove `illuminate/support` dependency from `Container` package ([#30518](https://github.com/laravel/framework/pull/30518), [#30528](https://github.com/laravel/framework/pull/30528))
-
-
-## [v6.5.0 (2019-11-05)](https://github.com/laravel/framework/compare/v6.4.1...v6.5.0)
-
-### Added
-- Added `LazyCollection::remember()` method ([#30443](https://github.com/laravel/framework/pull/30443))
-- Added `Str::afterLast()` and `Str::beforeLast()` methods ([#30507](https://github.com/laravel/framework/pull/30507))
-- Added `existsOr()` and `doesntExistOr()` methods to the query builder ([#30495](https://github.com/laravel/framework/pull/30495))
-- Added `unless` condition to Blade custom `if` directives ([#30492](https://github.com/laravel/framework/pull/30492))
-
-### Changed
-- Added reconnect if missing connection when beginning transaction ([#30474](https://github.com/laravel/framework/pull/30474))
-- Set Redis cluster prefix with PhpRedis ([#30461](https://github.com/laravel/framework/pull/30461))
-
-
-## [v6.4.1 (2019-10-29)](https://github.com/laravel/framework/compare/v6.4.0...v6.4.1)
-
-### Added
-- Added `ScheduledTaskSkipped` event when a scheduled command was filtered from running ([#30407](https://github.com/laravel/framework/pull/30407))
-- Added `Login timeout expired` to `DetectsLostConnections` ([#30362](https://github.com/laravel/framework/pull/30362))
-- Added `missing` method to `Illuminate\Filesystem\Filesystem` and `Illuminate\Filesystem\FilesystemAdapter` classes ([#30441](https://github.com/laravel/framework/pull/30441))
-
-### Changed
-- Make `vendor:publish` command more informative ([#30408](https://github.com/laravel/framework/pull/30408), [65d040d](https://github.com/laravel/framework/commit/65d040d44f1cef3830748ec59c0056bc2418dca6))
-- Accepted underscores URL in the `URL` validator ([#30417](https://github.com/laravel/framework/pull/30417))
-- Updated `artisan down` output to be consistent with `artisan up` ([#30422](https://github.com/laravel/framework/pull/30422))
-- Changed `!empty` to `isset` for changing redis database ([#30420](https://github.com/laravel/framework/pull/30420))
-- Throw an exception when signing route got in parameter keys `signature` ([#30444](https://github.com/laravel/framework/pull/30444), [71af732](https://github.com/laravel/framework/commit/71af732b6b00ab148cd23b95aca4e05bcb86c242))
-
-### Fixed
-- Fixed of retrieving view config in `ServiceProvider::loadViewsFrom()` for Lumen ([#30404](https://github.com/laravel/framework/pull/30404))
-
-
-## [v6.4.0 (2019-10-23)](https://github.com/laravel/framework/compare/v6.3.0...v6.4.0)
-
-### Added
-- Added `missing()` method to `Request` class ([#30320](https://github.com/laravel/framework/pull/30320))
-- Added `Pipeline::pipes()` method ([#30346](https://github.com/laravel/framework/pull/30346))
-- Added `TestResponse::assertCreated()` method ([#30368](https://github.com/laravel/framework/pull/30368))
-
-### Changed
-- Added `connection is no longer usable` to `DetectsLostConnections` ([#30362](https://github.com/laravel/framework/pull/30362))
-- Implemented parse ID on find method for many to many relation ([#30359](https://github.com/laravel/framework/pull/30359))
-- Improvements on subqueries ([#30307](https://github.com/laravel/framework/pull/30307), [3f3b621](https://github.com/laravel/framework/commit/3f3b6214cc3353156a490d88fc8f0c148da400d5))
-- Pass mail data to theme css in `Markdown::render()` method ([#30376](https://github.com/laravel/framework/pull/30376))
-- Handle ajax requests in RequirePassword middleware ([#30390](https://github.com/laravel/framework/pull/30390), [331c354](https://github.com/laravel/framework/commit/331c354e586a5a27a9edc9b9a49d23aa872e4b32))
-
-### Fixed
-- Fixed `retry()` with `$times` value less then 1 ([#30356](https://github.com/laravel/framework/pull/30356))
-- Fixed `last_modified` option in `SetCacheHeader` ([#30335](https://github.com/laravel/framework/pull/30335))
-- Fixed the Filesystem manager's exception on unsupported driver ([#30331](https://github.com/laravel/framework/pull/30331), [#30369](https://github.com/laravel/framework/pull/30369))
-- Fixed `shouldQueue()` check for bound event listeners ([#30378](https://github.com/laravel/framework/pull/30378))
-- Used exit code `1` when migration table not found ([#30321](https://github.com/laravel/framework/pull/30321))
-- Alleviate breaking change introduced by password confirm feature ([#30389](https://github.com/laravel/framework/pull/30389))
-
-### Security:
-- Password Reset Security fix ([23041e9](https://github.com/laravel/framework/commit/23041e99833630d93cc7672bd7087eaa350c3a59), [a934160](https://github.com/laravel/framework/commit/a9341609705e2f8febcd356cdfa33391ec6538c7))
-
-
-## [v6.3.0 (2019-10-15)](https://github.com/laravel/framework/compare/v6.2.0...v6.3.0)
-
-### Added
-- Added ability to override `setUserPassword` on password reset ([#30218](https://github.com/laravel/framework/pull/30218))
-- Added firing `deleting` / `deleted` events in `MorphPivot` ([#30229](https://github.com/laravel/framework/pull/30229))
-- Added locking mechanism for the array cache driver ([#30253](https://github.com/laravel/framework/pull/30253))
-- Added `dropAllViews` functionality to the SQL Server builder ([#30222](https://github.com/laravel/framework/pull/30222))
-
-### Optimization
-- Optimize eager loading memory handling ([#30248](https://github.com/laravel/framework/pull/30248))
-
-### Fixed
-- Fixed extra `?` for empty query string in `RouteUrlGenerator::getRouteQueryString()` ([#30280](https://github.com/laravel/framework/pull/30280))
-
-### Changed
-- Updated list of URI schemes for `Url` validator ([#30220](https://github.com/laravel/framework/pull/30220))
-- Added schema name when dropping all FKs in SQL Server ([#30221](https://github.com/laravel/framework/pull/30221))
-- Used contracts in `RequirePassword` middleware ([#30215](https://github.com/laravel/framework/pull/30215))
-- Added ability to return array in `receivesBroadcastNotificationsOn` if `channelName` is array ([#30242](https://github.com/laravel/framework/pull/30242), [2faadcd](https://github.com/laravel/framework/commit/2faadcd288cdc86cf7a1a3644e68e5e0ce641a8b))
-
-
-## [v6.2.0 (2019-10-08)](https://github.com/laravel/framework/compare/v6.1.0...v6.2.0)
-
-### Added
-- Added support for callable objects in `Container::call()` ([#30156](https://github.com/laravel/framework/pull/30156))
-- Add multipolygonz type for postgreSQL ([#30173](https://github.com/laravel/framework/pull/30173))
-- Add "unauthenticated" method in auth middleware ([#30177](https://github.com/laravel/framework/pull/30177))
-- Add partialMock shorthand ([#30202](https://github.com/laravel/framework/pull/30202))
-- Allow Storage::put to accept a Psr StreamInterface ([#30179](https://github.com/laravel/framework/pull/30179))
-- Implement new password rule and password confirmation ([#30214](https://github.com/laravel/framework/pull/30214))
-
-### Changed
-- Remove unnecessary param passed to updatePackageArray method ([#30155](https://github.com/laravel/framework/pull/30155))
-- Add optional connection name to DatabaseUserProvider ([#30154](https://github.com/laravel/framework/pull/30154))
-- Remove brackets arround URL php artisan serve ([#30168](https://github.com/laravel/framework/pull/30168))
-- Apply limit to database rather than collection ([#30148](https://github.com/laravel/framework/pull/30148))
-- Allow to use scoped macro in nested queries ([#30127](https://github.com/laravel/framework/pull/30127))
-- Added array to json conversion for sqlite ([#30133](https://github.com/laravel/framework/pull/30133))
-- Use the `policies()` method instead of the property policies ([#30189](https://github.com/laravel/framework/pull/30189))
-- Split hasValidSignature method ([#30208](https://github.com/laravel/framework/pull/30208))
-
-### Fixed
-- `validateDimensions()` handle `image/svg` MIME ([#30204](https://github.com/laravel/framework/pull/30204))
-
-
-## [v6.1.0 (2019-10-01)](https://github.com/laravel/framework/compare/v6.0.4...v6.1.0)
-
-### Added
-- Added `Illuminate\Support\LazyCollection::eager()` method ([#29832](https://github.com/laravel/framework/pull/29832))
-- Added `forgetChannel()` and `getChannels()` methods to `Illuminate\Log\LogManager` ([#30132](https://github.com/laravel/framework/pull/30132), [a52a0dd](https://github.com/laravel/framework/commit/a52a0dd239262f31edfaefe9a99213cccefc2f36))
-- Added `Illuminate\Foundation\Testing\TestResponse::assertNoContent()` method ([#30125](https://github.com/laravel/framework/pull/30125))
-- Added `InteractsWithQueue` to `SendQueueNotifications` ([#30140](https://github.com/laravel/framework/pull/30140))
-- Added `SendQueueNotifications::retryUntil()` method ([#30141](https://github.com/laravel/framework/pull/30141))
-- Added methods for sending cookies with test requests ([#30101](https://github.com/laravel/framework/pull/30101))
-- Added support of job middleware for queued notifications ([#30070](https://github.com/laravel/framework/pull/30070))
-
-### Fixed
-- Fixed migration class duplicate check in `make:migration` command ([#30095](https://github.com/laravel/framework/pull/30095))
-- Fixed monolog v2 handler preparation ([#30123](https://github.com/laravel/framework/pull/30123))
-- Fixed return of callback value for DurationLimiter ([#30143](https://github.com/laravel/framework/pull/30143))
-
-### Changed
-- Added runtime information output for seeders ([#30086](https://github.com/laravel/framework/pull/30086))
-- Added strict parameter to `Illuminate\Foundation\Testing\TestResponse::assertJsonPath()` ([#30142](https://github.com/laravel/framework/pull/30142))
-- Added `deletedAtColumn` optional parameter to `Foundation\Testing\Concerns\InteractsWithDatabase::assertSoftDeleted()` ([#30111](https://github.com/laravel/framework/pull/30111))
-
-### Improved
-- Improved `AuthServiceProvider::registerEventRebindHandler()` in case if guard is not initialized ([#30105](https://github.com/laravel/framework/pull/30105))
-
-
-## [v6.0.4 (2019-09-24)](https://github.com/laravel/framework/compare/v6.0.3...v6.0.4)
-
-### Added
-- Added `TestResponse::assertJsonPath()` method ([#29957](https://github.com/laravel/framework/pull/29957))
-- Added `hasMacro` / `getGlobalMacro` / `hasGlobalMacro` methods to `Eloquent Builder` ([#30008](https://github.com/laravel/framework/pull/30008))
-- Added `Illuminate\Database\Eloquent\Relations\BelongsToMany::getPivotColumns()` method ([#30049](https://github.com/laravel/framework/pull/30049))
-- Added `ScheduledTaskFinished` / `ScheduledTaskStarting` events to signal when scheduled task runs ([#29888](https://github.com/laravel/framework/pull/29888))
-- Allowing adding command arguments and options with `InputArgument` / `InputOption` objects ([#29987](https://github.com/laravel/framework/pull/29987))
-
-### Fixed
-- Fixed `__()` with `null` parameter ([#29967](https://github.com/laravel/framework/pull/29967))
-- Fixed modifying `updated_at` column on custom pivot model ([#29970](https://github.com/laravel/framework/pull/29970))
-- Fixed `Illuminate\Redis\Limiters\ConcurrencyLimiter` ([#30005](https://github.com/laravel/framework/pull/30005))
-- Fixed `VerifyCsrfToken` middleware when response object instance of `Responsable` interface ([#29972](https://github.com/laravel/framework/pull/29972))
-- Fixed Postgresql column creation without optional precision ([#29873](https://github.com/laravel/framework/pull/29873))
-- Fixed migrations orders with multiple path with certain filenames ([#29996](https://github.com/laravel/framework/pull/29996))
-- Fixed adding `NotFoundHttpException` to "allowed" exceptions in tests ([#29975](https://github.com/laravel/framework/pull/29975))
-
-### Changed
-- Make it possible to disable encryption via `0` / `false` ([#29985](https://github.com/laravel/framework/pull/29985))
-- Allowed a symfony file instance in validate dimensions ([#30009](https://github.com/laravel/framework/pull/30009))
-- Create storage fakes with custom configuration ([#29999](https://github.com/laravel/framework/pull/29999))
-- Set locale in `PendingMail` only if locale present conditionally ([dd1e0a6](https://github.com/laravel/framework/commit/dd1e0a604713ddae21e6a893e4f605a6777300e8))
-- Improved sorting of imports alphabetically on class generation from stub ([#29951](https://github.com/laravel/framework/pull/29951))
-
-### Refactoring
-- Changed imports to Alpha ordering in stubs ([#29954](https://github.com/laravel/framework/pull/29954), [#29958](https://github.com/laravel/framework/pull/29958))
-- Used value helper where possible ([#29959](https://github.com/laravel/framework/pull/29959))
-- Improved readability in `auth.throttle` translation ([#30011](https://github.com/laravel/framework/pull/30011), [#30017](https://github.com/laravel/framework/pull/30017))
-
-
-## [v6.0.3 (2019-09-10)](https://github.com/laravel/framework/compare/v6.0.2...v6.0.3)
-
-### Reverted
-- Reverted [Wrapped `MySQL` default values in parentheses](https://github.com/laravel/framework/pull/29878) ([#29943](https://github.com/laravel/framework/pull/29943))
-
-### Refactoring
-- Converted `call_user_func` where appropriate to native calls ([#29932](https://github.com/laravel/framework/pull/29932))
-- Changed imports to Alpha ordering ([#29933](https://github.com/laravel/framework/pull/29933))
-
-
-## [v6.0.2 (2019-09-10)](https://github.com/laravel/framework/compare/v6.0.1...v6.0.2)
-
-### Changed
-- Used `Application::normalizeCachePath()` method to define cache path`s ([#29890](https://github.com/laravel/framework/pull/29890), [ac9dbf6](https://github.com/laravel/framework/commit/ac9dbf6beaded2ad86f5595958c75e3c4b1147ae))
-- Wrapped `MySQL` default values in parentheses ([#29878](https://github.com/laravel/framework/pull/29878))
-
-### Fixed
-- Prevent `event auto discovery` from crashing when trying to instantiate files without php classes ([#29895](https://github.com/laravel/framework/pull/29895))
-- Fix resolving class command via container ([#29869](https://github.com/laravel/framework/pull/29869))
-
-
-## [v6.0.1 (2019-09-06)](https://github.com/laravel/framework/compare/v6.0.0...v6.0.1)
-
-### Fixed
-- Fixed `Schedule::runInBackground()` not fired on Windows ([#29826](https://github.com/laravel/framework/pull/29826))
-
-### Changed
-- Throw `Symfony\Component\Routing\Exception\RouteNotFoundException` instead of `InvalidArgumentException` in `UrlGenerator::route()` ([#29861](https://github.com/laravel/framework/pull/29861))
-
-### Reverted
-- Reverted: [`Extract registered event and login to registered method`](https://github.com/laravel/framework/pull/27807) ([#29875](https://github.com/laravel/framework/pull/29875))
-
-
-## [v6.0.0 (2019-09-03)](https://github.com/laravel/framework/compare/5.8...v6.0.0)
-
-Check the upgrade guide in the [Official Laravel Upgrade Documentation](https://laravel.com/docs/6.0/upgrade). Also you can see some release notes in the [Official Laravel Release Documentation](https://laravel.com/docs/6.x/releases). | true |
Other | laravel | framework | b9624ab7b3b3994a5e962d0f468fcf6c45a198d7.json | Consolidate CHANGELOG.md for 9.x (#35943) | CHANGELOG-8.x.md | @@ -1,569 +0,0 @@
-# Release Notes for 8.x
-
-## [Unreleased](https://github.com/laravel/framework/compare/v8.22.0...8.x)
-
-
-## [v8.22.0 (2021-01-12)](https://github.com/laravel/framework/compare/v8.21.0...v8.22.0)
-
-### Added
-- Added new lines to `DetectsLostConnections` ([#35752](https://github.com/laravel/framework/pull/35752), [#35790](https://github.com/laravel/framework/pull/35790))
-- Added `Illuminate\Support\Testing\Fakes\EventFake::assertNothingDispatched()` ([#35835](https://github.com/laravel/framework/pull/35835))
-- Added reduce with keys to collections and lazy collections ([#35839](https://github.com/laravel/framework/pull/35839))
-
-### Fixed
-- Fixed error from missing null check on PHP 8 in `Illuminate\Validation\Concerns\ValidatesAttributes::validateJson()` ([#35797](https://github.com/laravel/framework/pull/35797))
-- Fix bug with RetryCommand ([4415b94](https://github.com/laravel/framework/commit/4415b94623358bfd1dc2e8f20e4deab0025d2d03), [#35828](https://github.com/laravel/framework/pull/35828))
-- Fixed `Illuminate\Testing\PendingCommand::expectsTable()` ([#35820](https://github.com/laravel/framework/pull/35820))
-- Fixed `morphTo()` attempting to map an empty string morph type to an instance ([#35824](https://github.com/laravel/framework/pull/35824))
-
-### Changes
-- Update `Illuminate\Http\Resources\CollectsResources::collects()` ([1fa20dd](https://github.com/laravel/framework/commit/1fa20dd356af21af6e38d95e9ff2b1d444344fbe))
-- "null" constraint prevents aliasing SQLite ROWID ([#35792](https://github.com/laravel/framework/pull/35792))
-- Allow strings to be passed to the `report` function ([#35803](https://github.com/laravel/framework/pull/35803))
-
-
-## [v8.21.0 (2021-01-05)](https://github.com/laravel/framework/compare/v8.20.1...v8.21.0)
-
-### Added
-- Added command to clean batches table ([#35694](https://github.com/laravel/framework/pull/35694), [33f5ac6](https://github.com/laravel/framework/commit/33f5ac695a55d6cdbadcfe1b46e3409e4a66df16))
-- Added item to list of causedByLostConnection errors ([#35744](https://github.com/laravel/framework/pull/35744))
-- Make it possible to set Postmark Message Stream ID ([#35755](https://github.com/laravel/framework/pull/35755))
-
-### Fixed
-- Fixed `php artisan db` command for the Postgres CLI ([#35725](https://github.com/laravel/framework/pull/35725))
-- Fixed OPTIONS method bug with use same path and diff domain when cache route ([#35714](https://github.com/laravel/framework/pull/35714))
-
-### Changed
-- Ensure DBAL custom type doesn't exists in `Illuminate\Database\DatabaseServiceProvider::registerDoctrineTypes()` ([#35704](https://github.com/laravel/framework/pull/35704))
-- Added missing `dispatchAfterCommit` to `DatabaseQueue` ([#35715](https://github.com/laravel/framework/pull/35715))
-- Set chain queue when inside a batch ([#35746](https://github.com/laravel/framework/pull/35746))
-- Give a more meaningul message when route parameters are missing ([#35706](https://github.com/laravel/framework/pull/35706))
-- Added table prefix to `Illuminate\Database\Console\DumpCommand::schemaState()` ([4ffe40f](https://github.com/laravel/framework/commit/4ffe40fb169c6bcce9193ff56958eca41e64294f))
-- Refresh the retryUntil time on job retry ([#35780](https://github.com/laravel/framework/pull/35780), [45eb7a7](https://github.com/laravel/framework/commit/45eb7a7b1706ae175268731a673f369c0e556805))
-
-
-## [v8.20.1 (2020-12-22)](https://github.com/laravel/framework/compare/v8.20.0...v8.20.1)
-
-### Revert
-- Revert [Clear a cached user in RequestGuard if a request is changed](https://github.com/laravel/framework/pull/35692) ([ca8ccd6](https://github.com/laravel/framework/commit/ca8ccd6757d5639f0e5fb241b3df6878da6ce34e))
-
-
-## [v8.20.0 (2020-12-22)](https://github.com/laravel/framework/compare/v8.19.0...v8.20.0)
-
-### Added
-- Added `Illuminate\Database\DBAL\TimestampType` ([a5761d4](https://github.com/laravel/framework/commit/a5761d4187abea654cb422c2f70054a880ffd2e0), [cff3705](https://github.com/laravel/framework/commit/cff37055cbf031109ae769e8fd6ad1951be47aa6) [382445f](https://github.com/laravel/framework/commit/382445f8487de45a05ebe121837f917b92560a97), [810047e](https://github.com/laravel/framework/commit/810047e1f184f8a4def372885591e4fbb6996b51))
-- Added ability to specify a separate lock connection ([#35621](https://github.com/laravel/framework/pull/35621), [3d95235](https://github.com/laravel/framework/commit/3d95235a6ad8525886071ad68e818a225786064f))
-- Added `Illuminate\Database\Eloquent\Relations\Concerns\InteractsWithPivotTable::syncWithPivotValues()` ([#35644](https://github.com/laravel/framework/pull/35644), [49b3ce0](https://github.com/laravel/framework/commit/49b3ce098d8a612797b195c4e3774b1e00c604c8))
-
-### Fixed
-- Fixed `Illuminate\Validation\Concerns\ValidatesAttributes::validateJson()` for PHP8 ([#35646](https://github.com/laravel/framework/pull/35646))
-- Fixed `assertCookieExpired()` and `assertCookieNotExpired()` methods in `Illuminate\Testing\TestResponse` ([#35637](https://github.com/laravel/framework/pull/35637))
-- Fixed: Account for a numerical array of views in Mailable::renderForAssertions() ([#35662](https://github.com/laravel/framework/pull/35662))
-- Catch DecryptException with invalid X-XSRF-TOKEN in `Illuminate\Foundation\Http\Middleware\VerifyCsrfToken` ([#35671](https://github.com/laravel/framework/pull/35671))
-
-### Changed
-- Check configuration in `Illuminate\Foundation\Console\Kernel::scheduleCache()` ([a253d0e](https://github.com/laravel/framework/commit/a253d0e40d3deb293d54df9f4455879af5365aab))
-- Modify `Model::mergeCasts` to return `$this` ([#35683](https://github.com/laravel/framework/pull/35683))
-- Clear a cached user in RequestGuard if a request is changed ([#35692](https://github.com/laravel/framework/pull/35692))
-
-
-## [v8.19.0 (2020-12-15)](https://github.com/laravel/framework/compare/v8.18.1...v8.19.0)
-
-### Added
-- Delay pushing jobs to queue until database transactions are committed ([#35422](https://github.com/laravel/framework/pull/35422), [095d922](https://github.com/laravel/framework/commit/095d9221e837e7a7d8bd00d14184e619b962173a), [fa34d93](https://github.com/laravel/framework/commit/fa34d93ad0cda78e8956b2680ba7bada02bcabb2), [db0d0ba](https://github.com/laravel/framework/commit/db0d0ba94cf8a5c1e1fa4621bd4a16032aff800d), [d9b803a](https://github.com/laravel/framework/commit/d9b803a1a4898e7d5b3145e51c77499815ce3401), [3e55841](https://github.com/laravel/framework/commit/3e5584165fb66d8228bae79a856eac51ce147df5))
-- Added `Illuminate\View\ComponentAttributeBag::has()` ([#35562](https://github.com/laravel/framework/pull/35562))
-- Create ScheduleListCommand ([#35574](https://github.com/laravel/framework/pull/35574), [97d7834](https://github.com/laravel/framework/commit/97d783449c5330b1e5fb9104f6073869ad3079c1))
-- Introducing Job Encryption ([#35527](https://github.com/laravel/framework/pull/35527), [f80f647](https://github.com/laravel/framework/commit/f80f647852106942e4a0ef3e9963f8f7a99122cf), [8c16156](https://github.com/laravel/framework/commit/8c16156636311e42883d9e84a6d71fa135bc2b73))
-
-### Fixed
-- Handle `Throwable` exceptions on `Illuminate\Redis\Limiters\ConcurrencyLimiter::block()` ([#35546](https://github.com/laravel/framework/pull/35546))
-- Fixed PDO passing in SqlServerDriver ([#35564](https://github.com/laravel/framework/pull/35564))
-- When following redirects, terminate each test request in proper order ([#35604](https://github.com/laravel/framework/pull/35604))
-
-
-## [v8.18.1 (2020-12-09)](https://github.com/laravel/framework/compare/v8.18.0...v8.18.1)
-
-### Fixed
-- Bumped minimum Symfony version ([#35535](https://github.com/laravel/framework/pull/35535))
-- Fixed passing model instances to factories ([#35541](https://github.com/laravel/framework/pull/35541))
-
-
-## [v8.18.0 (2020-12-08)](https://github.com/laravel/framework/compare/v8.17.2...v8.18.0)
-
-### Added
-- Added `Illuminate\Http\Client\Factory::assertSentInOrder()` ([#35525](https://github.com/laravel/framework/pull/35525), [d257ce2](https://github.com/laravel/framework/commit/d257ce2e93dfe52151be3d0386fcc4ea281ca8d5), [2fd1411](https://github.com/laravel/framework/commit/2fd141158eb5aead8aa2afff51bcd98250b6bbe6))
-- Added `Illuminate\Http\Client\Response::handlerStats()` ([#35520](https://github.com/laravel/framework/pull/35520))
-- Added support for attaching existing model instances in factories ([#35494](https://github.com/laravel/framework/pull/35494))
-- Added `assertChained()` and `assertDispatchedWithoutChain()` methods to `Illuminate\Support\Testing\Fakes\BusFake` class ([#35523](https://github.com/laravel/framework/pull/35523), [f1b8cac](https://github.com/laravel/framework/commit/f1b8cacfe2a8863894e258ce35a77decedbea36f), [236c67d](https://github.com/laravel/framework/commit/236c67db52f755bb475ba325148e9053733968aa))
-- Allow testing of html and plain text bodies right off mailables ([afb858a](https://github.com/laravel/framework/commit/afb858ad9c944bd3f9ad56c3e4485527d77a7327), [b7391e4](https://github.com/laravel/framework/commit/b7391e486fc68c1c422668a277eaac2bcbe72b2b))
-
-### Fixed
-- Fixed Application flush method ([#35482](https://github.com/laravel/framework/pull/35482))
-- Fixed mime validation for jpeg files ([#35518](https://github.com/laravel/framework/pull/35518))
-
-### Revert
-- Revert [Added ability to define table name as default morph type](https://github.com/laravel/framework/pull/35257) ([#35533](https://github.com/laravel/framework/pull/35533))
-
-
-## [v8.17.2 (2020-12-03)](https://github.com/laravel/framework/compare/v8.17.1...v8.17.2)
-
-### Added
-- Added `Illuminate\Database\Eloquent\Relations\BelongsToMany::orderByPivot()` ([#35455](https://github.com/laravel/framework/pull/35455), [6f83a50](https://github.com/laravel/framework/commit/6f83a5099725dc47fbec1b0cf1bcc64f80f9dc86))
-
-
-## [v8.17.1 (2020-12-02)](https://github.com/laravel/framework/compare/v8.17.0...v8.17.1)
-
-### Fixed
-- Fixed an issue with the database queue driver ([#35449](https://github.com/laravel/framework/pull/35449))
-
-
-## [v8.17.0 (2020-12-01)](https://github.com/laravel/framework/compare/v8.16.1...v8.17.0)
-
-### Added
-- Added: Transaction aware code execution ([#35373](https://github.com/laravel/framework/pull/35373), [9565598](https://github.com/laravel/framework/commit/95655988ea1fb0c260ca792751e2e9da81afc3a7))
-- Added dd() and dump() to the request object ([#35384](https://github.com/laravel/framework/pull/35384), [c43e08f](https://github.com/laravel/framework/commit/c43e08f98afe5dcf742956510e9ab170ea11ce45))
-- Enqueue all jobs using a enqueueUsing method ([#35415](https://github.com/laravel/framework/pull/35415), [010d4d7](https://github.com/laravel/framework/commit/010d4d7ea7ec5581dfbf8b6ba84b812f8e4cb649), [#35437](https://github.com/laravel/framework/pull/35437))
-
-### Fixed
-- Fix issue with polymorphic morphMaps with literal 0 ([#35364](https://github.com/laravel/framework/pull/35364))
-- Fixed Self-Relation issue in withAggregate method ([#35392](https://github.com/laravel/framework/pull/35392), [aec5cca](https://github.com/laravel/framework/commit/aec5cca4ace65bc4b4ca054170b645f1073ac9ca), [#35394](https://github.com/laravel/framework/pull/35394))
-- Fixed Use PHP_EOL instead of `\n` in PendingCommand ([#35409](https://github.com/laravel/framework/pull/35409))
-- Fixed validating image/jpeg images after Symfony/Mime update ([#35419](https://github.com/laravel/framework/pull/35419))
-- Fixed fail to morph with custom casting to objects ([#35420](https://github.com/laravel/framework/pull/35420))
-- Fixed `Illuminate\Collections\Collection::sortBy()` ([307f6fb](https://github.com/laravel/framework/commit/307f6fb8d9579427a9521a07e8700355a3e9d948))
-- Don't overwrite minute and hour when specifying a time with twiceMonthly() ([#35436](https://github.com/laravel/framework/pull/35436))
-
-### Changed
-- Make DownCommand retryAfter available to prerendered view ([#35357](https://github.com/laravel/framework/pull/35357), [b1ee97e](https://github.com/laravel/framework/commit/b1ee97e5ae03dae293e3256b8c3013209d0fd9b0))
-- Set default value on cloud driver ([0bb7fe4](https://github.com/laravel/framework/commit/0bb7fe4758d617b07b84f6fabfcfe2ca2cdb0964))
-- Update Tailwind pagination focus styles ([#35365](https://github.com/laravel/framework/pull/35365))
-- Redis: allow to pass connection name ([#35402](https://github.com/laravel/framework/pull/35402))
-- Change Wormhole to use the Date Factory ([#35421](https://github.com/laravel/framework/pull/35421))
-
-
-## [v8.16.1 (2020-11-25)](https://github.com/laravel/framework/compare/v8.16.0...v8.16.1)
-
-### Fixed
-- Fixed reflection exception in `Illuminate\Routing\Router::gatherRouteMiddleware()` ([c6e8357](https://github.com/laravel/framework/commit/c6e8357e19b10a800df8a67446f23310f4e83d1f))
-
-
-## [v8.16.0 (2020-11-24)](https://github.com/laravel/framework/compare/v8.15.0...v8.16.0)
-
-### Added
-- Added `Illuminate\Console\Concerns\InteractsWithIO::withProgressBar()` ([4e52a60](https://github.com/laravel/framework/commit/4e52a606e91619f6082ed8d46f8d64f9d4dbd0b2), [169fd2b](https://github.com/laravel/framework/commit/169fd2b5156650a067aa77a38681875d2a6c5e57))
-- Added `Illuminate\Console\Concerns\CallsCommands::callSilently()` as alias for `callSilent()` ([7f3101b](https://github.com/laravel/framework/commit/7f3101bf6e8a0f048a243a55be7fc79eb359b609), [0294433](https://github.com/laravel/framework/commit/029443349294e3b6e7bebfe9c23a51a9821ec497))
-- Added option to release unique job locks before processing ([#35255](https://github.com/laravel/framework/pull/35255), [b53f13e](https://github.com/laravel/framework/commit/b53f13ef6c8625176defcb83d2fb8d4d5887d068))
-- Added ably broadcaster ([e0f3f8e](https://github.com/laravel/framework/commit/e0f3f8e8241e1ea34a3a3b8c543871cdc00290bf), [6381aa9](https://github.com/laravel/framework/commit/6381aa994756429156b7376e98606458b052b1d7))
-- Added ability to define table name as default morph type ([#35257](https://github.com/laravel/framework/pull/35257))
-- Allow overriding the MySQL server version for database queue driver ([#35263](https://github.com/laravel/framework/pull/35263))
-- Added `Illuminate\Foundation\Testing\Wormhole::back()` ([#35261](https://github.com/laravel/framework/pull/35261))
-- Support delaying notifications per channel ([#35273](https://github.com/laravel/framework/pull/35273))
-- Allow sorting on multiple criteria ([#35277](https://github.com/laravel/framework/pull/35277), [53eb307](https://github.com/laravel/framework/commit/53eb307fea077299d409adf3ba0307a8fda4c4d1))
-- Added `Illuminate/Database/Console/DbCommand.php` command ([#35304](https://github.com/laravel/framework/pull/35304), [b559b3e](https://github.com/laravel/framework/commit/b559b3e7c4995ef468b35e8a6117ef24fdeca053))
-- Added Collections `splitIn` methods ([#35295](https://github.com/laravel/framework/pull/35295))
-
-### Fixed
-- Fixed rendering of notifications with config custom theme ([325a335](https://github.com/laravel/framework/commit/325a335ccf45426eabb27131ed48aa6114434c99))
-- Fixing BroadcastException message in PusherBroadcaster@broadcast ([#35290](https://github.com/laravel/framework/pull/35290))
-- Fixed generic DetectsLostConnection string ([#35323](https://github.com/laravel/framework/pull/35323))
-- Fixed SQL Server command generation ([#35317](https://github.com/laravel/framework/pull/35317))
-- Fixed route model binding on cached closure routes ([eb3e262](https://github.com/laravel/framework/commit/eb3e262c870739a6e9705b851e0066b3473eed2b))
-
-### Changed
-- Disable CSRF on broadcast route ([acb4b77](https://github.com/laravel/framework/commit/acb4b77adc6e257e132e3b036abe1ec88885cfb7))
-- Easily set a null cache driver ([#35262](https://github.com/laravel/framework/pull/35262))
-- Updated `aws/aws-sdk-php` suggest to `^3.155` ([#35267](https://github.com/laravel/framework/pull/35267))
-- Ensure ShouldBeUniqueUntilProcessing job lock is released once ([#35270](https://github.com/laravel/framework/pull/35270))
-- Rename qualifyColumn to qualifyPivotColumn in BelongsToMany & MorphToMany ([#35276](https://github.com/laravel/framework/pull/35276))
-- Check if AsPivot trait is used instead of Pivot Model in `Illuminate\Database\Eloquent\Relations\BelongsToMany` ([#35271](https://github.com/laravel/framework/pull/35271))
-- Avoid no-op database query in Model::destroy() with empty ids ([#35294](https://github.com/laravel/framework/pull/35294))
-- Use --no-owner and --no-acl with pg_restore ([#35309](https://github.com/laravel/framework/pull/35309))
-
-
-## [v8.15.0 (2020-11-17)](https://github.com/laravel/framework/compare/v8.14.0...v8.15.0)
-
-### Added
-- Added lock support for file and null cache drivers ([#35139](https://github.com/laravel/framework/pull/35139), [a345185](https://github.com/laravel/framework/commit/a3451859d1cff45fba423cf577d00f5b2b648c7a))
-- Added a `doesntExpectOutput` method for console command testing ([#35160](https://github.com/laravel/framework/pull/35160), [c90fc5f](https://github.com/laravel/framework/commit/c90fc5f6b8e91e3f6b0f2f3a74cad7d8a49bc71b))
-- Added support of MorphTo relationship eager loading constraints ([#35190](https://github.com/laravel/framework/pull/35190))
-- Added `Illuminate\Http\ResponseTrait::withoutCookie()` ([e9483c4](https://github.com/laravel/framework/commit/e9483c441d5f0c8598d438d6024db8b1a7aa55fe))
-- Use dynamic app namespace in Eloquent Factory instead of App\ string ([#35204](https://github.com/laravel/framework/pull/35204), [4885bd2](https://github.com/laravel/framework/commit/4885bd2d4ecf79de175d5308569ab0d608e8f55b))
-- Added `read` / `unread` scopes to database notifications ([#35215](https://github.com/laravel/framework/pull/35215))
-- Added `classBasename()` method to `Stringable` ([#35219](https://github.com/laravel/framework/pull/35219))
-- Added before resolving callbacks to container ([#35228](https://github.com/laravel/framework/pull/35228))
-- Adds the possibility of testing file upload content ([#35231](https://github.com/laravel/framework/pull/35231))
-- Added lost connection messages for MySQL persistent connections ([#35224](https://github.com/laravel/framework/pull/35224))
-- Added Support DBAL v3.0 ([#35236](https://github.com/laravel/framework/pull/35236))
-
-### Fixed
-- Update MySqlSchemaState.php to support MariaDB dump ([#35184](https://github.com/laravel/framework/pull/35184))
-- Fixed pivot and morphpivot fresh and refresh methods ([#35193](https://github.com/laravel/framework/pull/35193))
-- Fixed pivot restoration ([#35218](https://github.com/laravel/framework/pull/35218))
-
-### Changed
-- Updated `EmailVerificationRequest.php` to check if user is not already verified ([#35174](https://github.com/laravel/framework/pull/35174))
-- Make `Validator::parseNamedParameters()` public ([#35183](https://github.com/laravel/framework/pull/35183))
-- Ignore max attempts if retryUntil is set in `queue:work` ([#35214](https://github.com/laravel/framework/pull/35214))
-- Explode string channels on `Illuminate/Log/LogManager::createStackDriver()` ([e5b86f2](https://github.com/laravel/framework/commit/e5b86f2efec2959fb0e85ad5ee5de18f430643c4))
-
-
-## [v8.14.0 (2020-11-10)](https://github.com/laravel/framework/compare/v8.13.0...v8.14.0)
-
-### Added
-- Added ability to dispatch unique jobs ([#35042](https://github.com/laravel/framework/pull/35042), [2123e60](https://github.com/laravel/framework/commit/2123e603af027e7590974864715c028357ea4969))
-- Added `Model::encryptUsing()` ([#35080](https://github.com/laravel/framework/pull/35080))
-- Added support to MySQL dump and import using socket ([#35083](https://github.com/laravel/framework/pull/35083), [c43054b](https://github.com/laravel/framework/commit/c43054b9decad4f66937c229e4ef0f32760c8611))
-- Allow custom broadcastWith in notification broadcast channel ([#35142](https://github.com/laravel/framework/pull/35142))
-- Added `Illuminate\Routing\CreatesRegularExpressionRouteConstraints::whereAlphaNumeric()` ([#35154](https://github.com/laravel/framework/pull/35154))
-
-### Fixed
-- Fixed typo in `make:seeder` command name inside ModelMakeCommand ([#35107](https://github.com/laravel/framework/pull/35107))
-- Fix SQL Server grammar for upsert (missing semicolon) ([#35112](https://github.com/laravel/framework/pull/35112))
-- Respect migration table name in config when dumping schema ([110eb15](https://github.com/laravel/framework/commit/110eb15a77f84da0d83ebc2bb123eec08ecc19ca))
-- Respect theme when previewing notification ([ed4411d](https://github.com/laravel/framework/commit/ed4411d310f259f75e95e882b748ba9d76d7cfad))
-- Fix appendable attributes in Blade components ([#35131](https://github.com/laravel/framework/pull/35131))
-- Remove decrypting array cookies from cookie decrypting ([#35130](https://github.com/laravel/framework/pull/35130))
-- Turn the eloquent collection into a base collection if mapWithKeys loses models ([#35129](https://github.com/laravel/framework/pull/35129))
-
-### Changed
-- Move dispatching of DatabaseRefreshed event to fire before seeders are run ([#35091](https://github.com/laravel/framework/pull/35091))
-- Handle returning false from reportable callback ([55f0b5e](https://github.com/laravel/framework/commit/55f0b5e7449b87b7340a761bf9e6456fdc8ffc4d))
-- Update `Illuminate\Database\Schema\Grammars\MySqlGrammar::typeTimestamp()` ([#35143](https://github.com/laravel/framework/pull/35143))
-- Remove expectedTables after converting to expectedOutput in PendingCommand ([#35163](https://github.com/laravel/framework/pull/35163))
-- Change SQLite schema command environment variables to work on Windows ([#35164](https://github.com/laravel/framework/pull/35164))
-
-
-## [v8.13.0 (2020-11-03)](https://github.com/laravel/framework/compare/v8.12.3...v8.13.0)
-
-### Added
-- Added `loadMax()` | `loadMin()` | `loadSum()` | `loadAvg()` methods to `Illuminate\Database\Eloquent\Collection`. Added `loadMax()` | `loadMin()` | `loadSum()` | `loadAvg()` | `loadMorphMax()` | `loadMorphMin()` | `loadMorphSum()` | `loadMorphAvg()` methods to `Illuminate\Database\Eloquent\Model` ([#35029](https://github.com/laravel/framework/pull/35029))
-- Modify `Illuminate\Database\Eloquent\Concerns\QueriesRelationships::has()` method to support MorphTo relations ([#35050](https://github.com/laravel/framework/pull/35050))
-- Added `Illuminate\Support\Stringable::chunk()` ([#35038](https://github.com/laravel/framework/pull/35038))
-
-### Fixed
-- Fixed a few issues in `Illuminate\Database\Eloquent\Concerns\QueriesRelationships::withAggregate()` ([#35061](https://github.com/laravel/framework/pull/35061), [#35063](https://github.com/laravel/framework/pull/35063))
-
-### Changed
-- Set chain `queue` | `connection` | `delay` only when explicitly configured in ([#35047](https://github.com/laravel/framework/pull/35047))
-
-### Refactoring
-- Remove redundant unreachable return statements in some places ([#35053](https://github.com/laravel/framework/pull/35053))
-
-
-## [v8.12.3 (2020-10-30)](https://github.com/laravel/framework/compare/v8.12.2...v8.12.3)
-
-### Fixed
-- Fixed `Illuminate\Database\Eloquent\Concerns\QueriesRelationships::withAggregate()` ([20b0c6e](https://github.com/laravel/framework/commit/20b0c6e19b635466f776502b3f1260c7c51b04ae))
-
-
-## [v8.12.2 (2020-10-29)](https://github.com/laravel/framework/compare/v8.12.1...v8.12.2)
-
-### Fixed
-- [Add some fixes](https://github.com/laravel/framework/compare/v8.12.1...v8.12.2)
-
-
-## [v8.12.1 (2020-10-29)](https://github.com/laravel/framework/compare/v8.12.0...v8.12.1)
-
-### Fixed
-- Fixed alias usage in `Eloquent` ([6091048](https://github.com/laravel/framework/commit/609104806b8b639710268c75c22f43034c2b72db))
-- Fixed `Illuminate\Support\Reflector::isCallable()` ([a90f344](https://github.com/laravel/framework/commit/a90f344c66f0a5bb1d718f8bbd20c257d4de9e02))
-
-
-## [v8.12.0 (2020-10-29)](https://github.com/laravel/framework/compare/v8.11.2...v8.12.0)
-
-### Added
-- Added ability to create observers with custom path via `make:observer` command ([#34911](https://github.com/laravel/framework/pull/34911))
-- Added `Illuminate\Database\Eloquent\Factories\Factory::lazy()` ([#34923](https://github.com/laravel/framework/pull/34923))
-- Added ability to make cast with custom stub file via `make:cast` command ([#34930](https://github.com/laravel/framework/pull/34930))
-- ADDED: Custom casts can implement increment/decrement logic ([#34964](https://github.com/laravel/framework/pull/34964))
-- Added encrypted Eloquent cast ([#34937](https://github.com/laravel/framework/pull/34937), [#34948](https://github.com/laravel/framework/pull/34948))
-- Added `DatabaseRefreshed` event to be emitted after database refreshed ([#34952](https://github.com/laravel/framework/pull/34952), [f31bfe2](https://github.com/laravel/framework/commit/f31bfe2fb83829a900f75fccd12af4b69ffb6275))
-- Added `withMax()`|`withMin()`|`withSum()`|`withAvg()` methods to `Illuminate/Database/Eloquent/Concerns/QueriesRelationships` ([#34965](https://github.com/laravel/framework/pull/34965), [f4e4d95](https://github.com/laravel/framework/commit/f4e4d95c8d4c2f63f9bd80c2a4cfa6b2c78bab1b), [#35004](https://github.com/laravel/framework/pull/35004))
-- Added `explain()` to `Query\Builder` and `Eloquent\Builder` ([#34969](https://github.com/laravel/framework/pull/34969))
-- Make `multiple_of` validation rule handle non-integer values ([#34971](https://github.com/laravel/framework/pull/34971))
-- Added `setKeysForSelectQuery` method and use it when refreshing model data in Models ([#34974](https://github.com/laravel/framework/pull/34974))
-- Full PHP 8.0 Support ([#33388](https://github.com/laravel/framework/pull/33388))
-- Added `Illuminate\Support\Reflector::isCallable()` ([#34994](https://github.com/laravel/framework/pull/34994), [8c16891](https://github.com/laravel/framework/commit/8c16891c6e7a4738d63788f4447614056ab5136e), [31917ab](https://github.com/laravel/framework/commit/31917abcfa0db6ec6221bb07fc91b6e768ff5ec8), [11cfa4d](https://github.com/laravel/framework/commit/11cfa4d4c92bf2f023544d58d51b35c5d31dece0), [#34999](https://github.com/laravel/framework/pull/34999))
-- Added route regex registration methods ([#34997](https://github.com/laravel/framework/pull/34997), [3d405cc](https://github.com/laravel/framework/commit/3d405cc2eb66bba97433b46abaca52623c64c94b), [c2df0d5](https://github.com/laravel/framework/commit/c2df0d5faddeb7e58d1832c1c1f0f309619969af))
-- Added dontRelease option to RateLimited and RateLimitedWithRedis job middleware ([#35010](https://github.com/laravel/framework/pull/35010))
-
-### Fixed
-- Fixed check of file path in `Illuminate\Database\Schema\PostgresSchemaState::load()` ([268237f](https://github.com/laravel/framework/commit/268237fcda420e5c26ab2f0fbdb9b8783c276ff8))
-- Fixed: `PhpRedis (v5.3.2)` cluster - set default connection context to `null` ([#34935](https://github.com/laravel/framework/pull/34935))
-- Fixed Eloquent Model `loadMorph` and `loadMorphCount` methods ([#34972](https://github.com/laravel/framework/pull/34972))
-- Fixed ambigious column on many to many with select load ([5007986](https://github.com/laravel/framework/commit/500798623d100a9746b2931ae6191cb756521f05))
-- Fixed Postgres Dump ([#35018](https://github.com/laravel/framework/pull/35018))
-
-### Changed
-- Changed `make:factory` command ([#34947](https://github.com/laravel/framework/pull/34947), [4f38176](https://github.com/laravel/framework/commit/4f3817654a6376a2f6cd59dc5fb529ebad1d951f))
-- Make assertSee, assertSeeText, assertDontSee and assertDontSeeText accept an array ([#34982](https://github.com/laravel/framework/pull/34982), [2b98bcc](https://github.com/laravel/framework/commit/2b98bcca598eb919b2afd61e5fb5cb86aec4c706))
-
-
-## [v8.11.2 (2020-10-20)](https://github.com/laravel/framework/compare/v8.11.1...v8.11.2)
-
-### Revert
-- Revert ["Change loadRoutesFrom to accept $attributes](https://github.com/laravel/framework/pull/34866)" ([#34909](https://github.com/laravel/framework/pull/34909))
-
-
-## [v8.11.1 (2020-10-20)](https://github.com/laravel/framework/compare/v8.11.0...v8.11.1)
-
-### Fixed
-- Fixed `bound()` method ([a7759d7](https://github.com/laravel/framework/commit/a7759d70e15b0be946569b8299ac694c08a35d7e))
-
-
-## [v8.11.0 (2020-10-20)](https://github.com/laravel/framework/compare/v8.10.0...v8.11.0)
-
-### Added
-- Added job middleware to prevent overlapping jobs ([#34794](https://github.com/laravel/framework/pull/34794), [eed05b4](https://github.com/laravel/framework/commit/eed05b41097cfe62766d4086ede8dee97c057c29))
-- Bring Rate Limiters to Jobs ([#34829](https://github.com/laravel/framework/pull/34829), [ae00294](https://github.com/laravel/framework/commit/ae00294c418e431372bad0d09ac15d15925247f7))
-- Added `multiple_of` custom replacer in validator ([#34858](https://github.com/laravel/framework/pull/34858))
-- Preserve eloquent collection type after calling ->fresh() ([#34848](https://github.com/laravel/framework/pull/34848))
-- Provisional support for PHP 8.0 for 6.x (Changed some code in 8.x) ([#34884](https://github.com/laravel/framework/pull/34884), [28bb76e](https://github.com/laravel/framework/commit/28bb76efbcfc5fee57307ffa062b67ff709240dc))
-
-### Fixed
-- Fixed `fresh()` and `refresh()` on pivots and morph pivots ([#34836](https://github.com/laravel/framework/pull/34836))
-- Fixed config `batching` typo ([#34852](https://github.com/laravel/framework/pull/34852))
-- Fixed `Illuminate\Queue\Console\RetryBatchCommand` for un-found batch id ([#34878](https://github.com/laravel/framework/pull/34878))
-
-### Changed
-- Change `loadRoutesFrom()` to accept group $attributes ([#34866](https://github.com/laravel/framework/pull/34866))
-
-
-## [v8.10.0 (2020-10-13)](https://github.com/laravel/framework/compare/v8.9.0...v8.10.0)
-
-### Added
-- Allow for chains to be added to batches ([#34612](https://github.com/laravel/framework/pull/34612), [7b4a9ec](https://github.com/laravel/framework/commit/7b4a9ec6c58906eb73957015e4c78f73e780e944))
-- Added `is()` method to 1-1 relations for model comparison ([#34693](https://github.com/laravel/framework/pull/34693), [7ba2577](https://github.com/laravel/framework/commit/7ba257732d2342175a6ffe7db7a4ca847ca1d353))
-- Added `upsert()` to Eloquent and Base Query Builders ([#34698](https://github.com/laravel/framework/pull/34698), [#34712](https://github.com/laravel/framework/pull/34712), [58a0e1b](https://github.com/laravel/framework/commit/58a0e1b7e2bb6df3923883c4fc8cf13b1bce7322))
-- Support psql and pg_restore commands in schema load ([#34711](https://github.com/laravel/framework/pull/34711))
-- Added `Illuminate\Database\Schema\Builder::dropColumns()` method on the schema class ([#34720](https://github.com/laravel/framework/pull/34720))
-- Added `yearlyOn()` method to scheduler ([#34728](https://github.com/laravel/framework/pull/34728))
-- Added `restrictOnDelete()` method to ForeignKeyDefinition class ([#34752](https://github.com/laravel/framework/pull/34752))
-- Added `newLine()` method to `InteractsWithIO` trait ([#34754](https://github.com/laravel/framework/pull/34754))
-- Added `isNotEmpty()` method to HtmlString ([#34774](https://github.com/laravel/framework/pull/34774))
-- Added `delay()` to PendingChain ([#34789](https://github.com/laravel/framework/pull/34789))
-- Added "multiple_of" validation rule ([#34788](https://github.com/laravel/framework/pull/34788))
-- Added custom methods proxy support for jobs `dispatch()` ([#34781](https://github.com/laravel/framework/pull/34781))
-- Added `QueryBuilder::clone()` ([#34780](https://github.com/laravel/framework/pull/34780))
-- Support bus chain on fake ([a952ac24](https://github.com/laravel/framework/commit/a952ac24f34b832270a2f80cd425c2afe4c61fc1))
-- Added missing force flag to `queue:clear` command ([#34809](https://github.com/laravel/framework/pull/34809))
-- Added `dropConstrainedForeignId()` to `Blueprint ([#34806](https://github.com/laravel/framework/pull/34806))
-- Implement `supportsTags()` on the Cache Repository ([#34820](https://github.com/laravel/framework/pull/34820))
-- Added `canAny` to user model ([#34815](https://github.com/laravel/framework/pull/34815))
-- Added `when()` and `unless()` methods to MailMessage ([#34814](https://github.com/laravel/framework/pull/34814))
-
-### Fixed
-- Fixed collection wrapping in `BelongsToManyRelationship` ([9245807](https://github.com/laravel/framework/commit/9245807f8a1132a30ce669513cf0e99e9e078267))
-- Fixed `LengthAwarePaginator` translations issue ([#34714](https://github.com/laravel/framework/pull/34714))
-
-### Changed
-- Improve `schedule:work` command ([#34736](https://github.com/laravel/framework/pull/34736), [bbddba2](https://github.com/laravel/framework/commit/bbddba279bc781fc2868a6967430943de636614f))
-- Guard against invalid guard in `make:policy` ([#34792](https://github.com/laravel/framework/pull/34792))
-- Fixed router inconsistency for namespaced route groups ([#34793](https://github.com/laravel/framework/pull/34793))
-
-
-## [v8.9.0 (2020-10-06)](https://github.com/laravel/framework/compare/v8.8.0...v8.9.0)
-
-### Added
-- Added support `times()` with `raw()` from `Illuminate\Database\Eloquent\Factories\Factory` ([#34667](https://github.com/laravel/framework/pull/34667))
-- Added `Illuminate\Pagination\AbstractPaginator::through()` ([#34657](https://github.com/laravel/framework/pull/34657))
-- Added `extendsFirst()` method similar to `includesFirst()` to view ([#34648](https://github.com/laravel/framework/pull/34648))
-- Allowed `Illuminate\Http\Client\PendingRequest::attach()` method to accept many files ([#34697](https://github.com/laravel/framework/pull/34697), [1bb7ad6](https://github.com/laravel/framework/commit/1bb7ad664a3607f719af2d91c3f95cf71662dcd2))
-- Allowed serializing custom casts when converting a model to an array ([#34702](https://github.com/laravel/framework/pull/34702))
-
-### Fixed
-- Added missed RESET_THROTTLED constant to Password Facade ([#34641](https://github.com/laravel/framework/pull/34641))
-- Fixed queue clearing when blocking ([#34659](https://github.com/laravel/framework/pull/34659))
-- Fixed missing import in TestView.php ([#34677](https://github.com/laravel/framework/pull/34677))
-- Use `getRealPath` to ensure console command class names are generated correctly in `Illuminate\Foundation\Console\Kernel` ([#34653](https://github.com/laravel/framework/pull/34653))
-- Added `pg_dump --no-owner` and `--no-acl` to avoid owner/permission issues in `Illuminate\Database\Schema\PostgresSchemaState::baseDumpCommand()` ([#34689](https://github.com/laravel/framework/pull/34689))
-- Fixed `queue:failed` command when Class not exists ([#34696](https://github.com/laravel/framework/pull/34696))
-
-### Performance
-- Increase performance of `Str::before()` by over 60% ([#34642](https://github.com/laravel/framework/pull/34642))
-
-
-## [v8.8.0 (2020-10-02)](https://github.com/laravel/framework/compare/v8.7.1...v8.8.0)
-
-### Added
-- Proxy URL Generation in `VerifyEmail` ([#34572](https://github.com/laravel/framework/pull/34572))
-- Added `Illuminate\Collections\Traits\EnumeratesValues::pipeInto()` ([#34600](https://github.com/laravel/framework/pull/34600))
-- Added `Illuminate\Http\Client\PendingRequest::withUserAgent()` ([#34611](https://github.com/laravel/framework/pull/34611))
-- Added `schedule:work` command ([#34618](https://github.com/laravel/framework/pull/34618))
-- Added support for appendable (prepends) component attributes ([09b887b](https://github.com/laravel/framework/commit/09b887b85614d3e2539e74f40d7aa9c1c9f903d3), [53fbc9f](https://github.com/laravel/framework/commit/53fbc9f3768f611c960a5d891a1abb259163978a))
-
-### Fixed
-- Fixed `Illuminate\Http\Client\Response::throw()` ([#34597](https://github.com/laravel/framework/pull/34597))
-- Fixed breaking change in migrate command ([b2a3641](https://github.com/laravel/framework/commit/b2a36411a774dba218fa312b8fd3bcf4be44a4e5))
-
-### Changed
-- Changing the dump and restore method for a PostgreSQL database ([#34293](https://github.com/laravel/framework/pull/34293))
-
-
-## [v8.7.1 (2020-09-29)](https://github.com/laravel/framework/compare/v8.7.0...v8.7.1)
-
-### Fixed
-- Remove type hints ([1b3f62a](https://github.com/laravel/framework/commit/1b3f62aaeced2c9761a6052a7f0d3c1a046851c9))
-
-
-## [v8.7.0 (2020-09-29)](https://github.com/laravel/framework/compare/v8.6.0...v8.7.0)
-
-### Added
-- Added `tg://` protocol in "url" validation rule ([#34464](https://github.com/laravel/framework/pull/34464))
-- Allow dynamic factory methods to obey newFactory method on model ([#34492](https://github.com/laravel/framework/pull/34492), [4708e9e](https://github.com/laravel/framework/commit/4708e9ef8f7cde617a5820f07cfd350daaba0e0f))
-- Added `no-reload` option to `serve` command ([9cc2622](https://github.com/laravel/framework/commit/9cc2622a9122f5108a694856055c13db8a5f80dc))
-- Added `perHour()` and `perDay()` methods to `Illuminate\Cache\RateLimiting\Limit` ([#34530](https://github.com/laravel/framework/pull/34530))
-- Added `Illuminate\Http\Client\Response::onError()` ([#34558](https://github.com/laravel/framework/pull/34558), [d034e2c](https://github.com/laravel/framework/commit/d034e2c55c6502fa0c2bebb6cbf99c5e685beaa5))
-- Added `X-Message-ID` to `Mailgun` and `Ses Transport` ([#34567](https://github.com/laravel/framework/pull/34567))
-
-### Fixed
-- Fixed incompatibility with Lumen route function in `Illuminate\Session\Middleware\StartSession` ([#34491](https://github.com/laravel/framework/pull/34491))
-- Fixed: Eager loading MorphTo relationship does not honor each models `$keyType` ([#34531](https://github.com/laravel/framework/pull/34531), [c3f44c7](https://github.com/laravel/framework/commit/c3f44c712833d83061452e9a362a5e10fa424863))
-- Fixed translation label ("Pagination Navigation") for the Tailwind blade ([#34568](https://github.com/laravel/framework/pull/34568))
-- Fixed save keys on increment / decrement in Model ([77db028](https://github.com/laravel/framework/commit/77db028225ccd6ec6bc3359f69482f2e4cc95faf))
-
-### Changed
-- Allow modifiers in date format in Model ([#34507](https://github.com/laravel/framework/pull/34507))
-- Allow for dynamic calls of anonymous component with varied attributes ([#34498](https://github.com/laravel/framework/pull/34498))
-- Cast `Expression` as string so it can be encoded ([#34569](https://github.com/laravel/framework/pull/34569))
-
-
-## [v8.6.0 (2020-09-22)](https://github.com/laravel/framework/compare/v8.5.0...v8.6.0)
-
-### Added
-- Added `Illuminate\Collections\LazyCollection::takeUntilTimeout()` ([0aabf24](https://github.com/laravel/framework/commit/0aabf2472850a9d573907ca092bf5e3cfe26fab3))
-- Added `--schema-path` option to `migrate:fresh` command ([#34419](https://github.com/laravel/framework/pull/34419))
-
-### Fixed
-- Fixed problems with dots in validator ([#34355](https://github.com/laravel/framework/pull/34355))
-- Maintenance mode: Fix empty Retry-After header ([#34412](https://github.com/laravel/framework/pull/34412))
-- Fixed bug with error handling in closure scheduled tasks ([#34420](https://github.com/laravel/framework/pull/34420))
-- Don't double escape on `ComponentTagCompiler.php` ([12ba0d9](https://github.com/laravel/framework/commit/12ba0d937d54e81eccf8f0a80150f0d70604e1c2))
-- Fixed `mysqldump: unknown variable 'column-statistics=0` for MariaDB schema dump ([#34442](https://github.com/laravel/framework/pull/34442))
-
-
-## [v8.5.0 (2020-09-19)](https://github.com/laravel/framework/compare/v8.4.0...v8.5.0)
-
-### Added
-- Allow clearing an SQS queue by `queue:clear` command ([#34383](https://github.com/laravel/framework/pull/34383), [de811ea](https://github.com/laravel/framework/commit/de811ea7f7dc7ecfc686b25fba48e4b0dac473e6))
-- Added `Illuminate\Foundation\Auth\EmailVerificationRequest` ([4bde31b](https://github.com/laravel/framework/commit/4bde31b24bf01b4d4a35ad31fafd8e4ca203b0f2))
-- Auto handle `Jsonable` values passed to `castAsJson()` ([#34392](https://github.com/laravel/framework/pull/34392))
-- Added `crossJoinSub()` method to the query builder ([#34400](https://github.com/laravel/framework/pull/34400))
-- Added `Illuminate\Session\Store::passwordConfirmed()` ([fb3f45a](https://github.com/laravel/framework/commit/fb3f45aa0142764c5c29b97e8bcf8328091986e9))
-
-### Changed
-- Check for view existence first in `Illuminate\Mail\Markdown::render()` ([5f78c90](https://github.com/laravel/framework/commit/5f78c90a7af118dd07703a78da06586016973a66))
-- Guess the model name when using the `make:factory` command ([#34373](https://github.com/laravel/framework/pull/34373))
-
-
-## [v8.4.0 (2020-09-16)](https://github.com/laravel/framework/compare/v8.3.0...v8.4.0)
-
-### Added
-- Added SQLite schema dump support ([#34323](https://github.com/laravel/framework/pull/34323))
-- Added `queue:clear` command ([#34330](https://github.com/laravel/framework/pull/34330), [06b378c](https://github.com/laravel/framework/commit/06b378c07b2ea989aa3e947ca003e96ea277153c))
-
-### Fixed
-- Fixed `minimal.blade.php` ([#34379](https://github.com/laravel/framework/pull/34379))
-- Don't double escape on ComponentTagCompiler.php ([ec75487](https://github.com/laravel/framework/commit/ec75487062506963dd27a4302fe3680c0e3681a3))
-- Fixed dots in attribute names in `DynamicComponent` ([2d1d962](https://github.com/laravel/framework/commit/2d1d96272a94bce123676ed742af2d80ba628ba4))
-
-### Changed
-- Show warning when view exists when using artisan `make:component` ([#34376](https://github.com/laravel/framework/pull/34376), [0ce75e0](https://github.com/laravel/framework/commit/0ce75e01a66ba4b13bbe4cbed85564f1dc76bb05))
-- Call the booting/booted callbacks from the container ([#34370](https://github.com/laravel/framework/pull/34370))
-
-
-## [v8.3.0 (2020-09-15)](https://github.com/laravel/framework/compare/v8.2.0...v8.3.0)
-
-### Added
-- Added `Illuminate\Foundation\Testing\Concerns\InteractsWithDatabase::castAsJson()` ([#34302](https://github.com/laravel/framework/pull/34302))
-- Handle array hosts in `Illuminate\Database\Schema\MySqlSchemaState` ([0920c23](https://github.com/laravel/framework/commit/0920c23efb9d7042d074729f2f70acbfec629c14))
-- Added `Illuminate\Pipeline\Pipeline::setContainer()` ([#34343](https://github.com/laravel/framework/pull/34343))
-- Allow including a closure in a queued batch ([#34333](https://github.com/laravel/framework/pull/34333))
-
-### Fixed
-- Fixed broken Seeder ([9e4a866](https://github.com/laravel/framework/commit/9e4a866cfb0420f4ea6cb4e86b1fbd97a4b8c264))
-
-### Changed
-- Bumped minimum vlucas/phpdotenv version ([#34336](https://github.com/laravel/framework/pull/34336))
-- Pass an instance of the job to queued closures ([#34350](https://github.com/laravel/framework/pull/34350))
-
-
-## [v8.2.0 (2020-09-14)](https://github.com/laravel/framework/compare/v8.1.0...v8.2.0)
-
-### Added
-- Added `Illuminate\Database\Eloquent\Factories\HasFactory::newFactory()` ([4a95372](https://github.com/laravel/framework/commit/4a953728f5e085342d793372329ae534e5885724), [a2cea84](https://github.com/laravel/framework/commit/a2cea84805f311be612fc36c403fcc6f90181ff4))
-
-### Fixed
-- Do not used `now` helper in `Illuminate/Cache/DatabaseLock::expiresAt()` ([#34262](https://github.com/laravel/framework/pull/34262))
-- Change placeholder in `Illuminate\Database\Schema\MySqlSchemaState::load()` ([#34303](https://github.com/laravel/framework/pull/34303))
-- Fixed bug in dynamic attributes `Illuminate\View\ComponentAttributeBag::setAttributes()` ([93f4613](https://github.com/laravel/framework/commit/93f461344051e8d44c4a50748b7bdc0eae18bcac))
-- Fixed `Illuminate\View\ComponentAttributeBag::whereDoesntStartWith()` ([#34329](https://github.com/laravel/framework/pull/34329))
-- Fixed `Illuminate\Routing\Middleware\ThrottleRequests::handleRequestUsingNamedLimiter()` ([#34325](https://github.com/laravel/framework/pull/34325))
-
-### Changed
-- Create Faker when a Factory is created ([#34298](https://github.com/laravel/framework/pull/34298))
-
-
-## [v8.1.0 (2020-09-11)](https://github.com/laravel/framework/compare/v8.0.4...v8.1.0)
-
-### Added
-- Added `Illuminate\Database\Eloquent\Factories\Factory::raw()` ([#34278](https://github.com/laravel/framework/pull/34278))
-- Added `Illuminate\Database\Eloquent\Factories\Factory::createMany()` ([#34285](https://github.com/laravel/framework/pull/34285), [69072c7](https://github.com/laravel/framework/commit/69072c7d3efd2784d195cb95e45e4dcb8ef5907f))
-- Added the `Countable` interface to `AssertableJsonString` ([#34284](https://github.com/laravel/framework/pull/34284))
-
-### Fixed
-- Fixed the new maintenance mode ([#34264](https://github.com/laravel/framework/pull/34264))
-
-### Changed
-- Optimize command can also cache view ([#34287](https://github.com/laravel/framework/pull/34287))
-
-
-## [v8.0.4 (2020-09-11)](https://github.com/laravel/framework/compare/v8.0.3...v8.0.4)
-
-### Changed
-- Allow `Illuminate\Collections\Collection::implode()` when instance of `Stringable` ([#34271](https://github.com/laravel/framework/pull/34271))
-
-### Fixed
-- Fixed `DatabaseUuidFailedJobProvider::find()` job record structure ([#34251](https://github.com/laravel/framework/pull/34251))
-- Cast linkCollection to array in JSON pagination responses ([#34245](https://github.com/laravel/framework/pull/34245))
-- Change the placeholder of schema dump according to symfony placeholder in `MySqlSchemaState::dump()` ([#34261](https://github.com/laravel/framework/pull/34261))
-- Fixed problems with dots in validator ([8723739](https://github.com/laravel/framework/commit/8723739746a53442a5ec5bdebe649f8a4d9dd3c2))
-
-
-## [v8.0.3 (2020-09-10)](https://github.com/laravel/framework/compare/v8.0.2...v8.0.3)
-
-### Added
-- Added links property to JSON pagination responses ([13751a1](https://github.com/laravel/framework/commit/13751a187834fabe515c14fb3ac1dc008fd23f37))
-
-### Fixed
-- Fixed bugs with factory creation in `FactoryMakeCommand` ([c7186e0](https://github.com/laravel/framework/commit/c7186e09204cb3ed72ab24fe9f25a6450c2512bb))
-
-
-## [v8.0.2 (2020-09-09)](https://github.com/laravel/framework/compare/v8.0.1...v8.0.2)
-
-### Revert
-- Revert of ["Fixed for empty fallback_locale in `Illuminate\Translation\Translator`"](https://github.com/laravel/framework/pull/34136) ([7c54eb6](https://github.com/laravel/framework/commit/7c54eb678d58fb9ee7f532a5a5842e6f0e1fe4c9))
-
-### Changed
-- Update `Illuminate\Database\Schema\MySqlSchemaState::executeDumpProcess()` ([#34233](https://github.com/laravel/framework/pull/34233))
-
-
-## [v8.0.1 (2020-09-09)](https://github.com/laravel/framework/compare/v8.0.0...v8.0.1)
-
-### Added
-- Support array syntax in `Illuminate\Routing\Route::uses()` ([f80ba11](https://github.com/laravel/framework/commit/f80ba11b698b6130bdbc7ffdcb947519deabbdba))
-
-### Fixed
-- Fixed `BatchRepositoryFake` TypeError ([#34225](https://github.com/laravel/framework/pull/34225))
-- Fixed dynamic component bug ([4b1e317](https://github.com/laravel/framework/commit/4b1e317c7aec22c2767766bb8b84e059fe4e0802))
-
-### Changed
-- Give shadow a rounded edge to match content in `tailwind.blade.php` ([#34198](https://github.com/laravel/framework/pull/34198))
-- Pass the request to the renderable callback in `Illuminate\Foundation\Exceptions\Handler::render()` ([#34200](https://github.com/laravel/framework/pull/34200))
-- Update `Illuminate\Database\Schema\MySqlSchemaState` ([d67be130](https://github.com/laravel/framework/commit/d67be1305bef418d9bdeb8192177202f9d705699), [c87794f](https://github.com/laravel/framework/commit/c87794fc354941729d1f0c4607693c0b8d2cfda2))
-- Respect local env in `Illuminate\Foundation\Console\ServeCommand::startProcess()` ([75e792d](https://github.com/laravel/framework/commit/75e792d61871780f75ecb4eb170826b0ba2f305e))
-
-
-## [v8.0.0 (2020-09-08)](https://github.com/laravel/framework/compare/v7.27.0...v8.0.0)
-
-Check the upgrade guide in the [Official Laravel Upgrade Documentation](https://laravel.com/docs/8.x/upgrade). Also you can see some release notes in the [Official Laravel Release Documentation](https://laravel.com/docs/8.x/releases). | true |
Other | laravel | framework | b9624ab7b3b3994a5e962d0f468fcf6c45a198d7.json | Consolidate CHANGELOG.md for 9.x (#35943) | CHANGELOG.md | @@ -0,0 +1,8 @@
+# Release Notes for 9.x
+
+## [Unreleased](https://github.com/laravel/framework/compare/v9.0.0...9.x)
+
+
+## [v9.0.0 (2020-??-??)](https://github.com/laravel/framework/compare/v8.22.0...v9.0.0)
+
+Check the upgrade guide in the [Official Laravel Upgrade Documentation](https://laravel.com/docs/9.x/upgrade). Also you can see some release notes in the [Official Laravel Release Documentation](https://laravel.com/docs/9.x/releases). | true |
Other | laravel | framework | 1a146d2c170390def0b017146b21c9f8c21691ce.json | Fix empty email with attachments (#35941) | src/Illuminate/Mail/Mailer.php | @@ -325,7 +325,7 @@ protected function parseView($view)
protected function addContent($message, $view, $plain, $raw, $data)
{
if (isset($view)) {
- $message->setBody($this->renderView($view, $data), 'text/html');
+ $message->setBody($this->renderView($view, $data) ?: ' ', 'text/html');
}
if (isset($plain)) { | false |
Other | laravel | framework | f646f8a8c594e83217079763b8ac20c260828da4.json | Apply fixes from StyleCI (#35909) | tests/Support/SupportCollectionTest.php | @@ -3590,7 +3590,7 @@ public function testReduce($collection)
$this->assertEquals(6, $data->reduce(function ($carry, $element) {
return $carry += $element;
}));
-
+
$data = new $collection([
'foo' => 'bar',
'baz' => 'qux', | false |
Other | laravel | framework | f3d4dcb21dc66824611fdde95c8075b694825bf5.json | fix serialization of rate limited middleware | src/Illuminate/Queue/Middleware/RateLimited.php | @@ -120,4 +120,31 @@ protected function getTimeUntilNextRetry($key)
{
return $this->limiter->availableIn($key) + 3;
}
+
+ /**
+ * Prepare the object for serialization.
+ *
+ * @return array
+ */
+ public function __serialize()
+ {
+ return [
+ 'limiterName' => $this->limiterName,
+ 'shouldRelease' => $this->shouldRelease,
+ ];
+ }
+
+ /**
+ * Prepare the object after unserialization.
+ *
+ * @param array $data
+ * @return void
+ */
+ public function __unserialize(array $data)
+ {
+ $this->limiter = Container::getInstance()->make(RateLimiter::class);
+
+ $this->limitedName = $data['limiterName'];
+ $this->shouldRelease = $data['shouldRelease'];
+ }
} | false |
Other | laravel | framework | 2996da8d616aa648ac7646001d318928ae4a41f6.json | add passthru methods to eloquent builder | src/Illuminate/Database/Eloquent/Builder.php | @@ -77,6 +77,7 @@ class Builder
protected $passthru = [
'insert', 'insertOrIgnore', 'insertGetId', 'insertUsing', 'getBindings', 'toSql', 'dump', 'dd',
'exists', 'doesntExist', 'count', 'min', 'max', 'avg', 'average', 'sum', 'getConnection', 'raw', 'getGrammar',
+ 'newQuery', 'getProcessor', 'implode', 'aggregate', 'numericAggregate',
];
/** | false |
Other | laravel | framework | bd7aaa8ff0c37907ac66fcccfebc7d6e25a7402c.json | Fix bug with RetryCommand (#35828) | src/Illuminate/Queue/Console/RetryCommand.php | @@ -2,6 +2,7 @@
namespace Illuminate\Queue\Console;
+use DateTimeInterface;
use Illuminate\Console\Command;
use Illuminate\Support\Arr;
@@ -133,7 +134,11 @@ protected function refreshRetryUntil($payload)
$instance = unserialize($payload['data']['command']);
if (is_object($instance) && method_exists($instance, 'retryUntil')) {
- $payload['retryUntil'] = $instance->retryUntil()->timestamp;
+ $retryUntil = $instance->retryUntil();
+
+ $payload['retryUntil'] = $retryUntil instanceof DateTimeInterface
+ ? $retryUntil->getTimestamp()
+ : $retryUntil;
}
return json_encode($payload); | false |
Other | laravel | framework | 4415b94623358bfd1dc2e8f20e4deab0025d2d03.json | fix breaking change | src/Illuminate/Queue/Console/RetryCommand.php | @@ -126,6 +126,10 @@ protected function refreshRetryUntil($payload)
{
$payload = json_decode($payload, true);
+ if (! isset($payload['data']['command'])) {
+ return json_encode($payload);
+ }
+
$instance = unserialize($payload['data']['command']);
if (is_object($instance) && method_exists($instance, 'retryUntil')) { | false |
Other | laravel | framework | 74f1bdcd40000f8acf5e0b10f12370d50c5fea47.json | add array to URL action method argument (#35787) | src/Illuminate/Support/Facades/URL.php | @@ -5,7 +5,7 @@
/**
* @method static \Illuminate\Contracts\Routing\UrlGenerator setRootControllerNamespace(string $rootNamespace)
* @method static bool hasValidSignature(\Illuminate\Http\Request $request, bool $absolute = true)
- * @method static string action(string $action, $parameters = [], bool $absolute = true)
+ * @method static string action(string|array $action, $parameters = [], bool $absolute = true)
* @method static string asset(string $path, bool $secure = null)
* @method static string secureAsset(string $path)
* @method static string current() | false |
Other | laravel | framework | 72596ae3612bb6dfa21468f8d7d77f6cc545890d.json | Refresh the retryUntil timer on job retry
Signed-off-by: Kevin Ullyott <ullyott.kevin@gmail.com> | src/Illuminate/Queue/Console/RetryCommand.php | @@ -93,10 +93,25 @@ protected function getJobIdsByRanges(array $ranges)
protected function retryJob($job)
{
$this->laravel['queue']->connection($job->connection)->pushRaw(
- $this->resetAttempts($job->payload), $job->queue
+ $this->retryRefresh($job->payload), $job->queue
);
}
+ /**
+ * Possibly refresh job attempts and retryUntil value
+ *
+ * @param string $payload
+ * @return string
+ */
+ protected function retryRefresh($payload)
+ {
+ $payload = $this->resetAttempts($payload);
+
+ $payload = $this->refreshRetryUntil($payload);
+
+ return $payload;
+ }
+
/**
* Reset the payload attempts.
*
@@ -115,4 +130,23 @@ protected function resetAttempts($payload)
return json_encode($payload);
}
+
+ /**
+ * Refreshes a jobs retryUntil time with it's own retryUntil method
+ *
+ * @param string $payload
+ * @return string
+ */
+ protected function refreshRetryUntil($payload)
+ {
+ $payload = json_decode($payload, true);
+
+ $jobInstance = unserialize($payload['data']['command']);
+
+ $newRetryUntil = $jobInstance->retryUntil()->timestamp;
+
+ $payload['retryUntil'] = $newRetryUntil;
+
+ return json_encode($payload);
+ }
} | false |
Other | laravel | framework | 4ffe40fb169c6bcce9193ff56958eca41e64294f.json | add table prefix | src/Illuminate/Database/Console/DumpCommand.php | @@ -66,7 +66,7 @@ public function handle(ConnectionResolverInterface $connections, Dispatcher $dis
protected function schemaState(Connection $connection)
{
return $connection->getSchemaState()
- ->withMigrationTable(Config::get('database.migrations', 'migrations'))
+ ->withMigrationTable($connection->getTablePrefix().Config::get('database.migrations', 'migrations'))
->handleOutputUsing(function ($type, $buffer) {
$this->output->write($buffer);
}); | false |
Other | laravel | framework | 6364c5b8643e68317e4803062258f28d1583b21b.json | Fix Style CI | tests/View/ViewComponentAttributeBagTest.php | @@ -70,25 +70,25 @@ public function testAttributeRetrieval()
'test-extract-1' => 'extracted-1',
'test-extract-2' => 'extracted-2',
'test-discard-1' => 'discarded-1',
- 'test-discard-2' => 'discarded-2'
+ 'test-discard-2' => 'discarded-2',
]);
$this->assertSame('test-extract-1="extracted-1" test-extract-2="extracted-2"', (string) $bag->exceptProps([
'test-discard-1',
- 'test-discard-2' => 'defaultValue'
+ 'test-discard-2' => 'defaultValue',
]));
$bag = (new ComponentAttributeBag)
->merge([
'test-extract-1' => 'extracted-1',
'test-extract-2' => 'extracted-2',
'test-discard-1' => 'discarded-1',
- 'test-discard-2' => 'discarded-2'
+ 'test-discard-2' => 'discarded-2',
]);
$this->assertSame('test-extract-1="extracted-1" test-extract-2="extracted-2"', (string) $bag->onlyProps([
'test-extract-1',
- 'test-extract-2' => 'defaultValue'
+ 'test-extract-2' => 'defaultValue',
]));
}
} | false |
Other | laravel | framework | 55125a86b153618879dd6b7abcb45859256e7305.json | Exclude assigned props from attributes array | src/Illuminate/View/Compilers/ComponentTagCompiler.php | @@ -231,6 +231,9 @@ protected function componentString(string $component, array $attributes)
}
return " @component('{$class}', '{$component}', [".$this->attributesToString($parameters, $escapeBound = false).'])
+<?php if (isset($attributes) && $constructor = (new ReflectionClass('.$class.'::class))->getConstructor()): ?>
+<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php $component->withAttributes(['.$this->attributesToString($attributes->all(), $escapeAttributes = $class !== DynamicComponent::class).']); ?>';
}
| true |
Other | laravel | framework | 55125a86b153618879dd6b7abcb45859256e7305.json | Exclude assigned props from attributes array | src/Illuminate/View/Compilers/Concerns/CompilesComponents.php | @@ -150,17 +150,18 @@ protected function compileEndComponentFirst()
*/
protected function compileProps($expression)
{
- return "<?php \$__props = \$attributes->only(array_keys{$expression}); ?>
+ return "<?php foreach(\$attributes->onlyProps{$expression} as \$__key => \$__value) {
+ \$\$__key = \$\$__key ?? \$__value;
+} ?>
<?php \$attributes = \$attributes->exceptProps{$expression}; ?>
<?php foreach (array_filter({$expression}, 'is_string', ARRAY_FILTER_USE_KEY) as \$__key => \$__value) {
- \$\$__key = \$__props[\$__key] ?? \$\$__key ?? \$__value;
+ \$\$__key = \$\$__key ?? \$__value;
} ?>
<?php \$__defined_vars = get_defined_vars(); ?>
<?php foreach (\$attributes as \$__key => \$__value) {
if (array_key_exists(\$__key, \$__defined_vars)) unset(\$\$__key);
} ?>
-<?php unset(\$__defined_vars); ?>
-<?php unset(\$__props); ?>";
+<?php unset(\$__defined_vars); ?>";
}
/** | true |
Other | laravel | framework | 55125a86b153618879dd6b7abcb45859256e7305.json | Exclude assigned props from attributes array | src/Illuminate/View/ComponentAttributeBag.php | @@ -153,13 +153,35 @@ public function thatStartWith($string)
return $this->whereStartsWith($string);
}
+ /**
+ * Only include the given attribute from the attribute array.
+ *
+ * @param mixed|array $keys
+ * @return static
+ */
+ public function onlyProps($keys)
+ {
+ return $this->only($this->extractPropsNames($keys));
+ }
+
/**
* Exclude the given attribute from the attribute array.
*
* @param mixed|array $keys
* @return static
*/
public function exceptProps($keys)
+ {
+ return $this->except($this->extractPropsNames($keys));
+ }
+
+ /**
+ * Extract prop names from given keys.
+ *
+ * @param mixed|array $keys
+ * @return array
+ */
+ protected function extractPropsNames($keys)
{
$props = [];
@@ -170,7 +192,7 @@ public function exceptProps($keys)
$props[] = Str::kebab($key);
}
- return $this->except($props);
+ return $props;
}
/** | true |
Other | laravel | framework | 55125a86b153618879dd6b7abcb45859256e7305.json | Exclude assigned props from attributes array | tests/View/Blade/BladeComponentTagCompilerTest.php | @@ -41,8 +41,14 @@ public function testBasicComponentParsing()
$result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<div><x-alert type="foo" limit="5" @click="foo" wire:click="changePlan(\'{{ $plan }}\')" required /><x-alert /></div>');
$this->assertSame("<div> @component('Illuminate\Tests\View\Blade\TestAlertComponent', 'alert', [])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestAlertComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes(['type' => 'foo','limit' => '5','@click' => 'foo','wire:click' => 'changePlan(\''.e(\$plan).'\')','required' => true]); ?>\n".
"@endcomponentClass @component('Illuminate\Tests\View\Blade\TestAlertComponent', 'alert', [])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestAlertComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes([]); ?>\n".
'@endcomponentClass </div>', trim($result));
}
@@ -52,6 +58,9 @@ public function testBasicComponentWithEmptyAttributesParsing()
$result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<div><x-alert type="" limit=\'\' @click="" required /></div>');
$this->assertSame("<div> @component('Illuminate\Tests\View\Blade\TestAlertComponent', 'alert', [])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestAlertComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes(['type' => '','limit' => '','@click' => '','required' => true]); ?>\n".
'@endcomponentClass </div>', trim($result));
}
@@ -61,6 +70,9 @@ public function testDataCamelCasing()
$result = $this->compiler(['profile' => TestProfileComponent::class])->compileTags('<x-profile user-id="1"></x-profile>');
$this->assertSame("@component('Illuminate\Tests\View\Blade\TestProfileComponent', 'profile', ['userId' => '1'])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestProfileComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes([]); ?> @endcomponentClass", trim($result));
}
@@ -69,6 +81,9 @@ public function testColonData()
$result = $this->compiler(['profile' => TestProfileComponent::class])->compileTags('<x-profile :user-id="1"></x-profile>');
$this->assertSame("@component('Illuminate\Tests\View\Blade\TestProfileComponent', 'profile', ['userId' => 1])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestProfileComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes([]); ?> @endcomponentClass", trim($result));
}
@@ -77,6 +92,9 @@ public function testColonAttributesIsEscapedIfStrings()
$result = $this->compiler(['profile' => TestProfileComponent::class])->compileTags('<x-profile :src="\'foo\'"></x-profile>');
$this->assertSame("@component('Illuminate\Tests\View\Blade\TestProfileComponent', 'profile', [])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestProfileComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes(['src' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('foo')]); ?> @endcomponentClass", trim($result));
}
@@ -85,6 +103,9 @@ public function testColonNestedComponentParsing()
$result = $this->compiler(['foo:alert' => TestAlertComponent::class])->compileTags('<x-foo:alert></x-foo:alert>');
$this->assertSame("@component('Illuminate\Tests\View\Blade\TestAlertComponent', 'foo:alert', [])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestAlertComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes([]); ?> @endcomponentClass", trim($result));
}
@@ -93,6 +114,9 @@ public function testColonStartingNestedComponentParsing()
$result = $this->compiler(['foo:alert' => TestAlertComponent::class])->compileTags('<x:foo:alert></x-foo:alert>');
$this->assertSame("@component('Illuminate\Tests\View\Blade\TestAlertComponent', 'foo:alert', [])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestAlertComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes([]); ?> @endcomponentClass", trim($result));
}
@@ -101,6 +125,9 @@ public function testSelfClosingComponentsCanBeCompiled()
$result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<div><x-alert/></div>');
$this->assertSame("<div> @component('Illuminate\Tests\View\Blade\TestAlertComponent', 'alert', [])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestAlertComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes([]); ?>\n".
'@endcomponentClass </div>', trim($result));
}
@@ -140,6 +167,9 @@ public function testComponentsCanBeCompiledWithHyphenAttributes()
$result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<x-alert class="bar" wire:model="foo" x-on:click="bar" @click="baz" />');
$this->assertSame("@component('Illuminate\Tests\View\Blade\TestAlertComponent', 'alert', [])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestAlertComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes(['class' => 'bar','wire:model' => 'foo','x-on:click' => 'bar','@click' => 'baz']); ?>\n".
'@endcomponentClass', trim($result));
}
@@ -149,6 +179,9 @@ public function testSelfClosingComponentsCanBeCompiledWithDataAndAttributes()
$result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<x-alert title="foo" class="bar" wire:model="foo" />');
$this->assertSame("@component('Illuminate\Tests\View\Blade\TestAlertComponent', 'alert', ['title' => 'foo'])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestAlertComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes(['class' => 'bar','wire:model' => 'foo']); ?>\n".
'@endcomponentClass', trim($result));
}
@@ -159,6 +192,9 @@ public function testComponentCanReceiveAttributeBag()
$result = $this->compiler(['profile' => TestProfileComponent::class])->compileTags('<x-profile class="bar" {{ $attributes }} wire:model="foo"></x-profile>');
$this->assertSame("@component('Illuminate\Tests\View\Blade\TestProfileComponent', 'profile', [])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestProfileComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes(['class' => 'bar','attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\$attributes),'wire:model' => 'foo']); ?> @endcomponentClass", trim($result));
}
@@ -169,6 +205,9 @@ public function testSelfClosingComponentCanReceiveAttributeBag()
$result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<div><x-alert title="foo" class="bar" {{ $attributes->merge([\'class\' => \'test\']) }} wire:model="foo" /></div>');
$this->assertSame("<div> @component('Illuminate\Tests\View\Blade\TestAlertComponent', 'alert', ['title' => 'foo'])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestAlertComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes(['class' => 'bar','attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\$attributes->merge(['class' => 'test'])),'wire:model' => 'foo']); ?>\n".
'@endcomponentClass </div>', trim($result));
}
@@ -178,6 +217,9 @@ public function testComponentsCanHaveAttachedWord()
$result = $this->compiler(['profile' => TestProfileComponent::class])->compileTags('<x-profile></x-profile>Words');
$this->assertSame("@component('Illuminate\Tests\View\Blade\TestProfileComponent', 'profile', [])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestProfileComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes([]); ?> @endcomponentClass Words", trim($result));
}
@@ -186,6 +228,9 @@ public function testSelfClosingComponentsCanHaveAttachedWord()
$result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<x-alert/>Words');
$this->assertSame("@component('Illuminate\Tests\View\Blade\TestAlertComponent', 'alert', [])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestAlertComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes([]); ?>\n".
'@endcomponentClass Words', trim($result));
}
@@ -195,6 +240,9 @@ public function testSelfClosingComponentsCanBeCompiledWithBoundData()
$result = $this->compiler(['alert' => TestAlertComponent::class])->compileTags('<x-alert :title="$title" class="bar" />');
$this->assertSame("@component('Illuminate\Tests\View\Blade\TestAlertComponent', 'alert', ['title' => \$title])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestAlertComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes(['class' => 'bar']); ?>\n".
'@endcomponentClass', trim($result));
}
@@ -205,6 +253,9 @@ public function testPairedComponentTags()
</x-alert>');
$this->assertSame("@component('Illuminate\Tests\View\Blade\TestAlertComponent', 'alert', [])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\Tests\View\Blade\TestAlertComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes([]); ?>
@endcomponentClass", trim($result));
}
@@ -221,6 +272,9 @@ public function testClasslessComponents()
$result = $this->compiler()->compileTags('<x-anonymous-component :name="\'Taylor\'" :age="31" wire:model="foo" />');
$this->assertSame("@component('Illuminate\View\AnonymousComponent', 'anonymous-component', ['view' => 'components.anonymous-component','data' => ['name' => 'Taylor','age' => 31,'wire:model' => 'foo']])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes(['name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Taylor'),'age' => 31,'wire:model' => 'foo']); ?>\n".
'@endcomponentClass', trim($result));
}
@@ -237,6 +291,9 @@ public function testPackagesClasslessComponents()
$result = $this->compiler()->compileTags('<x-package::anonymous-component :name="\'Taylor\'" :age="31" wire:model="foo" />');
$this->assertSame("@component('Illuminate\View\AnonymousComponent', 'package::anonymous-component', ['view' => 'package::components.anonymous-component','data' => ['name' => 'Taylor','age' => 31,'wire:model' => 'foo']])
+<?php if (isset(\$attributes) && \$constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
+<?php \$attributes = \$attributes->except(collect(\$constructor->getParameters())->map->getName()->all()); ?>
+<?php endif; ?>
<?php \$component->withAttributes(['name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Taylor'),'age' => 31,'wire:model' => 'foo']); ?>\n".
'@endcomponentClass', trim($result));
} | true |
Other | laravel | framework | 55125a86b153618879dd6b7abcb45859256e7305.json | Exclude assigned props from attributes array | tests/View/Blade/BladePropsTest.php | @@ -6,16 +6,17 @@ class BladePropsTest extends AbstractBladeTestCase
{
public function testPropsAreCompiled()
{
- $this->assertSame('<?php $__props = $attributes->only(array_keys([\'one\' => true, \'two\' => \'string\'])); ?>
+ $this->assertSame('<?php foreach($attributes->onlyProps([\'one\' => true, \'two\' => \'string\']) as $__key => $__value) {
+ $$__key = $$__key ?? $__value;
+} ?>
<?php $attributes = $attributes->exceptProps([\'one\' => true, \'two\' => \'string\']); ?>
<?php foreach (array_filter(([\'one\' => true, \'two\' => \'string\']), \'is_string\', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
- $$__key = $__props[$__key] ?? $$__key ?? $__value;
+ $$__key = $$__key ?? $__value;
} ?>
<?php $__defined_vars = get_defined_vars(); ?>
<?php foreach ($attributes as $__key => $__value) {
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
} ?>
-<?php unset($__defined_vars); ?>
-<?php unset($__props); ?>', $this->compiler->compileString('@props([\'one\' => true, \'two\' => \'string\'])'));
+<?php unset($__defined_vars); ?>', $this->compiler->compileString('@props([\'one\' => true, \'two\' => \'string\'])'));
}
} | true |
Other | laravel | framework | 55125a86b153618879dd6b7abcb45859256e7305.json | Exclude assigned props from attributes array | tests/View/ViewComponentAttributeBagTest.php | @@ -64,5 +64,31 @@ public function testAttributeRetrieval()
]);
$this->assertSame('test-string="ok" test-true="test-true" test-0="0" test-0-string="0" test-empty-string=""', (string) $bag);
+
+ $bag = (new ComponentAttributeBag)
+ ->merge([
+ 'test-extract-1' => 'extracted-1',
+ 'test-extract-2' => 'extracted-2',
+ 'test-discard-1' => 'discarded-1',
+ 'test-discard-2' => 'discarded-2'
+ ]);
+
+ $this->assertSame('test-extract-1="extracted-1" test-extract-2="extracted-2"', (string) $bag->exceptProps([
+ 'test-discard-1',
+ 'test-discard-2' => 'defaultValue'
+ ]));
+
+ $bag = (new ComponentAttributeBag)
+ ->merge([
+ 'test-extract-1' => 'extracted-1',
+ 'test-extract-2' => 'extracted-2',
+ 'test-discard-1' => 'discarded-1',
+ 'test-discard-2' => 'discarded-2'
+ ]);
+
+ $this->assertSame('test-extract-1="extracted-1" test-extract-2="extracted-2"', (string) $bag->onlyProps([
+ 'test-extract-1',
+ 'test-extract-2' => 'defaultValue'
+ ]));
}
} | true |
Other | laravel | framework | 13546a703c210298517b25307647778d4fe3ab9f.json | Update DetectsLostConnections.php (#35744)
AWS Aurora serverless DB sometimes aborts queries while performing scaling. The error returned is:
"SQLSTATE[HY000]: General error: 1105 The last transaction was aborted due to Seamless Scaling. Please retry." | src/Illuminate/Database/DetectsLostConnections.php | @@ -47,6 +47,7 @@ protected function causedByLostConnection(Throwable $e)
'SQLSTATE[HY000]: General error: 7 SSL SYSCALL error: EOF detected',
'SQLSTATE[HY000] [2002] Connection timed out',
'SSL: Connection timed out',
+ 'SQLSTATE[HY000]: General error: 1105 The last transaction was aborted due to Seamless Scaling. Please retry.',
]);
}
} | false |
Other | laravel | framework | aae5c4acf3492ffac107ac2e466914e455623da8.json | convert time to seconds once (#35721) | src/Illuminate/Cache/Repository.php | @@ -292,17 +292,19 @@ public function setMultiple($values, $ttl = null)
*/
public function add($key, $value, $ttl = null)
{
+ $seconds = null;
+
if ($ttl !== null) {
- if ($this->getSeconds($ttl) <= 0) {
+ $seconds = $this->getSeconds($ttl);
+
+ if ($seconds <= 0) {
return false;
}
// If the store has an "add" method we will call the method on the store so it
// has a chance to override this logic. Some drivers better support the way
// this operation should work with a total "atomic" implementation of it.
if (method_exists($this->store, 'add')) {
- $seconds = $this->getSeconds($ttl);
-
return $this->store->add(
$this->itemKey($key), $value, $seconds
);
@@ -313,7 +315,7 @@ public function add($key, $value, $ttl = null)
// so it exists for subsequent requests. Then, we will return true so it is
// easy to know if the value gets added. Otherwise, we will return false.
if (is_null($this->get($key))) {
- return $this->put($key, $value, $ttl);
+ return $this->put($key, $value, $seconds);
}
return false; | false |
Other | laravel | framework | 8dc442578670197c05e80be90fb711c427f3c99c.json | Change command signature and add new interface | src/Illuminate/Bus/DatabaseBatchRepository.php | @@ -9,7 +9,7 @@
use Illuminate\Database\Query\Expression;
use Illuminate\Support\Str;
-class DatabaseBatchRepository implements BatchRepository
+class DatabaseBatchRepository implements BatchRepository, Prunable
{
/**
* The batch factory instance. | true |
Other | laravel | framework | 8dc442578670197c05e80be90fb711c427f3c99c.json | Change command signature and add new interface | src/Illuminate/Bus/Prunable.php | @@ -0,0 +1,16 @@
+<?php
+
+namespace Illuminate\Bus;
+
+use DateTimeInterface;
+
+interface Prunable
+{
+ /**
+ * Prune all of the entries older than the given date.
+ *
+ * @param DateTimeInterface $before
+ * @return int
+ */
+ public function prune(DateTimeInterface $before);
+} | true |
Other | laravel | framework | 8dc442578670197c05e80be90fb711c427f3c99c.json | Change command signature and add new interface | src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php | @@ -63,11 +63,11 @@
use Illuminate\Queue\Console\BatchesTableCommand;
use Illuminate\Queue\Console\ClearCommand as QueueClearCommand;
use Illuminate\Queue\Console\FailedTableCommand;
-use Illuminate\Queue\Console\FlushBatchCommand as FlushBatchQueueCommand;
use Illuminate\Queue\Console\FlushFailedCommand as FlushFailedQueueCommand;
use Illuminate\Queue\Console\ForgetFailedCommand as ForgetFailedQueueCommand;
use Illuminate\Queue\Console\ListenCommand as QueueListenCommand;
use Illuminate\Queue\Console\ListFailedCommand as ListFailedQueueCommand;
+use Illuminate\Queue\Console\PruneBatchesCommand as PruneBatchesQueueCommand;
use Illuminate\Queue\Console\RestartCommand as QueueRestartCommand;
use Illuminate\Queue\Console\RetryBatchCommand as QueueRetryBatchCommand;
use Illuminate\Queue\Console\RetryCommand as QueueRetryCommand;
@@ -106,9 +106,9 @@ class ArtisanServiceProvider extends ServiceProvider implements DeferrableProvid
'QueueClear' => 'command.queue.clear',
'QueueFailed' => 'command.queue.failed',
'QueueFlush' => 'command.queue.flush',
- 'QueueFlushBatch' => 'command.queue.flush-batch',
'QueueForget' => 'command.queue.forget',
'QueueListen' => 'command.queue.listen',
+ 'QueuePruneBatches' => 'command.queue.prune-batches',
'QueueRestart' => 'command.queue.restart',
'QueueRetry' => 'command.queue.retry',
'QueueRetryBatch' => 'command.queue.retry-batch',
@@ -679,10 +679,10 @@ protected function registerQueueFlushCommand()
*
* @return void
*/
- protected function registerQueueFlushBatchCommand()
+ protected function registerQueueListenCommand()
{
- $this->app->singleton('command.queue.flush-batch', function () {
- return new FlushBatchQueueCommand;
+ $this->app->singleton('command.queue.listen', function ($app) {
+ return new QueueListenCommand($app['queue.listener']);
});
}
@@ -691,10 +691,10 @@ protected function registerQueueFlushBatchCommand()
*
* @return void
*/
- protected function registerQueueListenCommand()
+ protected function registerQueuePruneBatchesCommand()
{
- $this->app->singleton('command.queue.listen', function ($app) {
- return new QueueListenCommand($app['queue.listener']);
+ $this->app->singleton('command.queue.prune-batches', function () {
+ return new PruneBatchesQueueCommand;
});
}
| true |
Other | laravel | framework | 8dc442578670197c05e80be90fb711c427f3c99c.json | Change command signature and add new interface | src/Illuminate/Queue/Console/PruneBatchesCommand.php | @@ -4,16 +4,17 @@
use Carbon\Carbon;
use Illuminate\Bus\BatchRepository;
+use Illuminate\Bus\Prunable;
use Illuminate\Console\Command;
-class FlushBatchCommand extends Command
+class PruneBatchesCommand extends Command
{
/**
* The console command signature.
*
* @var string
*/
- protected $signature = 'queue:flush-batch {--hours=24 : The number of hours to retain batch data}';
+ protected $signature = 'queue:prune-batches {--hours=24 : The number of hours to retain batch data}';
/**
* The console command description.
@@ -33,7 +34,7 @@ public function handle()
$repository = $this->laravel[BatchRepository::class];
- if (method_exists($repository, 'prune')) {
+ if ($repository instanceof Prunable) {
$hours = $this->option('hours');
$before = Carbon::now()->subHours($hours); | true |
Other | laravel | framework | 8dc442578670197c05e80be90fb711c427f3c99c.json | Change command signature and add new interface | src/Illuminate/Support/Testing/Fakes/BatchRepositoryFake.php | @@ -4,7 +4,6 @@
use Carbon\CarbonImmutable;
use Closure;
-use DateTimeInterface;
use Illuminate\Bus\Batch;
use Illuminate\Bus\BatchRepository;
use Illuminate\Bus\PendingBatch;
@@ -135,15 +134,4 @@ public function transaction(Closure $callback)
{
return $callback();
}
-
- /**
- * Prune all of the entries older than the given date.
- *
- * @param DateTimeInterface $before
- * @return int
- */
- public function prune(DateTimeInterface $before)
- {
- return 0;
- }
} | true |
Other | laravel | framework | 910fad8cb2934f2c231f806b8b398ba95ef38dfe.json | Remove interface method and add import | src/Illuminate/Bus/BatchRepository.php | @@ -89,12 +89,4 @@ public function delete(string $batchId);
* @return mixed
*/
public function transaction(Closure $callback);
-
- /**
- * Prune all of the entries older than the given date.
- *
- * @param \DateTimeInterface $before
- * @return int
- */
- public function prune(\DateTimeInterface $before);
} | true |
Other | laravel | framework | 910fad8cb2934f2c231f806b8b398ba95ef38dfe.json | Remove interface method and add import | src/Illuminate/Bus/DatabaseBatchRepository.php | @@ -4,6 +4,7 @@
use Carbon\CarbonImmutable;
use Closure;
+use DateTimeInterface;
use Illuminate\Database\Connection;
use Illuminate\Database\Query\Expression;
use Illuminate\Support\Str;
@@ -246,12 +247,13 @@ public function transaction(Closure $callback)
/**
* Prune all of the entries older than the given date.
*
- * @param \DateTimeInterface $before
+ * @param DateTimeInterface $before
* @return int
*/
- public function prune(\DateTimeInterface $before)
+ public function prune(DateTimeInterface $before)
{
$query = $this->connection->table($this->table)
+ ->whereNotNull('finished_at')
->where('finished_at', '<', $before->getTimestamp());
$totalDeleted = 0; | true |
Other | laravel | framework | 910fad8cb2934f2c231f806b8b398ba95ef38dfe.json | Remove interface method and add import | src/Illuminate/Queue/Console/FlushBatchCommand.php | @@ -25,16 +25,22 @@ class FlushBatchCommand extends Command
/**
* Execute the console command.
*
- * @return int|null
+ * @return void
*/
public function handle()
{
- $hours = $this->option('hours');
+ $count = 0;
- $before = Carbon::now()->subHours($hours);
+ $repository = $this->laravel[BatchRepository::class];
- $count = $this->laravel[BatchRepository::class]->prune($before);
+ if (method_exists($repository, 'prune')) {
+ $hours = $this->option('hours');
- $this->info("{$count} entries deleted successfully.");
+ $before = Carbon::now()->subHours($hours);
+
+ $count = $repository->prune($before);
+ }
+
+ $this->info("{$count} entries deleted!");
}
} | true |
Other | laravel | framework | 910fad8cb2934f2c231f806b8b398ba95ef38dfe.json | Remove interface method and add import | src/Illuminate/Support/Testing/Fakes/BatchRepositoryFake.php | @@ -4,6 +4,7 @@
use Carbon\CarbonImmutable;
use Closure;
+use DateTimeInterface;
use Illuminate\Bus\Batch;
use Illuminate\Bus\BatchRepository;
use Illuminate\Bus\PendingBatch;
@@ -138,10 +139,10 @@ public function transaction(Closure $callback)
/**
* Prune all of the entries older than the given date.
*
- * @param \DateTimeInterface $before
+ * @param DateTimeInterface $before
* @return int
*/
- public function prune(\DateTimeInterface $before)
+ public function prune(DateTimeInterface $before)
{
return 0;
} | true |
Other | laravel | framework | 3b87b6f972de4445bed7458c810671f2bbc861cb.json | Add command to clean batches table | src/Illuminate/Bus/BatchRepository.php | @@ -89,4 +89,12 @@ public function delete(string $batchId);
* @return mixed
*/
public function transaction(Closure $callback);
+
+ /**
+ * Prune all of the entries older than the given date.
+ *
+ * @param \DateTimeInterface $before
+ * @return int
+ */
+ public function prune(\DateTimeInterface $before);
} | true |
Other | laravel | framework | 3b87b6f972de4445bed7458c810671f2bbc861cb.json | Add command to clean batches table | src/Illuminate/Bus/DatabaseBatchRepository.php | @@ -243,6 +243,28 @@ public function transaction(Closure $callback)
});
}
+ /**
+ * Prune all of the entries older than the given date.
+ *
+ * @param \DateTimeInterface $before
+ * @return int
+ */
+ public function prune(\DateTimeInterface $before)
+ {
+ $query = $this->connection->table($this->table)
+ ->where('finished_at', '<', $before);
+
+ $totalDeleted = 0;
+
+ do {
+ $deleted = $query->take(1000)->delete();
+
+ $totalDeleted += $deleted;
+ } while ($deleted !== 0);
+
+ return $totalDeleted;
+ }
+
/**
* Convert the given raw batch to a Batch object.
* | true |
Other | laravel | framework | 3b87b6f972de4445bed7458c810671f2bbc861cb.json | Add command to clean batches table | src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php | @@ -64,6 +64,7 @@
use Illuminate\Queue\Console\ClearCommand as QueueClearCommand;
use Illuminate\Queue\Console\FailedTableCommand;
use Illuminate\Queue\Console\FlushFailedCommand as FlushFailedQueueCommand;
+use Illuminate\Queue\Console\FlushBatchCommand as FlushBatchQueueCommand;
use Illuminate\Queue\Console\ForgetFailedCommand as ForgetFailedQueueCommand;
use Illuminate\Queue\Console\ListenCommand as QueueListenCommand;
use Illuminate\Queue\Console\ListFailedCommand as ListFailedQueueCommand;
@@ -105,6 +106,7 @@ class ArtisanServiceProvider extends ServiceProvider implements DeferrableProvid
'QueueClear' => 'command.queue.clear',
'QueueFailed' => 'command.queue.failed',
'QueueFlush' => 'command.queue.flush',
+ 'QueueFlushBatch' => 'command.queue.flush-batch',
'QueueForget' => 'command.queue.forget',
'QueueListen' => 'command.queue.listen',
'QueueRestart' => 'command.queue.restart',
@@ -672,6 +674,18 @@ protected function registerQueueFlushCommand()
});
}
+ /**
+ * Register the command.
+ *
+ * @return void
+ */
+ protected function registerQueueFlushBatchCommand()
+ {
+ $this->app->singleton('command.queue.flush-batch', function () {
+ return new FlushBatchQueueCommand;
+ });
+ }
+
/**
* Register the command.
* | true |
Other | laravel | framework | 3b87b6f972de4445bed7458c810671f2bbc861cb.json | Add command to clean batches table | src/Illuminate/Queue/Console/FlushBatchCommand.php | @@ -0,0 +1,40 @@
+<?php
+
+namespace Illuminate\Queue\Console;
+
+use Carbon\Carbon;
+use Illuminate\Bus\BatchRepository;
+use Illuminate\Console\Command;
+
+class FlushBatchCommand extends Command
+{
+ /**
+ * The console command signature.
+ *
+ * @var string
+ */
+ protected $signature = 'queue:flush-batch {--hours=24 : The number of hours to retain batch data}';
+
+ /**
+ * The console command description.
+ *
+ * @var string
+ */
+ protected $description = 'Prune stale entries from the batches database';
+
+ /**
+ * Execute the console command.
+ *
+ * @return int|null
+ */
+ public function handle()
+ {
+ $hours = $this->option('hours');
+
+ $before = Carbon::now()->subHours($hours);
+
+ $count = $this->laravel[BatchRepository::class]->prune($before);
+
+ $this->info("{$count} entries deleted successfully.");
+ }
+} | true |
Other | laravel | framework | 3b87b6f972de4445bed7458c810671f2bbc861cb.json | Add command to clean batches table | src/Illuminate/Support/Testing/Fakes/BatchRepositoryFake.php | @@ -8,6 +8,7 @@
use Illuminate\Bus\BatchRepository;
use Illuminate\Bus\PendingBatch;
use Illuminate\Bus\UpdatedBatchJobCounts;
+use Illuminate\Database\Query\Builder;
use Illuminate\Support\Facades\Facade;
use Illuminate\Support\Str;
@@ -134,4 +135,15 @@ public function transaction(Closure $callback)
{
return $callback();
}
+
+ /**
+ * Prune all of the entries older than the given date.
+ *
+ * @param \DateTimeInterface $before
+ * @return int
+ */
+ public function prune(\DateTimeInterface $before)
+ {
+ return 0;
+ }
} | true |
Other | laravel | framework | 77620822afc96a9fd7c5ca147de2f16666e26ecd.json | fix doc blocks (#35690) | src/Illuminate/Mail/Mailer.php | @@ -371,7 +371,7 @@ protected function setGlobalToAndRemoveCcAndBcc($message)
/**
* Queue a new e-mail message for sending.
*
- * @param \Illuminate\Contracts\Mail\Mailable $view
+ * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
* @param string|null $queue
* @return mixed
* | true |
Other | laravel | framework | 77620822afc96a9fd7c5ca147de2f16666e26ecd.json | fix doc blocks (#35690) | src/Illuminate/Mail/PendingMail.php | @@ -114,7 +114,6 @@ public function bcc($users)
* Send a new mailable message instance.
*
* @param \Illuminate\Contracts\Mail\Mailable $mailable
- *
* @return mixed
*/
public function send(MailableContract $mailable) | true |
Other | laravel | framework | 77620822afc96a9fd7c5ca147de2f16666e26ecd.json | fix doc blocks (#35690) | src/Illuminate/Notifications/NotificationSender.php | @@ -171,7 +171,7 @@ protected function shouldSendNotification($notifiable, $notification, $channel)
* Queue the given notification instances.
*
* @param mixed $notifiables
- * @param array[\Illuminate\Notifications\Channels\Notification] $notification
+ * @param \Illuminate\Notifications\Notification $notification
* @return void
*/
protected function queueNotification($notifiables, $notification) | true |
Other | laravel | framework | 77620822afc96a9fd7c5ca147de2f16666e26ecd.json | fix doc blocks (#35690) | src/Illuminate/Support/Testing/Fakes/MailFake.php | @@ -306,7 +306,7 @@ public function send($view, array $data = [], $callback = null)
/**
* Queue a new e-mail message for sending.
*
- * @param string|array $view
+ * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
* @param string|null $queue
* @return mixed
*/ | true |
Other | laravel | framework | 77620822afc96a9fd7c5ca147de2f16666e26ecd.json | fix doc blocks (#35690) | src/Illuminate/Support/Testing/Fakes/PendingMailFake.php | @@ -21,7 +21,7 @@ public function __construct($mailer)
/**
* Send a new mailable message instance.
*
- * @param \Illuminate\Contracts\Mail\Mailable $mailable;
+ * @param \Illuminate\Contracts\Mail\Mailable $mailable
* @return mixed
*/
public function send(Mailable $mailable)
@@ -32,7 +32,7 @@ public function send(Mailable $mailable)
/**
* Send a mailable message immediately.
*
- * @param \Illuminate\Contracts\Mail\Mailable $mailable;
+ * @param \Illuminate\Contracts\Mail\Mailable $mailable
* @return mixed
*/
public function sendNow(Mailable $mailable)
@@ -43,7 +43,7 @@ public function sendNow(Mailable $mailable)
/**
* Push the given mailable onto the queue.
*
- * @param \Illuminate\Contracts\Mail\Mailable $mailable;
+ * @param \Illuminate\Contracts\Mail\Mailable $mailable
* @return mixed
*/
public function queue(Mailable $mailable) | true |
Other | laravel | framework | 77620822afc96a9fd7c5ca147de2f16666e26ecd.json | fix doc blocks (#35690) | src/Illuminate/Validation/Rules/Dimensions.php | @@ -14,7 +14,7 @@ class Dimensions
/**
* Create a new dimensions rule instance.
*
- * @param array $constraints;
+ * @param array $constraints
* @return void
*/
public function __construct(array $constraints = []) | true |
Other | laravel | framework | f0430832ec658633882d21e5771bb5a0ebc3239d.json | fix doc block | src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php | @@ -42,7 +42,7 @@ public function __construct(Application $app)
* @return mixed
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
- * @throws \Illuminate\Foundation\Http\Exceptions\MaintenanceModeException
+ * @throws \Symfony\Component\HttpKernel\Exception\HttpException
*/
public function handle($request, Closure $next)
{ | false |
Other | laravel | framework | d6d9b9029eed0be0a2b973c0e5cc0cac3a769d25.json | update google fonts (#35615) | src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub | @@ -13,8 +13,8 @@
<script src="{{ asset('js/app.js') }}" defer></script>
<!-- Fonts -->
- <link rel="dns-prefetch" href="//fonts.gstatic.com">
- <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
+ <link rel="preconnect" href="https://fonts.gstatic.com">
+ <link href="https://fonts.googleapis.com/css2?family=Nunito&display=swap" rel="stylesheet">
<!-- Styles -->
<link href="{{ asset('css/app.css') }}" rel="stylesheet"> | true |
Other | laravel | framework | d6d9b9029eed0be0a2b973c0e5cc0cac3a769d25.json | update google fonts (#35615) | src/Illuminate/Foundation/Exceptions/views/illustrated-layout.blade.php | @@ -7,8 +7,8 @@
<title>@yield('title')</title>
<!-- Fonts -->
- <link rel="dns-prefetch" href="//fonts.gstatic.com">
- <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
+ <link rel="preconnect" href="https://fonts.gstatic.com">
+ <link href="https://fonts.googleapis.com/css2?family=Nunito&display=swap" rel="stylesheet">
<!-- Styles -->
<style> | true |
Other | laravel | framework | d6d9b9029eed0be0a2b973c0e5cc0cac3a769d25.json | update google fonts (#35615) | src/Illuminate/Foundation/Exceptions/views/layout.blade.php | @@ -7,8 +7,8 @@
<title>@yield('title')</title>
<!-- Fonts -->
- <link rel="dns-prefetch" href="//fonts.gstatic.com">
- <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css">
+ <link rel="preconnect" href="https://fonts.gstatic.com">
+ <link href="https://fonts.googleapis.com/css2?family=Nunito&display=swap" rel="stylesheet">
<!-- Styles -->
<style> | true |
Other | laravel | framework | d6d9b9029eed0be0a2b973c0e5cc0cac3a769d25.json | update google fonts (#35615) | src/Illuminate/Foundation/Exceptions/views/minimal.blade.php | @@ -7,16 +7,16 @@
<title>@yield('title')</title>
<!-- Fonts -->
- <link rel="dns-prefetch" href="//fonts.gstatic.com">
- <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
+ <link rel="preconnect" href="https://fonts.gstatic.com">
+ <link href="https://fonts.googleapis.com/css2?family=Nunito&display=swap" rel="stylesheet">
<style>
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}a{background-color:transparent}code{font-family:monospace,monospace;font-size:1em}[hidden]{display:none}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{box-sizing:border-box;border:0 solid #e2e8f0}a{color:inherit;text-decoration:inherit}code{font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}svg,video{display:block;vertical-align:middle}video{max-width:100%;height:auto}.bg-white{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-gray-100{--bg-opacity:1;background-color:#f7fafc;background-color:rgba(247,250,252,var(--bg-opacity))}.border-gray-200{--border-opacity:1;border-color:#edf2f7;border-color:rgba(237,242,247,var(--border-opacity))}.border-gray-400{--border-opacity:1;border-color:#cbd5e0;border-color:rgba(203,213,224,var(--border-opacity))}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.flex{display:flex}.grid{display:grid}.hidden{display:none}.items-center{align-items:center}.justify-center{justify-content:center}.font-semibold{font-weight:600}.h-5{height:1.25rem}.h-8{height:2rem}.h-16{height:4rem}.text-sm{font-size:.875rem}.text-lg{font-size:1.125rem}.leading-7{line-height:1.75rem}.mx-auto{margin-left:auto;margin-right:auto}.ml-1{margin-left:.25rem}.mt-2{margin-top:.5rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.ml-4{margin-left:1rem}.mt-8{margin-top:2rem}.ml-12{margin-left:3rem}.-mt-px{margin-top:-1px}.max-w-xl{max-width:36rem}.max-w-6xl{max-width:72rem}.min-h-screen{min-height:100vh}.overflow-hidden{overflow:hidden}.p-6{padding:1.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.pt-8{padding-top:2rem}.fixed{position:fixed}.relative{position:relative}.top-0{top:0}.right-0{right:0}.shadow{box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.06)}.text-center{text-align:center}.text-gray-200{--text-opacity:1;color:#edf2f7;color:rgba(237,242,247,var(--text-opacity))}.text-gray-300{--text-opacity:1;color:#e2e8f0;color:rgba(226,232,240,var(--text-opacity))}.text-gray-400{--text-opacity:1;color:#cbd5e0;color:rgba(203,213,224,var(--text-opacity))}.text-gray-500{--text-opacity:1;color:#a0aec0;color:rgba(160,174,192,var(--text-opacity))}.text-gray-600{--text-opacity:1;color:#718096;color:rgba(113,128,150,var(--text-opacity))}.text-gray-700{--text-opacity:1;color:#4a5568;color:rgba(74,85,104,var(--text-opacity))}.text-gray-900{--text-opacity:1;color:#1a202c;color:rgba(26,32,44,var(--text-opacity))}.uppercase{text-transform:uppercase}.underline{text-decoration:underline}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.tracking-wider{letter-spacing:.05em}.w-5{width:1.25rem}.w-8{width:2rem}.w-auto{width:auto}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}@-webkit-keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@-webkit-keyframes ping{0%{transform:scale(1);opacity:1}75%,to{transform:scale(2);opacity:0}}@keyframes ping{0%{transform:scale(1);opacity:1}75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:translateY(0);-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:translateY(0);-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@media (min-width:640px){.sm\:rounded-lg{border-radius:.5rem}.sm\:block{display:block}.sm\:items-center{align-items:center}.sm\:justify-start{justify-content:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:h-20{height:5rem}.sm\:ml-0{margin-left:0}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:pt-0{padding-top:0}.sm\:text-left{text-align:left}.sm\:text-right{text-align:right}}@media (min-width:768px){.md\:border-t-0{border-top-width:0}.md\:border-l{border-left-width:1px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:1024px){.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (prefers-color-scheme:dark){.dark\:bg-gray-800{--bg-opacity:1;background-color:#2d3748;background-color:rgba(45,55,72,var(--bg-opacity))}.dark\:bg-gray-900{--bg-opacity:1;background-color:#1a202c;background-color:rgba(26,32,44,var(--bg-opacity))}.dark\:border-gray-700{--border-opacity:1;border-color:#4a5568;border-color:rgba(74,85,104,var(--border-opacity))}.dark\:text-white{--text-opacity:1;color:#fff;color:rgba(255,255,255,var(--text-opacity))}.dark\:text-gray-400{--text-opacity:1;color:#cbd5e0;color:rgba(203,213,224,var(--text-opacity))}}
</style>
<style>
body {
- font-family: 'Nunito';
+ font-family: 'Nunito', sans-serif;
}
</style>
</head> | true |
Other | laravel | framework | 94171f04f1aaa79bdcf1f0f9e076f276cd46608d.json | Update phpunit.xml.dist (#35605) | phpunit.xml.dist | @@ -17,14 +17,6 @@
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
- <coverage processUncoveredFiles="true">
- <include>
- <directory suffix=".php">./src</directory>
- </include>
- <exclude>
- <directory suffix=".blade.php">./src/</directory>
- </exclude>
- </coverage>
<php>
<ini name="memory_limit" value="2048M" />
<!-- | false |
Other | laravel | framework | 97d41b065f28b2777f99c06f5f94f8fe65500863.json | add default names | src/Illuminate/Console/Scheduling/ScheduleListCommand.php | @@ -15,6 +15,15 @@ class ScheduleListCommand extends Command
*/
protected $signature = 'schedule:list {--timezone= : The timezone that times should be displayed in}';
+ /**
+ * The name of the console command.
+ *
+ * This name is used to identify the command during lazy loading.
+ *
+ * @var string|null
+ */
+ protected static $defaultName = 'schedule:list';
+
/**
* The console command description.
* | true |
Other | laravel | framework | 97d41b065f28b2777f99c06f5f94f8fe65500863.json | add default names | src/Illuminate/Console/Scheduling/ScheduleTestCommand.php | @@ -13,6 +13,15 @@ class ScheduleTestCommand extends Command
*/
protected $name = 'schedule:test';
+ /**
+ * The name of the console command.
+ *
+ * This name is used to identify the command during lazy loading.
+ *
+ * @var string|null
+ */
+ protected static $defaultName = 'schedule:test';
+
/**
* The console command description.
* | true |
Other | laravel | framework | a3f8589bbd01e85e429c7c38d8b2b7bc9cc7dc8d.json | Apply fixes from StyleCI (#35584) | src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php | @@ -931,7 +931,7 @@ protected function registerScheduleListCommand()
{
$this->app->singleton(ScheduleListCommand::class);
}
-
+
/**
* Register the command.
* | false |
Other | laravel | framework | 97d783449c5330b1e5fb9104f6073869ad3079c1.json | add timezone option | src/Illuminate/Console/Scheduling/ScheduleListCommand.php | @@ -13,7 +13,7 @@ class ScheduleListCommand extends Command
*
* @var string
*/
- protected $name = 'schedule:list';
+ protected $signature = 'schedule:list {--timezone= : The timezone that times should be displayed in}';
/**
* The console command description.
@@ -36,16 +36,16 @@ public function handle(Schedule $schedule)
$event->command,
$event->expression,
$event->description,
- (new CronExpression($event->expression))->getPreviousRunDate(Carbon::now()),
- (new CronExpression($event->expression))->getNextRunDate(Carbon::now()),
+ (new CronExpression($event->expression))
+ ->getNextRunDate(Carbon::now())
+ ->setTimezone($this->option('timezone', config('app.timezone'))),
];
}
$this->table([
'Command',
'Interval',
'Description',
- 'Last Run',
'Next Due',
], $rows ?? []);
} | false |
Other | laravel | framework | 34060336c9cb9b0cb5940cbac791dcd82bc9a4f5.json | register the ScheduleListCommand | src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php | @@ -7,6 +7,7 @@
use Illuminate\Cache\Console\ClearCommand as CacheClearCommand;
use Illuminate\Cache\Console\ForgetCommand as CacheForgetCommand;
use Illuminate\Console\Scheduling\ScheduleFinishCommand;
+use Illuminate\Console\Scheduling\ScheduleListCommand;
use Illuminate\Console\Scheduling\ScheduleRunCommand;
use Illuminate\Console\Scheduling\ScheduleWorkCommand;
use Illuminate\Contracts\Support\DeferrableProvider;
@@ -117,6 +118,7 @@ class ArtisanServiceProvider extends ServiceProvider implements DeferrableProvid
'ScheduleFinish' => ScheduleFinishCommand::class,
'ScheduleRun' => ScheduleRunCommand::class,
'ScheduleWork' => ScheduleWorkCommand::class,
+ 'ScheduleList' => ScheduleListCommand::class,
'StorageLink' => 'command.storage.link',
'Up' => 'command.up',
'ViewCache' => 'command.view.cache',
@@ -938,6 +940,16 @@ protected function registerScheduleWorkCommand()
$this->app->singleton(ScheduleWorkCommand::class);
}
+ /**
+ * Register the command.
+ *
+ * @return void
+ */
+ protected function registerScheduleListCommand()
+ {
+ $this->app->singleton(ScheduleListCommand::class);
+ }
+
/**
* Register the command.
* | false |
Other | laravel | framework | 64e28ba7dc83291ade23da5c337ab3ddda105bdb.json | Apply fixes from StyleCI (#35578) | tests/Integration/Queue/JobEncryptionTest.php | @@ -3,8 +3,8 @@
namespace Illuminate\Tests\Integration\Queue;
use Illuminate\Bus\Queueable;
-use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
+use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Support\Facades\Bus;
@@ -105,7 +105,6 @@ public function handle()
}
}
-
class JobEncryptionTestNonEncryptedJob implements ShouldQueue
{
use Dispatchable, Queueable; | false |
Other | laravel | framework | 7128e69832141b86271c65c27bc4f1c0e99af443.json | Add tests to cover any added or modified code | tests/Database/DatabasePostgresBuilderTest.php | @@ -0,0 +1,209 @@
+<?php
+
+namespace Illuminate\Tests\Database;
+
+use Illuminate\Database\Connection;
+use Illuminate\Database\Query\Processors\PostgresProcessor;
+use Illuminate\Database\Schema\Grammars\PostgresGrammar;
+use Illuminate\Database\Schema\PostgresBuilder;
+use Mockery as m;
+use PHPUnit\Framework\TestCase;
+
+class DatabasePostgresBuilderTest extends TestCase
+{
+ protected function tearDown(): void
+ {
+ m::close();
+ }
+
+ /**
+ * Ensure that when the reference is unqualified (i.e., does not contain a
+ * database name or a schema), and the search_path is empty, the database
+ * specified on the connection is used, and the default schema ('public')
+ * is used.
+ */
+ public function testWhenSearchPathEmptyHasTableWithUnqualifiedReferenceIsCorrect()
+ {
+ $connection = $this->getConnection();
+ $connection->shouldReceive('getConfig')->with('search_path')->andReturn(null);
+ $grammar = m::mock(PostgresGrammar::class);
+ $connection->shouldReceive('getSchemaGrammar')->once()->andReturn($grammar);
+ $grammar->shouldReceive('compileTableExists')->andReturn("select * from information_schema.tables where table_catalog = ? and table_schema = ? and table_name = ? and table_type = 'BASE TABLE'");
+ $connection->shouldReceive('select')->with("select * from information_schema.tables where table_catalog = ? and table_schema = ? and table_name = ? and table_type = 'BASE TABLE'", ['laravel', 'public', 'foo'])->andReturn(['countable_result']);
+ $connection->shouldReceive('getTablePrefix');
+ $connection->shouldReceive('getConfig')->with('database')->andReturn('laravel');
+ $builder = $this->getBuilder($connection);
+
+ $builder->hasTable('foo');
+ }
+
+ /**
+ * Ensure that when the reference is unqualified (i.e., does not contain a
+ * database name or a schema), and the first schema in the search_path is
+ * NOT the default ('public'), the database specified on the connection is
+ * used, and the first schema in the search_path is used.
+ */
+ public function testWhenSearchPathNotEmptyHasTableWithUnqualifiedSchemaReferenceIsCorrect()
+ {
+ $connection = $this->getConnection();
+ $connection->shouldReceive('getConfig')->with('search_path')->andReturn('myapp,public');
+ $grammar = m::mock(PostgresGrammar::class);
+ $connection->shouldReceive('getSchemaGrammar')->once()->andReturn($grammar);
+ $grammar->shouldReceive('compileTableExists')->andReturn("select * from information_schema.tables where table_catalog = ? and table_schema = ? and table_name = ? and table_type = 'BASE TABLE'");
+ $connection->shouldReceive('select')->with("select * from information_schema.tables where table_catalog = ? and table_schema = ? and table_name = ? and table_type = 'BASE TABLE'", ['laravel', 'myapp', 'foo'])->andReturn(['countable_result']);
+ $connection->shouldReceive('getTablePrefix');
+ $connection->shouldReceive('getConfig')->with('database')->andReturn('laravel');
+ $builder = $this->getBuilder($connection);
+
+ $builder->hasTable('foo');
+ }
+
+ /**
+ * Ensure that when the reference is qualified only with a schema, that
+ * the database specified on the connection is used, and the specified
+ * schema is used, even if it is not within the search_path.
+ */
+ public function testWhenSchemaNotInSearchPathHasTableWithQualifiedSchemaReferenceIsCorrect()
+ {
+ $connection = $this->getConnection();
+ $connection->shouldReceive('getConfig')->with('search_path')->andReturn('public');
+ $grammar = m::mock(PostgresGrammar::class);
+ $connection->shouldReceive('getSchemaGrammar')->once()->andReturn($grammar);
+ $grammar->shouldReceive('compileTableExists')->andReturn("select * from information_schema.tables where table_catalog = ? and table_schema = ? and table_name = ? and table_type = 'BASE TABLE'");
+ $connection->shouldReceive('select')->with("select * from information_schema.tables where table_catalog = ? and table_schema = ? and table_name = ? and table_type = 'BASE TABLE'", ['laravel', 'myapp', 'foo'])->andReturn(['countable_result']);
+ $connection->shouldReceive('getTablePrefix');
+ $connection->shouldReceive('getConfig')->with('database')->andReturn('laravel');
+ $builder = $this->getBuilder($connection);
+
+ $builder->hasTable('myapp.foo');
+ }
+
+ /**
+ * Ensure that when the reference is qualified with a database AND a schema,
+ * and the database is NOT the database configured for the connection, the
+ * specified database is used instead.
+ */
+ public function testWhenDatabaseNotDefaultHasTableWithFullyQualifiedReferenceIsCorrect()
+ {
+ $connection = $this->getConnection();
+ $connection->shouldReceive('getConfig')->with('search_path')->andReturn('public');
+ $grammar = m::mock(PostgresGrammar::class);
+ $connection->shouldReceive('getSchemaGrammar')->once()->andReturn($grammar);
+ $grammar->shouldReceive('compileTableExists')->andReturn("select * from information_schema.tables where table_catalog = ? and table_schema = ? and table_name = ? and table_type = 'BASE TABLE'");
+ $connection->shouldReceive('select')->with("select * from information_schema.tables where table_catalog = ? and table_schema = ? and table_name = ? and table_type = 'BASE TABLE'", ['mydatabase', 'myapp', 'foo'])->andReturn(['countable_result']);
+ $connection->shouldReceive('getTablePrefix');
+ $connection->shouldReceive('getConfig')->with('database')->andReturn('laravel');
+ $builder = $this->getBuilder($connection);
+
+ $builder->hasTable('mydatabase.myapp.foo');
+ }
+
+ /**
+ * Ensure that when the reference is unqualified (i.e., does not contain a
+ * database name or a schema), and the search_path is empty, the database
+ * specified on the connection is used, and the default schema ('public')
+ * is used.
+ */
+ public function testWhenSearchPathEmptyGetColumnListingWithUnqualifiedReferenceIsCorrect()
+ {
+ $connection = $this->getConnection();
+ $connection->shouldReceive('getConfig')->with('search_path')->andReturn(null);
+ $grammar = m::mock(PostgresGrammar::class);
+ $connection->shouldReceive('getSchemaGrammar')->once()->andReturn($grammar);
+ $grammar->shouldReceive('compileColumnListing')->andReturn('select column_name from information_schema.columns where table_catalog = ? and table_schema = ? and table_name = ?');
+ $connection->shouldReceive('select')->with('select column_name from information_schema.columns where table_catalog = ? and table_schema = ? and table_name = ?', ['laravel', 'public', 'foo'])->andReturn(['countable_result']);
+ $connection->shouldReceive('getTablePrefix');
+ $connection->shouldReceive('getConfig')->with('database')->andReturn('laravel');
+ $processor = m::mock(PostgresProcessor::class);
+ $connection->shouldReceive('getPostProcessor')->andReturn($processor);
+ $processor->shouldReceive('processColumnListing')->andReturn(['some_column']);
+ $builder = $this->getBuilder($connection);
+
+ $builder->getColumnListing('foo');
+ }
+
+ /**
+ * Ensure that when the reference is unqualified (i.e., does not contain a
+ * database name or a schema), and the first schema in the search_path is
+ * NOT the default ('public'), the database specified on the connection is
+ * used, and the first schema in the search_path is used.
+ */
+ public function testWhenSearchPathNotEmptyGetColumnListingWithUnqualifiedSchemaReferenceIsCorrect()
+ {
+ $connection = $this->getConnection();
+ $connection->shouldReceive('getConfig')->with('search_path')->andReturn('myapp,public');
+ $grammar = m::mock(PostgresGrammar::class);
+ $connection->shouldReceive('getSchemaGrammar')->once()->andReturn($grammar);
+ $grammar->shouldReceive('compileColumnListing')->andReturn('select column_name from information_schema.columns where table_catalog = ? and table_schema = ? and table_name = ?');
+ $connection->shouldReceive('select')->with('select column_name from information_schema.columns where table_catalog = ? and table_schema = ? and table_name = ?', ['laravel', 'myapp', 'foo'])->andReturn(['countable_result']);
+ $connection->shouldReceive('getTablePrefix');
+ $connection->shouldReceive('getConfig')->with('database')->andReturn('laravel');
+ $processor = m::mock(PostgresProcessor::class);
+ $connection->shouldReceive('getPostProcessor')->andReturn($processor);
+ $processor->shouldReceive('processColumnListing')->andReturn(['some_column']);
+ $builder = $this->getBuilder($connection);
+
+ $builder->getColumnListing('foo');
+ }
+
+ /**
+ * Ensure that when the reference is qualified only with a schema, that
+ * the database specified on the connection is used, and the specified
+ * schema is used, even if it is not within the search_path.
+ */
+ public function testWhenSchemaNotInSearchPathGetColumnListingWithQualifiedSchemaReferenceIsCorrect()
+ {
+ $connection = $this->getConnection();
+ $connection->shouldReceive('getConfig')->with('search_path')->andReturn('public');
+ $grammar = m::mock(PostgresGrammar::class);
+ $connection->shouldReceive('getSchemaGrammar')->once()->andReturn($grammar);
+ $grammar->shouldReceive('compileColumnListing')->andReturn('select column_name from information_schema.columns where table_catalog = ? and table_schema = ? and table_name = ?');
+ $connection->shouldReceive('select')->with('select column_name from information_schema.columns where table_catalog = ? and table_schema = ? and table_name = ?', ['laravel', 'myapp', 'foo'])->andReturn(['countable_result']);
+ $connection->shouldReceive('getTablePrefix');
+ $connection->shouldReceive('getConfig')->with('database')->andReturn('laravel');
+ $processor = m::mock(PostgresProcessor::class);
+ $connection->shouldReceive('getPostProcessor')->andReturn($processor);
+ $processor->shouldReceive('processColumnListing')->andReturn(['some_column']);
+ $builder = $this->getBuilder($connection);
+
+ $builder->getColumnListing('myapp.foo');
+ }
+
+ /**
+ * Ensure that when the reference is qualified with a database AND a schema,
+ * and the database is NOT the database configured for the connection, the
+ * specified database is used instead.
+ */
+ public function testWhenDatabaseNotDefaultGetColumnListingWithFullyQualifiedReferenceIsCorrect()
+ {
+ $connection = $this->getConnection();
+ $connection->shouldReceive('getConfig')->with('search_path')->andReturn('public');
+ $grammar = m::mock(PostgresGrammar::class);
+ $connection->shouldReceive('getSchemaGrammar')->once()->andReturn($grammar);
+ $grammar->shouldReceive('compileColumnListing')->andReturn('select column_name from information_schema.columns where table_catalog = ? and table_schema = ? and table_name = ?');
+ $connection->shouldReceive('select')->with('select column_name from information_schema.columns where table_catalog = ? and table_schema = ? and table_name = ?', ['mydatabase', 'myapp', 'foo'])->andReturn(['countable_result']);
+ $connection->shouldReceive('getTablePrefix');
+ $connection->shouldReceive('getConfig')->with('database')->andReturn('laravel');
+ $processor = m::mock(PostgresProcessor::class);
+ $connection->shouldReceive('getPostProcessor')->andReturn($processor);
+ $processor->shouldReceive('processColumnListing')->andReturn(['some_column']);
+ $builder = $this->getBuilder($connection);
+
+ $builder->getColumnListing('mydatabase.myapp.foo');
+ }
+
+ protected function getConnection()
+ {
+ return m::mock(Connection::class);
+ }
+
+ protected function getBuilder($connection)
+ {
+ return new PostgresBuilder($connection);
+ }
+
+ protected function getGrammar()
+ {
+ return new PostgresGrammar;
+ }
+} | true |
Other | laravel | framework | 7128e69832141b86271c65c27bc4f1c0e99af443.json | Add tests to cover any added or modified code | tests/Database/DatabasePostgresSchemaGrammarTest.php | @@ -998,6 +998,20 @@ public function testDropAllTypesEscapesTableNames()
$this->assertSame('drop type "alpha","beta","gamma" cascade', $statement);
}
+ public function testCompileTableExists()
+ {
+ $statement = $this->getGrammar()->compileTableExists();
+
+ $this->assertSame('select * from information_schema.tables where table_catalog = ? and table_schema = ? and table_name = ? and table_type = \'BASE TABLE\'', $statement);
+ }
+
+ public function testCompileColumnListing()
+ {
+ $statement = $this->getGrammar()->compileColumnListing();
+
+ $this->assertSame('select column_name from information_schema.columns where table_catalog = ? and table_schema = ? and table_name = ?', $statement);
+ }
+
protected function getConnection()
{
return m::mock(Connection::class); | true |
Other | laravel | framework | f185be865a02d147cb2793b419b61786e913a8b4.json | Apply fixes from StyleCI (#35550) | src/Illuminate/Queue/Queue.php | @@ -5,7 +5,6 @@
use Closure;
use DateTimeInterface;
use Illuminate\Container\Container;
-use Illuminate\Database\DatabaseTransactionManager;
use Illuminate\Support\Arr;
use Illuminate\Support\InteractsWithTime;
use Illuminate\Support\Str; | false |
Other | laravel | framework | 198eea4c6cf86f2073ea9366b1bf4453aa7979c2.json | Apply fixes from StyleCI (#35528) | src/Illuminate/Http/Client/Factory.php | @@ -235,7 +235,7 @@ public function assertSentInOrder($callbacks)
$this->assertSentCount(count($callbacks));
foreach ($callbacks as $index => $url) {
- $callback = is_callable($url) ? $url : function($request) use ($url) {
+ $callback = is_callable($url) ? $url : function ($request) use ($url) {
return $request->url() == $url;
};
| true |
Other | laravel | framework | 198eea4c6cf86f2073ea9366b1bf4453aa7979c2.json | Apply fixes from StyleCI (#35528) | tests/Http/HttpClientTest.php | @@ -665,29 +665,31 @@ public function testWrongNumberOfRequestsThrowAssertionFailed()
$this->factory->assertSentInOrder($exampleUrls);
}
- public function testCanAssertAgainstOrderOfHttpRequestsWithCallables() {
+ public function testCanAssertAgainstOrderOfHttpRequestsWithCallables()
+ {
$this->factory->fake();
$exampleUrls = [
- function($request) {
+ function ($request) {
return $request->url() == 'http://example.com/1';
},
- function($request) {
+ function ($request) {
return $request->url() == 'http://example.com/2';
},
- function($request) {
+ function ($request) {
return $request->url() == 'http://example.com/3';
},
];
-
+
$this->factory->get('http://example.com/1');
$this->factory->get('http://example.com/2');
$this->factory->get('http://example.com/3');
$this->factory->assertSentInOrder($exampleUrls);
}
- public function testCanAssertAgainstOrderOfHttpRequestsWithCallablesAndHeaders() {
+ public function testCanAssertAgainstOrderOfHttpRequestsWithCallablesAndHeaders()
+ {
$this->factory->fake();
$executionOrder = [
@@ -704,7 +706,7 @@ function (Request $request) {
$request->hasHeader('X-Test-Header', 'bar') &&
$request->hasHeader('X-Test-ArrayHeader', ['bar', 'baz']) &&
$request['name'] === 'Taylor';
- }
+ },
];
$this->factory->withHeaders([
@@ -724,7 +726,8 @@ function (Request $request) {
$this->factory->assertSentInOrder($executionOrder);
}
- public function testCanAssertAgainstOrderOfHttpRequestsWithCallablesAndHeadersFailsCorrectly() {
+ public function testCanAssertAgainstOrderOfHttpRequestsWithCallablesAndHeadersFailsCorrectly()
+ {
$this->factory->fake();
$executionOrder = [ | true |
Other | laravel | framework | af6ba0adc9316531b5d2db1a610a6db3f27405e4.json | Add ability to assert against callables | src/Illuminate/Http/Client/Factory.php | @@ -273,7 +273,16 @@ public function assertSentInOrder($requestSequence)
$this->assertSentCount(count($requestSequence));
foreach ($requestSequence as $orderPosition => $url) {
- PHPUnit::assertEquals($url, $this->recorded[$orderPosition][0]->url());
+
+ $callback = $url;
+ if(!is_callable($url)){
+ $callback = function($request) use ($url) {
+ return $request->url() == $url;
+ };
+ }
+
+ PHPUnit::assertTrue( $callback( $this->recorded[ $orderPosition ][0], $this->recorded[ $orderPosition ][1] ) );
+
}
}
| true |
Other | laravel | framework | af6ba0adc9316531b5d2db1a610a6db3f27405e4.json | Add ability to assert against callables | tests/Http/HttpClientTest.php | @@ -611,7 +611,7 @@ public function testSinkWhenStubbedByPath()
$this->assertSame(json_encode(['page' => 'foo']), stream_get_contents($resource));
}
- public function testCanAssertAgainstOrderOfHttpRequests()
+ public function testCanAssertAgainstOrderOfHttpRequestsWithUrlStrings()
{
$this->factory->fake();
@@ -664,4 +664,102 @@ public function testWrongNumberOfRequestsThrowAssertionFailed()
$this->factory->assertSentInOrder($exampleUrls);
}
+
+ public function testCanAssertAgainstOrderOfHttpRequestsWithCallables() {
+ $this->factory->fake();
+
+ $exampleUrls = [
+ function($request) {
+ return $request->url() == 'http://example.com/1';
+ },
+ function($request) {
+ return $request->url() == 'http://example.com/2';
+ },
+ function($request) {
+ return $request->url() == 'http://example.com/3';
+ },
+ ];
+
+ $this->factory->get('http://example.com/1');
+ $this->factory->get('http://example.com/2');
+ $this->factory->get('http://example.com/3');
+
+ $this->factory->assertSentInOrder($exampleUrls);
+ }
+
+ public function testCanAssertAgainstOrderOfHttpRequestsWithCallablesAndHeaders() {
+ $this->factory->fake();
+
+ $executionOrder = [
+ function (Request $request) {
+ return $request->url() === 'http://foo.com/json' &&
+ $request->hasHeader('Content-Type', 'application/json') &&
+ $request->hasHeader('X-Test-Header', 'foo') &&
+ $request->hasHeader('X-Test-ArrayHeader', ['bar', 'baz']) &&
+ $request['name'] === 'Taylor';
+ },
+ function (Request $request) {
+ return $request->url() === 'http://bar.com/json' &&
+ $request->hasHeader('Content-Type', 'application/json') &&
+ $request->hasHeader('X-Test-Header', 'bar') &&
+ $request->hasHeader('X-Test-ArrayHeader', ['bar', 'baz']) &&
+ $request['name'] === 'Taylor';
+ }
+ ];
+
+ $this->factory->withHeaders([
+ 'X-Test-Header' => 'foo',
+ 'X-Test-ArrayHeader' => ['bar', 'baz'],
+ ])->post('http://foo.com/json', [
+ 'name' => 'Taylor',
+ ]);
+
+ $this->factory->withHeaders([
+ 'X-Test-Header' => 'bar',
+ 'X-Test-ArrayHeader' => ['bar', 'baz'],
+ ])->post('http://bar.com/json', [
+ 'name' => 'Taylor',
+ ]);
+
+ $this->factory->assertSentInOrder($executionOrder);
+ }
+
+ public function testCanAssertAgainstOrderOfHttpRequestsWithCallablesAndHeadersFailsCorrectly() {
+ $this->factory->fake();
+
+ $executionOrder = [
+ function (Request $request) {
+ return $request->url() === 'http://bar.com/json' &&
+ $request->hasHeader('Content-Type', 'application/json') &&
+ $request->hasHeader('X-Test-Header', 'bar') &&
+ $request->hasHeader('X-Test-ArrayHeader', ['bar', 'baz']) &&
+ $request['name'] === 'Taylor';
+ },
+ function (Request $request) {
+ return $request->url() === 'http://foo.com/json' &&
+ $request->hasHeader('Content-Type', 'application/json') &&
+ $request->hasHeader('X-Test-Header', 'foo') &&
+ $request->hasHeader('X-Test-ArrayHeader', ['bar', 'baz']) &&
+ $request['name'] === 'Taylor';
+ },
+ ];
+
+ $this->factory->withHeaders([
+ 'X-Test-Header' => 'foo',
+ 'X-Test-ArrayHeader' => ['bar', 'baz'],
+ ])->post('http://foo.com/json', [
+ 'name' => 'Taylor',
+ ]);
+
+ $this->factory->withHeaders([
+ 'X-Test-Header' => 'bar',
+ 'X-Test-ArrayHeader' => ['bar', 'baz'],
+ ])->post('http://bar.com/json', [
+ 'name' => 'Taylor',
+ ]);
+
+ $this->expectException(\PHPUnit\Framework\AssertionFailedError::class);
+
+ $this->factory->assertSentInOrder($executionOrder);
+ }
} | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.