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
ba0fa733243fd9b5abac67e40c9a1f7ba2ca0391.json
unify exception formatting (#23266)
src/Illuminate/View/Factory.php
@@ -276,7 +276,7 @@ public function exists($view) public function getEngineFromPath($path) { if (! $extension = $this->getExtension($path)) { - throw new InvalidArgumentException("Unrecognized extension in file: $path"); + throw new InvalidArgumentException("Unrecognized extension in file: {$path}"); } $engine = $this->extensions[$extension];
true
Other
laravel
framework
ba0fa733243fd9b5abac67e40c9a1f7ba2ca0391.json
unify exception formatting (#23266)
src/Illuminate/View/FileViewFinder.php
@@ -105,7 +105,7 @@ protected function parseNamespaceSegments($name) $segments = explode(static::HINT_PATH_DELIMITER, $name); if (count($segments) != 2) { - throw new InvalidArgumentException("View [$name] has an invalid name."); + throw new InvalidArgumentException("View [{$name}] has an invalid name."); } if (! isset($this->hints[$segments[0]])) { @@ -134,7 +134,7 @@ protected function findInPaths($name, $paths) } } - throw new InvalidArgumentException("View [$name] not found."); + throw new InvalidArgumentException("View [{$name}] not found."); } /**
true
Other
laravel
framework
ba0fa733243fd9b5abac67e40c9a1f7ba2ca0391.json
unify exception formatting (#23266)
src/Illuminate/View/View.php
@@ -396,9 +396,9 @@ public function __unset($key) public function __call($method, $parameters) { if (! Str::startsWith($method, 'with')) { - $class = static::class; - - throw new BadMethodCallException("Method {$class}::{$method} does not exist."); + throw new BadMethodCallException(sprintf( + 'Method %s::%s does not exist.', static::class, $method + )); } return $this->with(Str::camel(substr($method, 4)), $parameters[0]);
true
Other
laravel
framework
e7fa0b047b401666a50940c722bba762176a556f.json
Apply fixes from StyleCI (#23265)
src/Illuminate/Database/Eloquent/Model.php
@@ -231,7 +231,7 @@ public function fill(array $attributes) $this->setAttribute($key, $value); } elseif ($totallyGuarded) { throw new MassAssignmentException(sprintf( - "Add [%s] to fillable property to allow mass assignment on [%s].", + 'Add [%s] to fillable property to allow mass assignment on [%s].', $key, get_class($this) )); }
true
Other
laravel
framework
e7fa0b047b401666a50940c722bba762176a556f.json
Apply fixes from StyleCI (#23265)
tests/Support/SupportCollectionTest.php
@@ -633,10 +633,11 @@ public function testDiffUsingWithCollection() { $c = new Collection(['en_GB', 'fr', 'HR']); // demonstrate that diffKeys wont support case insensitivity - $this->assertEquals(['en_GB', 'fr', 'HR'], $c->diff(new Collection(['en_gb' , 'hr']))->values()->toArray()); + $this->assertEquals(['en_GB', 'fr', 'HR'], $c->diff(new Collection(['en_gb', 'hr']))->values()->toArray()); // allow for case insensitive difference - $this->assertEquals(['fr'], $c->diffUsing(new Collection(['en_gb' , 'hr']), 'strcasecmp')->values()->toArray()); + $this->assertEquals(['fr'], $c->diffUsing(new Collection(['en_gb', 'hr']), 'strcasecmp')->values()->toArray()); } + public function testDiffUsingWithNull() { $c = new Collection(['en_GB', 'fr', 'HR']);
true
Other
laravel
framework
d435f584348f754ffe1a680e98fd30e6d1e17d61.json
Apply fixes from StyleCI (#23264)
src/Illuminate/Database/Eloquent/Model.php
@@ -231,7 +231,7 @@ public function fill(array $attributes) $this->setAttribute($key, $value); } elseif ($totallyGuarded) { throw new MassAssignmentException(sprintf( - "Add [%s] to fillable property to allow mass assignment on [%s].", + 'Add [%s] to fillable property to allow mass assignment on [%s].', $key, get_class($this) )); }
true
Other
laravel
framework
d435f584348f754ffe1a680e98fd30e6d1e17d61.json
Apply fixes from StyleCI (#23264)
tests/Support/SupportCollectionTest.php
@@ -633,10 +633,11 @@ public function testDiffUsingWithCollection() { $c = new Collection(['en_GB', 'fr', 'HR']); // demonstrate that diffKeys wont support case insensitivity - $this->assertEquals(['en_GB', 'fr', 'HR'], $c->diff(new Collection(['en_gb' , 'hr']))->values()->toArray()); + $this->assertEquals(['en_GB', 'fr', 'HR'], $c->diff(new Collection(['en_gb', 'hr']))->values()->toArray()); // allow for case insensitive difference - $this->assertEquals(['fr'], $c->diffUsing(new Collection(['en_gb' , 'hr']), 'strcasecmp')->values()->toArray()); + $this->assertEquals(['fr'], $c->diffUsing(new Collection(['en_gb', 'hr']), 'strcasecmp')->values()->toArray()); } + public function testDiffUsingWithNull() { $c = new Collection(['en_GB', 'fr', 'HR']);
true
Other
laravel
framework
4215fd36f269f3b6d27fd453c7503cbde9806621.json
set Redis connection names
src/Illuminate/Redis/Connections/Connection.php
@@ -18,6 +18,13 @@ abstract class Connection */ protected $client; + /** + * The Redis connection name. + * + * @var string + */ + protected $name; + /** * Subscribe to a set of given channels for messages. * @@ -96,6 +103,27 @@ public function command($method, array $parameters = []) return $this->client->{$method}(...$parameters); } + /** + * Get the connection name. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Set the connections name. + * + * @param string $name + * @return void + */ + public function setName($name) + { + $this->name = $name; + } + /** * Pass other method calls down to the underlying client. *
true
Other
laravel
framework
4215fd36f269f3b6d27fd453c7503cbde9806621.json
set Redis connection names
src/Illuminate/Redis/RedisManager.php
@@ -58,7 +58,10 @@ public function connection($name = null) return $this->connections[$name]; } - return $this->connections[$name] = $this->resolve($name); + $this->connections[$name] = $this->resolve($name); + $this->connections[$name]->setName($name); + + return $this->connections[$name]; } /**
true
Other
laravel
framework
d84a0e2334d0732f560b34b7cb5307a4ea4389c2.json
Add reference to model in MassAssignmentException
src/Illuminate/Database/Eloquent/Model.php
@@ -230,8 +230,9 @@ public function fill(array $attributes) if ($this->isFillable($key)) { $this->setAttribute($key, $value); } elseif ($totallyGuarded) { + $model = get_class($this); throw new MassAssignmentException( - "Add [{$key}] to fillable property to allow mass assignment." + "Add [{$key}] to fillable property to allow mass assignment on {$model}." ); } }
false
Other
laravel
framework
b3d61d4b091e80a3802dc80cf2611e7bcae8c722.json
Add Blade::include for include aliases
src/Illuminate/View/Compilers/BladeCompiler.php
@@ -458,6 +458,24 @@ public function directive($name, callable $handler) $this->customDirectives[$name] = $handler; } + /** + * Register an include alias directive. + * + * @param string $path + * @param string $alias + * @return void + */ + public function include($path, $alias = null) + { + $alias = $alias ?: array_last(explode('.', $path)); + + $this->directive($alias, function ($expression) use ($path) { + $expression = $this->stripParentheses($expression) ? : '[]'; + + return "<?php echo \$__env->make('{$path}', {$expression}, array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>"; + }); + } + /** * Get the list of custom directives. *
true
Other
laravel
framework
b3d61d4b091e80a3802dc80cf2611e7bcae8c722.json
Add Blade::include for include aliases
tests/View/Blade/BladeCustomTest.php
@@ -123,4 +123,31 @@ public function testCustomComponentsDefaultAlias() <?php echo $__env->renderComponent(); ?>'; $this->assertEquals($expected, $this->compiler->compileString($string)); } + + public function testCustomIncludes() + { + $this->compiler->include('app.includes.input', 'input'); + + $string = '@input'; + $expected = '<?php echo $__env->make(\'app.includes.input\', [], array_except(get_defined_vars(), array(\'__data\', \'__path\')))->render(); ?>'; + $this->assertEquals($expected, $this->compiler->compileString($string)); + } + + public function testCustomIncludesWithData() + { + $this->compiler->include('app.includes.input', 'input'); + + $string = '@input([\'type\' => \'email\'])'; + $expected = '<?php echo $__env->make(\'app.includes.input\', [\'type\' => \'email\'], array_except(get_defined_vars(), array(\'__data\', \'__path\')))->render(); ?>'; + $this->assertEquals($expected, $this->compiler->compileString($string)); + } + + public function testCustomIncludesDefaultAlias() + { + $this->compiler->include('app.includes.input'); + + $string = '@input'; + $expected = '<?php echo $__env->make(\'app.includes.input\', [], array_except(get_defined_vars(), array(\'__data\', \'__path\')))->render(); ?>'; + $this->assertEquals($expected, $this->compiler->compileString($string)); + } }
true
Other
laravel
framework
e0cf00fd1319733666d6c9c1e24468c66f6f58c7.json
normalize actions on route:list artisan (#23148) remove leading slash
src/Illuminate/Foundation/Console/RouteListCommand.php
@@ -110,7 +110,7 @@ protected function getRouteInformation(Route $route) 'method' => implode('|', $route->methods()), 'uri' => $route->uri(), 'name' => $route->getName(), - 'action' => $route->getActionName(), + 'action' => ltrim($route->getActionName(), '\\'), 'middleware' => $this->getMiddleware($route), ]); }
false
Other
laravel
framework
1026ea029ef53f982985a0d08099349af383a082.json
Apply fixes from StyleCI (#23146)
src/Illuminate/Foundation/Exceptions/Handler.php
@@ -402,7 +402,7 @@ protected function renderHttpException(HttpException $e) if (view()->exists($view = "errors::{$status}")) { return response()->view($view, [ - 'exception' => $e, 'errors' => new ViewErrorBag + 'exception' => $e, 'errors' => new ViewErrorBag, ], $status, $e->getHeaders()); }
false
Other
laravel
framework
8dce475aac47fea67694bb5739e20746f99a0ac0.json
Add an empty error bag for HTTP exceptions
src/Illuminate/Foundation/Exceptions/Handler.php
@@ -11,6 +11,7 @@ use Illuminate\Routing\Router; use Illuminate\Http\JsonResponse; use Illuminate\Support\Facades\Auth; +use Illuminate\Support\ViewErrorBag; use Illuminate\Filesystem\Filesystem; use Illuminate\Http\RedirectResponse; use Whoops\Handler\PrettyPageHandler; @@ -400,7 +401,7 @@ protected function renderHttpException(HttpException $e) })->push(__DIR__.'/views')->all()); if (view()->exists($view = "errors::{$status}")) { - return response()->view($view, ['exception' => $e], $status, $e->getHeaders()); + return response()->view($view, ['exception' => $e, 'errors' => new ViewErrorBag], $status, $e->getHeaders()); } return $this->convertExceptionToResponse($e);
false
Other
laravel
framework
29c7deb6562a09a120e63d81d53f3c5fa412b7f7.json
update react preset to latest version (#23134)
src/Illuminate/Foundation/Console/Presets/React.php
@@ -32,8 +32,8 @@ protected static function updatePackageArray(array $packages) { return [ 'babel-preset-react' => '^6.23.0', - 'react' => '^15.4.2', - 'react-dom' => '^15.4.2', + 'react' => '^16.2.0', + 'react-dom' => '^16.2.0', ] + Arr::except($packages, ['vue']); }
false
Other
laravel
framework
38284c86642a7fe3c4e2db7622e116df9b0bb729.json
Update CacheSchedulingMutex.php (#23106)
src/Illuminate/Console/Scheduling/CacheSchedulingMutex.php
@@ -22,7 +22,7 @@ class CacheSchedulingMutex implements SchedulingMutex public $store; /** - * Create a new overlapping strategy. + * Create a new scheduling strategy. * * @param \Illuminate\Contracts\Cache\Factory $cache * @return void
false
Other
laravel
framework
127a83d8d2b1f3842b685982ac531936ef3030c4.json
Apply fixes from StyleCI (#23102)
src/Illuminate/Http/Request.php
@@ -350,7 +350,7 @@ protected function getInputSource() * @param \Illuminate\Http\Request|null $to * @return static */ - public static function createFrom(Request $from, $to = null) + public static function createFrom(self $from, $to = null) { $request = $to ?: new static;
false
Other
laravel
framework
04d90b85cd486b217961900ebca5be783367cb88.json
Apply fixes from StyleCI (#23101)
src/Illuminate/Http/Request.php
@@ -350,7 +350,7 @@ protected function getInputSource() * @param \Illuminate\Http\Request|null $to * @return static */ - public static function createFrom(Request $from, $to = null) + public static function createFrom(self $from, $to = null) { $request = $to ?: new static;
false
Other
laravel
framework
b0c2459d7e55519d1c61927ab526e489a3a52eaf.json
move clone logic
src/Illuminate/Foundation/Providers/FormRequestServiceProvider.php
@@ -32,38 +32,9 @@ public function boot() }); $this->app->resolving(FormRequest::class, function ($request, $app) { - $this->initializeRequest($request, $app['request']); + $request = FormRequest::createFrom($app['request'], $request); $request->setContainer($app)->setRedirector($app->make(Redirector::class)); }); } - - /** - * Initialize the form request with data from the given request. - * - * @param \Illuminate\Foundation\Http\FormRequest $form - * @param \Symfony\Component\HttpFoundation\Request $current - * @return void - */ - protected function initializeRequest(FormRequest $form, Request $current) - { - $files = $current->files->all(); - - $files = is_array($files) ? array_filter($files) : $files; - - $form->initialize( - $current->query->all(), $current->request->all(), $current->attributes->all(), - $current->cookies->all(), $files, $current->server->all(), $current->getContent() - ); - - $form->setJson($current->json()); - - if ($session = $current->getSession()) { - $form->setLaravelSession($session); - } - - $form->setUserResolver($current->getUserResolver()); - - $form->setRouteResolver($current->getRouteResolver()); - } }
true
Other
laravel
framework
b0c2459d7e55519d1c61927ab526e489a3a52eaf.json
move clone logic
src/Illuminate/Http/Request.php
@@ -343,6 +343,39 @@ protected function getInputSource() return $this->getRealMethod() == 'GET' ? $this->query : $this->request; } + /** + * Create a new request instance from the given Laravel request. + * + * @param \Illuminate\Http\Request $from + * @param \Illuminate\Http\Request|null $to + * @return static + */ + public static function createFrom(Request $from, $to = null) + { + $request = $to ?: new static; + + $files = $from->files->all(); + + $files = is_array($files) ? array_filter($files) : $files; + + $request->initialize( + $from->query->all(), $from->request->all(), $from->attributes->all(), + $from->cookies->all(), $files, $from->server->all(), $from->getContent() + ); + + $request->setJson($from->json()); + + if ($session = $from->getSession()) { + $request->setLaravelSession($session); + } + + $request->setUserResolver($from->getUserResolver()); + + $request->setRouteResolver($from->getRouteResolver()); + + return $request; + } + /** * Create an Illuminate request from a Symfony instance. *
true
Other
laravel
framework
20e29199365a11b31e35179bbfe3e83485e05a03.json
allow customization of schedule mutex cache store
src/Illuminate/Console/Scheduling/CacheEventMutex.php
@@ -2,21 +2,28 @@ namespace Illuminate\Console\Scheduling; -use Illuminate\Contracts\Cache\Repository as Cache; +use Illuminate\Contracts\Cache\Factory as Cache; class CacheEventMutex implements EventMutex { /** * The cache repository implementation. * - * @var \Illuminate\Contracts\Cache\Repository + * @var \Illuminate\Contracts\Cache\Factory */ public $cache; + /** + * The cache store that should be used. + * + * @var string|null + */ + public $store; + /** * Create a new overlapping strategy. * - * @param \Illuminate\Contracts\Cache\Repository $cache + * @param \Illuminate\Contracts\Cache\Factory $cache * @return void */ public function __construct(Cache $cache) @@ -32,7 +39,7 @@ public function __construct(Cache $cache) */ public function create(Event $event) { - return $this->cache->add( + return $this->cache->store($this->store)->add( $event->mutexName(), true, $event->expiresAt ); } @@ -45,7 +52,7 @@ public function create(Event $event) */ public function exists(Event $event) { - return $this->cache->has($event->mutexName()); + return $this->cache->store($this->store)->has($event->mutexName()); } /** @@ -56,6 +63,19 @@ public function exists(Event $event) */ public function forget(Event $event) { - $this->cache->forget($event->mutexName()); + $this->cache->store($this->store)->forget($event->mutexName()); + } + + /** + * Specify the cache store that should be used. + * + * @param string $store + * @return $this + */ + public function useStore($store) + { + $this->store = $store; + + return $this; } }
true
Other
laravel
framework
20e29199365a11b31e35179bbfe3e83485e05a03.json
allow customization of schedule mutex cache store
src/Illuminate/Console/Scheduling/CacheSchedulingMutex.php
@@ -3,21 +3,28 @@ namespace Illuminate\Console\Scheduling; use DateTimeInterface; -use Illuminate\Contracts\Cache\Repository as Cache; +use Illuminate\Contracts\Cache\Factory as Cache; class CacheSchedulingMutex implements SchedulingMutex { /** - * The cache repository implementation. + * The cache factory implementation. * - * @var \Illuminate\Contracts\Cache\Repository + * @var \Illuminate\Contracts\Cache\Factory */ public $cache; + /** + * The cache store that should be used. + * + * @var string|null + */ + public $store; + /** * Create a new overlapping strategy. * - * @param \Illuminate\Contracts\Cache\Repository $cache + * @param \Illuminate\Contracts\Cache\Factory $cache * @return void */ public function __construct(Cache $cache) @@ -34,7 +41,9 @@ public function __construct(Cache $cache) */ public function create(Event $event, DateTimeInterface $time) { - return $this->cache->add($event->mutexName().$time->format('Hi'), true, 60); + return $this->cache->store($this->store)->add( + $event->mutexName().$time->format('Hi'), true, 60 + ); } /** @@ -46,6 +55,21 @@ public function create(Event $event, DateTimeInterface $time) */ public function exists(Event $event, DateTimeInterface $time) { - return $this->cache->has($event->mutexName().$time->format('Hi')); + return $this->cache->store($this->store)->has( + $event->mutexName().$time->format('Hi') + ); + } + + /** + * Specify the cache store that should be used. + * + * @param string $store + * @return $this + */ + public function useStore($store) + { + $this->store = $store; + + return $this; } }
true
Other
laravel
framework
20e29199365a11b31e35179bbfe3e83485e05a03.json
allow customization of schedule mutex cache store
src/Illuminate/Console/Scheduling/Schedule.php
@@ -174,4 +174,23 @@ public function events() { return $this->events; } + + /** + * Specify the cache store that should be used to store mutexes. + * + * @param string $store + * @return $this + */ + public function useCache($store) + { + if ($this->eventMutex instanceof CacheEventMutex) { + $this->eventMutex->useStore($store); + } + + if ($this->schedulingMutex instanceof CacheSchedulingMutex) { + $this->schedulingMutex->useStore($store); + } + + return $this; + } }
true
Other
laravel
framework
20e29199365a11b31e35179bbfe3e83485e05a03.json
allow customization of schedule mutex cache store
tests/Console/ConsoleEventSchedulerTest.php
@@ -4,15 +4,18 @@ use Mockery as m; use PHPUnit\Framework\TestCase; +use Illuminate\Container\Container; use Illuminate\Console\Scheduling\Schedule; +use Illuminate\Console\Scheduling\EventMutex; +use Illuminate\Console\Scheduling\SchedulingMutex; class ConsoleEventSchedulerTest extends TestCase { public function setUp() { parent::setUp(); - $container = \Illuminate\Container\Container::getInstance(); + $container = Container::getInstance(); $container->instance('Illuminate\Console\Scheduling\EventMutex', m::mock('Illuminate\Console\Scheduling\CacheEventMutex')); @@ -28,6 +31,14 @@ public function tearDown() m::close(); } + public function testMutexCanReceiveCustomStore() + { + Container::getInstance()->make(EventMutex::class)->shouldReceive('useStore')->once()->with('test'); + Container::getInstance()->make(SchedulingMutex::class)->shouldReceive('useStore')->once()->with('test'); + + $this->schedule->useCache('test'); + } + public function testExecCreatesNewCommand() { $escape = '\\' === DIRECTORY_SEPARATOR ? '"' : '\'';
true
Other
laravel
framework
20e29199365a11b31e35179bbfe3e83485e05a03.json
allow customization of schedule mutex cache store
tests/Console/Scheduling/CacheEventMutexTest.php
@@ -19,6 +19,11 @@ class CacheEventMutexTest extends TestCase */ protected $event; + /** + * @var \Illuminate\Contracts\Cache\Factory + */ + protected $cacheFactory; + /** * @var \Illuminate\Contracts\Cache\Repository */ @@ -28,8 +33,10 @@ public function setUp() { parent::setUp(); + $this->cacheFactory = m::mock('Illuminate\Contracts\Cache\Factory'); $this->cacheRepository = m::mock('Illuminate\Contracts\Cache\Repository'); - $this->cacheMutex = new CacheEventMutex($this->cacheRepository); + $this->cacheFactory->shouldReceive('store')->andReturn($this->cacheRepository); + $this->cacheMutex = new CacheEventMutex($this->cacheFactory); $this->event = new Event($this->cacheMutex, 'command'); } @@ -40,6 +47,15 @@ public function testPreventOverlap() $this->cacheMutex->create($this->event); } + public function testCustomConnection() + { + $this->cacheFactory->shouldReceive('store')->with('test')->andReturn($this->cacheRepository); + $this->cacheRepository->shouldReceive('add')->once(); + $this->cacheMutex->useStore('test'); + + $this->cacheMutex->create($this->event); + } + public function testPreventOverlapFails() { $this->cacheRepository->shouldReceive('add')->once()->andReturn(false);
true
Other
laravel
framework
20e29199365a11b31e35179bbfe3e83485e05a03.json
allow customization of schedule mutex cache store
tests/Console/Scheduling/CacheSchedulingMutexTest.php
@@ -26,6 +26,11 @@ class CacheSchedulingMutexTest extends TestCase */ protected $time; + /** + * @var \Illuminate\Contracts\Cache\Factory + */ + protected $cacheFactory; + /** * @var \Illuminate\Contracts\Cache\Repository */ @@ -35,9 +40,11 @@ public function setUp() { parent::setUp(); + $this->cacheFactory = m::mock('Illuminate\Contracts\Cache\Factory'); $this->cacheRepository = m::mock('Illuminate\Contracts\Cache\Repository'); - $this->cacheMutex = new CacheSchedulingMutex($this->cacheRepository); - $this->event = new Event(new CacheEventMutex($this->cacheRepository), 'command'); + $this->cacheFactory->shouldReceive('store')->andReturn($this->cacheRepository); + $this->cacheMutex = new CacheSchedulingMutex($this->cacheFactory); + $this->event = new Event(new CacheEventMutex($this->cacheFactory), 'command'); $this->time = Carbon::now(); } @@ -48,6 +55,15 @@ public function testMutexReceviesCorrectCreate() $this->assertTrue($this->cacheMutex->create($this->event, $this->time)); } + public function testCanUseCustomConnection() + { + $this->cacheFactory->shouldReceive('store')->with('test')->andReturn($this->cacheRepository); + $this->cacheRepository->shouldReceive('add')->once()->with($this->event->mutexName().$this->time->format('Hi'), true, 60)->andReturn(true); + $this->cacheMutex->useStore('test'); + + $this->assertTrue($this->cacheMutex->create($this->event, $this->time)); + } + public function testPreventsMultipleRuns() { $this->cacheRepository->shouldReceive('add')->once()->with($this->event->mutexName().$this->time->format('Hi'), true, 60)->andReturn(false);
true
Other
laravel
framework
b6f7cfbc1efcc3866eef336b6cb4f9ac1b221c32.json
Remove monologConfigurator infrastructure (#23078) This was made obsolete with the overhaul of the new logger in 5.6 and isn't applied anymore (i.e. dead code). It was used in `\Illuminate\Log\LogServiceProvider`
src/Illuminate/Foundation/Application.php
@@ -94,13 +94,6 @@ class Application extends Container implements ApplicationContract, HttpKernelIn */ protected $deferredServices = []; - /** - * A custom callback used to configure Monolog. - * - * @var callable|null - */ - protected $monologConfigurator; - /** * The custom database path defined by the developer. * @@ -1044,39 +1037,6 @@ public function provideFacades($namespace) AliasLoader::setFacadeNamespace($namespace); } - /** - * Define a callback to be used to configure Monolog. - * - * @param callable $callback - * @return $this - */ - public function configureMonologUsing(callable $callback) - { - $this->monologConfigurator = $callback; - - return $this; - } - - /** - * Determine if the application has a custom Monolog configurator. - * - * @return bool - */ - public function hasMonologConfigurator() - { - return ! is_null($this->monologConfigurator); - } - - /** - * Get the custom Monolog configurator for the application. - * - * @return callable - */ - public function getMonologConfigurator() - { - return $this->monologConfigurator; - } - /** * Get the current application locale. *
false
Other
laravel
framework
8135cf594b23206dd62ff619e91eec130d2862a1.json
remove double reference (#23060)
CHANGELOG-5.6.md
@@ -91,7 +91,7 @@ ### Requests - ⚠️ Return `false` from `expectsJson()` when requested content type isn't explicit ([#22506](https://github.com/laravel/framework/pull/22506), [3624d27](https://github.com/laravel/framework/commit/3624d2702c783d13bd23b852ce35662bee9a8fea)) -- Added `Request::getSession()` method ([e546a5b](https://github.com/laravel/framework/commit/e546a5b83aa9fb5bbcb8e80db0c263c09b5d5dd6), [e546a5b](https://github.com/laravel/framework/commit/e546a5b83aa9fb5bbcb8e80db0c263c09b5d5dd6)) +- Added `Request::getSession()` method ([e546a5b](https://github.com/laravel/framework/commit/e546a5b83aa9fb5bbcb8e80db0c263c09b5d5dd6)) - Accept array of keys on `Request::hasAny()` ([#22952](https://github.com/laravel/framework/pull/22952)) ### Responses
false
Other
laravel
framework
83c2ec751d46b427ca9e53644fced4cc439564a5.json
Add Nested Joins to Query Builder Add $nestedJoins vairable to compileJoins function Add tests testJoinsWithNestedJoins, testJoinsWithMultipleNestedJoins, testJoinsWithNestedJoinWithAdvancedSubqueryCondition to DatabaseQueryBuilderTest
src/Illuminate/Database/Query/Grammars/Grammar.php
@@ -152,10 +152,11 @@ protected function compileFrom(Builder $query, $table) */ protected function compileJoins(Builder $query, $joins) { - return collect($joins)->map(function ($join) { + return collect($joins)->map(function ($join) use ($query) { $table = $this->wrapTable($join->table); + $nestedJoins = is_null($join->joins) ? '' : ' '.$this->compileJoins($query, $join->joins); - return trim("{$join->type} join {$table} {$this->compileWheres($join)}"); + return trim("{$join->type} join {$table}{$nestedJoins} {$this->compileWheres($join)}"); })->implode(' '); }
true
Other
laravel
framework
83c2ec751d46b427ca9e53644fced4cc439564a5.json
Add Nested Joins to Query Builder Add $nestedJoins vairable to compileJoins function Add tests testJoinsWithNestedJoins, testJoinsWithMultipleNestedJoins, testJoinsWithNestedJoinWithAdvancedSubqueryCondition to DatabaseQueryBuilderTest
tests/Database/DatabaseQueryBuilderTest.php
@@ -1190,6 +1190,54 @@ public function testJoinsWithAdvancedSubqueryCondition() $this->assertEquals(['1', true], $builder->getBindings()); } + public function testJoinsWithNestedJoins() + { + $builder = $this->getBuilder(); + $builder->select('users.id', 'contacts.id', 'contact_types.id')->from('users')->leftJoin('contacts', function ($j) { + $j->on('users.id', 'contacts.id')->join('contact_types', 'contacts.contact_type_id', '=', 'contact_types.id'); + }); + $this->assertEquals('select "users"."id", "contacts"."id", "contact_types"."id" from "users" left join "contacts" inner join "contact_types" on "contacts"."contact_type_id" = "contact_types"."id" on "users"."id" = "contacts"."id"', $builder->toSql()); + } + + public function testJoinsWithMultipleNestedJoins() + { + $builder = $this->getBuilder(); + $builder->select('users.id', 'contacts.id', 'contact_types.id', 'countrys.id', 'planets.id')->from('users')->leftJoin('contacts', function ($j) { + $j->on('users.id', 'contacts.id') + ->join('contact_types', 'contacts.contact_type_id', '=', 'contact_types.id') + ->leftJoin('countrys', function ($q) { + $q->on('contacts.country', '=', 'countrys.country') + ->join('planets', function ($q) { + $q->on('countrys.planet_id', '=', 'planet.id') + ->where('planet.is_settled', '=', 1) + ->where('planet.population', '>=', 10000); + }); + }); + }); + $this->assertEquals('select "users"."id", "contacts"."id", "contact_types"."id", "countrys"."id", "planets"."id" from "users" left join "contacts" inner join "contact_types" on "contacts"."contact_type_id" = "contact_types"."id" left join "countrys" inner join "planets" on "countrys"."planet_id" = "planet"."id" and "planet"."is_settled" = ? and "planet"."population" >= ? on "contacts"."country" = "countrys"."country" on "users"."id" = "contacts"."id"', $builder->toSql()); + $this->assertEquals(['1', 10000], $builder->getBindings()); + } + + public function testJoinsWithNestedJoinWithAdvancedSubqueryCondition() + { + $builder = $this->getBuilder(); + $builder->select('users.id', 'contacts.id', 'contact_types.id')->from('users')->leftJoin('contacts', function ($j) { + $j->on('users.id', 'contacts.id') + ->join('contact_types', 'contacts.contact_type_id', '=', 'contact_types.id') + ->whereExists(function ($q) { + $q->select('*')->from('countrys') + ->whereColumn('contacts.country', '=', 'countrys.country') + ->join('planets', function ($q) { + $q->on('countrys.planet_id', '=', 'planet.id') + ->where('planet.is_settled', '=', 1); + }) + ->where('planet.population', '>=', 10000); + }); + }); + $this->assertEquals('select "users"."id", "contacts"."id", "contact_types"."id" from "users" left join "contacts" inner join "contact_types" on "contacts"."contact_type_id" = "contact_types"."id" on "users"."id" = "contacts"."id" and exists (select * from "countrys" inner join "planets" on "countrys"."planet_id" = "planet"."id" and "planet"."is_settled" = ? where "contacts"."country" = "countrys"."country" and "planet"."population" >= ?)', $builder->toSql()); + $this->assertEquals(['1', 10000], $builder->getBindings()); + } + public function testRawExpressionsInSelect() { $builder = $this->getBuilder();
true
Other
laravel
framework
cda64c05ca73c0f9421589a5bcdf4fabfe7543da.json
add more assertions
src/Illuminate/Database/Eloquent/Relations/Pivot.php
@@ -104,7 +104,7 @@ protected function setKeysForSaveQuery(Builder $query) )); return $query->where($this->relatedKey, $this->getOriginal( - $this->relatedKey, $this->getAttribute($this->foreignKey) + $this->relatedKey, $this->getAttribute($this->relatedKey) )); }
true
Other
laravel
framework
cda64c05ca73c0f9421589a5bcdf4fabfe7543da.json
add more assertions
tests/Integration/Database/EloquentBelongsToManyTest.php
@@ -129,14 +129,20 @@ public function custom_pivot_class() $post->tagsWithCustomPivot()->attach($tag->id); - $post->tagsWithCustomAccessor()->attach($tag->id); - $this->assertInstanceOf(CustomPivot::class, $post->tagsWithCustomPivot[0]->pivot); $this->assertEquals([ 'post_id' => '1', 'tag_id' => '1', ], $post->tagsWithCustomAccessor[0]->tag->toArray()); + + $pivot = $post->tagsWithCustomPivot[0]->pivot; + $pivot->tag_id = 2; + $pivot->save(); + + $this->assertEquals(1, CustomPivot::count()); + $this->assertEquals(1, CustomPivot::first()->post_id); + $this->assertEquals(2, CustomPivot::first()->tag_id); } /** @@ -654,4 +660,5 @@ public function posts() class CustomPivot extends Pivot { + protected $table = 'posts_tags'; }
true
Other
laravel
framework
8a6010be76cd2fb514a8698e652e12d08be5a300.json
remove old changelogs
CHANGELOG-5.2.md
@@ -1,477 +0,0 @@ -# Release Notes - -## [Unreleased] - -### Fixed -- Fixed deferring write connection ([#16673](https://github.com/laravel/framework/pull/16673)) - - -## v5.2.45 (2016-08-26) - -### Fixed -- Revert changes to Eloquent `Builder` that breaks `firstOr*` methods ([#15018](https://github.com/laravel/framework/pull/15018)) -- Revert aggregate changes in [#14793](https://github.com/laravel/framework/pull/14793) ([#14994](https://github.com/laravel/framework/pull/14994)) - - -## v5.2.44 (2016-08-23) - -### Added -- Added `BelongsToMany::syncWithoutDetaching()` method ([33aee31](https://github.com/laravel/framework/commit/33aee31523b9fc280aced35a5eb5f6b627263b45)) -- Added `withoutTrashed()` method to `SoftDeletingScope` ([#14805](https://github.com/laravel/framework/pull/14805)) -- Support Flysystem's `disable_asserts` config value ([#14864](https://github.com/laravel/framework/pull/14864)) - -### Changed -- Support multi-dimensional `$data` arrays in `invalid()` and `valid()` methods ([#14651](https://github.com/laravel/framework/pull/14651)) -- Support column aliases in `chunkById()` ([#14711](https://github.com/laravel/framework/pull/14711)) -- Re-attempt transaction when encountering a deadlock ([#14930](https://github.com/laravel/framework/pull/14930)) - -### Fixed -- Only return floats or integers in `aggregate()` ([#14781](https://github.com/laravel/framework/pull/14781)) -- Fixed numeric aggregate queries ([#14793](https://github.com/laravel/framework/pull/14793)) -- Create new row in `firstOrCreate()` when a model has a mutator ([#14656](https://github.com/laravel/framework/pull/14656)) -- Protect against empty paths in the `view:clear` command ([#14812](https://github.com/laravel/framework/pull/14812)) -- Convert `$attributes` in `makeHidden()` to array ([#14852](https://github.com/laravel/framework/pull/14852), [#14857](https://github.com/laravel/framework/pull/14857)) -- Prevent conflicting class name import to namespace in `ValidatesWhenResolvedTrait` ([#14878](https://github.com/laravel/framework/pull/14878)) - - -## v5.2.43 (2016-08-10) - -### Changed -- Throw exception if `$amount` is not numeric in `increment()` and `decrement()` ([915cb84](https://github.com/laravel/framework/commit/915cb843981ad434b10709425d968bf2db37cb1a)) - - -## v5.2.42 (2016-08-08) - -### Added -- Allow `BelongsToMany::detach()` to accept a collection ([#14412](https://github.com/laravel/framework/pull/14412)) -- Added `whereTime()` and `orWhereTime()` to query builder ([#14528](https://github.com/laravel/framework/pull/14528)) -- Added PHP 7.1 support ([#14549](https://github.com/laravel/framework/pull/14549)) -- Allow collections to be created from objects that implement `Traversable` ([#14628](https://github.com/laravel/framework/pull/14628)) -- Support dot notation in `Request::exists()` ([#14660](https://github.com/laravel/framework/pull/14660)) -- Added missing `Model::makeHidden()` method ([#14641](https://github.com/laravel/framework/pull/14641)) - -### Changed -- Return `true` when `$key` is empty in `MessageBag::has()` ([#14409](https://github.com/laravel/framework/pull/14409)) -- Optimized `Filesystem::moveDirectory` ([#14362](https://github.com/laravel/framework/pull/14362)) -- Convert `$count` to integer in `Str::plural()` ([#14502](https://github.com/laravel/framework/pull/14502)) -- Handle arrays in `validateIn()` method ([#14607](https://github.com/laravel/framework/pull/14607)) - -### Fixed -- Fixed an issue with `wherePivotIn()` ([#14397](https://github.com/laravel/framework/issues/14397)) -- Fixed PDO connection on HHVM ([#14429](https://github.com/laravel/framework/pull/14429)) -- Prevent `make:migration` from creating duplicate classes ([#14432](https://github.com/laravel/framework/pull/14432)) -- Fixed lazy eager loading issue in `LengthAwarePaginator` collection ([#14476](https://github.com/laravel/framework/pull/14476)) -- Fixed plural form of Pokémon ([#14525](https://github.com/laravel/framework/pull/14525)) -- Fixed authentication bug in `TokenGuard::validate()` ([#14568](https://github.com/laravel/framework/pull/14568)) -- Fix missing middleware parameters when using `authorizeResource()` ([#14592](https://github.com/laravel/framework/pull/14592)) - -### Removed -- Removed duplicate interface implementation in `Dispatcher` ([#14515](https://github.com/laravel/framework/pull/14515)) - - -## v5.2.41 (2016-07-20) - -### Changed -- Run session garbage collection before response is returned ([#14386](https://github.com/laravel/framework/pull/14386)) - -### Fixed -- Fixed pagination bug introduced in [#14188](https://github.com/laravel/framework/pull/14188) ([#14389](https://github.com/laravel/framework/pull/14389)) -- Fixed `median()` issue when collection is out of order ([#14381](https://github.com/laravel/framework/pull/14381)) - - -## v5.2.40 (2016-07-19) - -### Added -- Added `--tags` option to `cache:clear` command ([#13927](https://github.com/laravel/framework/pull/13927)) -- Added `scopes()` method to Eloquent query builder ([#14049](https://github.com/laravel/framework/pull/14049)) -- Added `hasAny()` method to `MessageBag` ([#14151](https://github.com/laravel/framework/pull/14151)) -- Allowing passing along transmission options to SparkPost ([#14166](https://github.com/laravel/framework/pull/14166)) -- Added `Filesystem::moveDirectory()` ([#14198](https://github.com/laravel/framework/pull/14198)) -- Added `increment()` and `decrement()` methods to session store ([#14196](https://github.com/laravel/framework/pull/14196)) -- Added `pipe()` method to `Collection` ([#13899](https://github.com/laravel/framework/pull/13899)) -- Added additional PostgreSQL operators ([#14224](https://github.com/laravel/framework/pull/14224)) -- Support `::` expressions in Blade directive names ([#14265](https://github.com/laravel/framework/pull/14265)) -- Added `median()` and `mode()` methods to collections ([#14305](https://github.com/laravel/framework/pull/14305)) -- Add `tightenco/collect` to Composer `replace` list ([#14118](https://github.com/laravel/framework/pull/14118), [#14127](https://github.com/laravel/framework/pull/14127)) - -### Changed -- Don't release jobs that have been reserved too long ([#13833](https://github.com/laravel/framework/pull/13833)) -- Throw `Exception` if `Queue` has no encrypter ([#14038](https://github.com/laravel/framework/pull/14038)) -- Cast `unique` validation rule `id` to integer ([#14076](https://github.com/laravel/framework/pull/14076)) -- Ensure database transaction count is not negative ([#14085](https://github.com/laravel/framework/pull/14085)) -- Use `session.lifetime` for CSRF cookie ([#14080](https://github.com/laravel/framework/pull/14080)) -- Allow the `shuffle()` method to be seeded ([#14099](https://github.com/laravel/framework/pull/14099)) -- Allow passing of multiple keys to `MessageBag::has()` ([a0cd0ae](https://github.com/laravel/framework/commit/a0cd0aea9a475f76baf968ef2f53aeb71fcda4c0)) -- Allow model connection in `newFromBuilder()` to be overridden ([#14194](https://github.com/laravel/framework/pull/14194)) -- Only load pagination results if `$total` is greater than zero ([#14188](https://github.com/laravel/framework/pull/14188)) -- Accept fallback parameter in `UrlGenerator::previous` ([#14207](https://github.com/laravel/framework/pull/14207)) -- Only do `use` call if `database` is not empty ([#14225](https://github.com/laravel/framework/pull/14225)) -- Removed unnecessary nesting in the `Macroable` trait ([#14222](https://github.com/laravel/framework/pull/14222)) -- Refactored `DatabaseQueue::getNextAvailableJob()` ([cffcd34](https://github.com/laravel/framework/commit/cffcd347901617b19e8eca05be55cda280e0d262)) -- Look for `getUrl()` method on Filesystem adapter before throwing exception ([#14246](https://github.com/laravel/framework/pull/14246)) -- Make `seeIsSelected()` work with `<option>` elements without `value` attributes ([#14279](https://github.com/laravel/framework/pull/14279)) -- Improved performance of `Filesystem::sharedGet()` ([#14319](https://github.com/laravel/framework/pull/14319)) -- Throw exception if view cache path is empty ([#14291](https://github.com/laravel/framework/pull/14291)) -- Changes several validation methods return type from integers to booleans ([#14373](https://github.com/laravel/framework/pull/14373)) -- Remove files from input in `withInput()` method ([85249be](https://github.com/laravel/framework/commit/85249beed1e4512d71f7ae52474b9a59a80381d2)) - -### Fixed -- Require file instance for `dimensions` validation rule ([#14025](https://github.com/laravel/framework/pull/14025)) -- Fixes for SQL Server `processInsertGetId()` with ODBC ([#14121](https://github.com/laravel/framework/pull/14121)) -- Fixed PostgreSQL `processInsertGetId()` with `PDO::FETCH_CLASS` ([#14115](https://github.com/laravel/framework/pull/14115)) -- Fixed `PDO::FETCH_CLASS` support in `Connection::cursor()` ([#14052](https://github.com/laravel/framework/pull/14052)) -- Fixed eager loading of multi-level `morphTo` relationships ([#14190](https://github.com/laravel/framework/pull/14190)) -- Fixed MySQL multiple-table DELETE ([#14179](https://github.com/laravel/framework/pull/14179)) -- Always cast `vendor:publish` tags to array ([#14228](https://github.com/laravel/framework/pull/14228)) -- Fixed translation capitalization when replacements are a numerical array ([#14249](https://github.com/laravel/framework/pull/14249)) -- Fixed double `urldecode()` on route parameters ([#14370](https://github.com/laravel/framework/pull/14370)) - -### Removed -- Remove method overwrites in `PostgresGrammar` ([#14372](https://github.com/laravel/framework/pull/14372)) - - -## v5.2.39 (2016-06-17) - -### Added -- Added `without()` method to Eloquent query builder ([#14031](https://github.com/laravel/framework/pull/14031)) -- Added `keyType` property Eloquent models to set key type cast ([#13985](https://github.com/laravel/framework/pull/13985)) -- Added support for mail transport `StreamOptions` ([#13925](https://github.com/laravel/framework/pull/13925)) -- Added `validationData()` method to `FormRequest` ([#13914](https://github.com/laravel/framework/pull/13914)) - -### Changed -- Only `set names` for MySQL connections if `charset` is set in config ([#13930](https://github.com/laravel/framework/pull/13930)) -- Support recursive container alias resolution ([#13976](https://github.com/laravel/framework/pull/13976)) -- Use late static binding in `PasswordBroker` ([#13975](https://github.com/laravel/framework/pull/13975)) -- Make sure Ajax requests are not Pjax requests in `FormRequest` ([#14024](https://github.com/laravel/framework/pull/14024)) -- Set existence state of expired database sessions, instead of deleting them ([53c0440](https://github.com/laravel/framework/commit/53c04406baa5f63bbb41127f40afee0a0facadd1)) -- Release Beanstalkd jobs before burying them ([#13963](https://github.com/laravel/framework/pull/13963)) - -### Fixed -- Use `getIncrementing()` method instead of the `$incrementing` attribute ([#14005](https://github.com/laravel/framework/pull/14005)) -- Fixed fatal error when `services.json` is empty ([#14030](https://github.com/laravel/framework/pull/14030)) - - -## v5.2.38 (2016-06-13) - -### Changed -- Convert multiple `Model::fresh()` arguments to array before passing to `with()` ([#13950](https://github.com/laravel/framework/pull/13950)) -- Iterate only through files that contain a namespace in `app:name` command. ([#13961](https://github.com/laravel/framework/pull/13961)) - -### Fixed -- Close swift mailer connection after sending mail ([#13583](https://github.com/laravel/framework/pull/13583)) -- Prevent possible key overlap in `Str::snake` cache ([#13943](https://github.com/laravel/framework/pull/13943)) -- Fixed issue when eager loading chained `MorphTo` relationships ([#13967](https://github.com/laravel/framework/pull/13967)) -- Delete database session record if it's expired ([09b09eb](https://github.com/laravel/framework/commit/09b09ebad480940f2b49f96bbfbea0647783025e)) - - -## v5.2.37 (2016-06-10) - -### Added -- Added `hasArgument()` and `hasOption()` methods to `Command` class ([#13919](https://github.com/laravel/framework/pull/13919)) -- Added `$failedId` property to `JobFailed` event ([#13920](https://github.com/laravel/framework/pull/13920)) - -### Fixed -- Fixed session expiration on several drivers ([0831312](https://github.com/laravel/framework/commit/0831312aec47d904a65039e07574f41ab7492418)) - - -## v5.2.36 (2016-06-06) - -### Added -- Allow passing along options to the S3 client ([#13791](https://github.com/laravel/framework/pull/13791)) -- Allow nested `WHERE` clauses in `whereHas()` queries ([#13794](https://github.com/laravel/framework/pull/13794)) -- Support `DateTime` instances in `Before`/`After` date validation ([#13844](https://github.com/laravel/framework/pull/13844)) -- Support queueing collections ([d159f02](https://github.com/laravel/framework/commit/d159f02fe8cb5310b90c73d416a684e4bf51785a)) - -### Changed -- Reverted SparkPost driver back to `email_rfc822` parameter for simplicity ([#13780](https://github.com/laravel/framework/pull/13780)) -- Simplified `Model::__isset()` ([8fb89c6](https://github.com/laravel/framework/commit/8fb89c61c24af905b0b9db4d645d68a2c4a133b9)) -- Set exception handler even on non-daemon `queue:work` calls ([d5bbda9](https://github.com/laravel/framework/commit/d5bbda95a6435fa8cb38b8b640440b38de6b7f83)) -- Show handler class names in `queue:work` console output ([4d7eb59](https://github.com/laravel/framework/commit/4d7eb59f9813723bab00b4e42ce9885b54e65778)) -- Use queue events to update the console output of `queue:work` ([ace7f04](https://github.com/laravel/framework/commit/ace7f04ae579146ca3adf1c5992256c50ddc05a8)) -- Made `ResetsPasswords` trait easier to customize ([#13818](https://github.com/laravel/framework/pull/13818)) -- Refactored Eloquent relations and scopes ([#13824](https://github.com/laravel/framework/pull/13824), [#13884](https://github.com/laravel/framework/pull/13884), [#13894](https://github.com/laravel/framework/pull/13894)) -- Respected `session.http_only` option in `StartSession` middleware ([#13825](https://github.com/laravel/framework/pull/13825)) -- Don't return in `ApcStore::forever()` ([#13871](https://github.com/laravel/framework/pull/13871)) -- Allow Redis key expiration to be lower than one minute ([#13810](https://github.com/laravel/framework/pull/13810)) - -### Fixed -- Fixed `morphTo` relations across database connections ([#13784](https://github.com/laravel/framework/pull/13784)) -- Fixed `morphTo` relations without soft deletes ([13806](https://github.com/laravel/framework/pull/13806)) -- Fixed edge case on `morphTo` relations macro call that only exists on the related model ([#13828](https://github.com/laravel/framework/pull/13828)) -- Fixed formatting of `updatedAt` timestamp when calling `touch()` on `BelongsToMany` relation ([#13799](https://github.com/laravel/framework/pull/13799)) -- Don't get `$id` from Recaller in `Auth::id()` ([#13769](https://github.com/laravel/framework/pull/13769)) -- Fixed `AuthorizesResources` trait ([25443e3](https://github.com/laravel/framework/commit/25443e3e218cce1121f546b596dd70b5fd2fb619)) - -### Removed -- Removed unused `ArrayStore::putMultiple()` method ([#13840](https://github.com/laravel/framework/pull/13840)) - - -## v5.2.35 (2016-05-30) - -### Added -- Added failed login event ([#13761](https://github.com/laravel/framework/pull/13761)) - -### Changed -- Always cast `FileStore::expiration()` return value to integer ([#13708](https://github.com/laravel/framework/pull/13708)) -- Simplified `Container::isCallableWithAtSign()` ([#13757](https://github.com/laravel/framework/pull/13757)) -- Pass key to the `Collection::keyBy()` callback ([#13766](https://github.com/laravel/framework/pull/13766)) -- Support unlimited log files by setting `app.log_max_files` to `0` ([#13776](https://github.com/laravel/framework/pull/13776)) -- Wathan-ize `MorphTo::getEagerLoadsForInstance()` ([#13741](https://github.com/laravel/framework/pull/13741), [#13777](https://github.com/laravel/framework/pull/13777)) - -### Fixed -- Fixed MySQL JSON boolean binding update grammar ([38acdd8](https://github.com/laravel/framework/commit/38acdd807faec4b85fd47051341ccaf666499551)) -- Fixed loading of nested polymorphic relationships ([#13737](https://github.com/laravel/framework/pull/13737)) -- Fixed early return in `AuthManager::shouldUse()` ([5b88244](https://github.com/laravel/framework/commit/5b88244c0afd5febe9f54e8544b0870b55ef6cfd)) -- Fixed the remaining attempts calculation in `ThrottleRequests` ([#13756](https://github.com/laravel/framework/pull/13756), [#13759](https://github.com/laravel/framework/pull/13759)) -- Fixed strict `TypeError` in `AbstractPaginator::url()` ([#13758](https://github.com/laravel/framework/pull/13758)) - -## v5.2.34 (2016-05-26) - -### Added -- Added correct MySQL JSON boolean handling and updating grammar ([#13242](https://github.com/laravel/framework/pull/13242)) -- Added `stream` option to mail `TransportManager` ([#13715](https://github.com/laravel/framework/pull/13715)) -- Added `when()` method to eloquent query builder ([#13726](https://github.com/laravel/framework/pull/13726)) - -### Changed -- Catch exceptions in `Worker::pop()` to prevent log spam ([#13688](https://github.com/laravel/framework/pull/13688)) -- Use write connection when validating uniqueness ([#13718](https://github.com/laravel/framework/pull/13718)) -- Use `withException()` method in `Handler::toIlluminateResponse()` ([#13712](https://github.com/laravel/framework/pull/13712)) -- Apply constraints to `morphTo` relationships when using eager loading ([#13724](https://github.com/laravel/framework/pull/13724)) -- Use SETs rather than LISTs for storing Redis cache key references ([#13731](https://github.com/laravel/framework/pull/13731)) - -### Fixed -- Map `destroy` instead of `delete` in `AuthorizesResources` ([#13716](https://github.com/laravel/framework/pull/13716)) -- Reverted [#13519](https://github.com/laravel/framework/pull/13519) ([#13733](https://github.com/laravel/framework/pull/13733)) - - -## v5.2.33 (2016-05-25) - -### Added -- Allow query results to be traversed using a cursor ([#13030](https://github.com/laravel/framework/pull/13030)) -- Added support for log levels ([#13513](https://github.com/laravel/framework/pull/13513)) -- Added `inRandomOrder()` method to query builder ([#13642](https://github.com/laravel/framework/pull/13642)) -- Added support for custom connection in `PasswordBrokerManager` ([#13646](https://github.com/laravel/framework/pull/13646)) -- Allow connection timeouts in `TransportManager` ([#13621](https://github.com/laravel/framework/pull/13621)) -- Added missing `$test` argument to `UploadedFile` ([#13656](https://github.com/laravel/framework/pull/13656)) -- Added `authenticate()` method to guards ([#13651](https://github.com/laravel/framework/pull/13651)) - -### Changed -- Use locking to migrate stale jobs ([26a24d6](https://github.com/laravel/framework/commit/26a24d61ced4c5833eba6572d585af90b22fcdb7)) -- Avoid `chunkById` duplicating `orders` clause with the same column ([#13604](https://github.com/laravel/framework/pull/13604)) -- Fire `RouteMatched` event on `route:list` command ([#13474](https://github.com/laravel/framework/pull/13474)) -- Set user resolver for request in `AuthManager::shouldUse()` ([bf5303f](https://github.com/laravel/framework/commit/bf5303fdc919d9d560df128b92a1891dc64ea488)) -- Always execute `use` call, unless database is empty ([#13701](https://github.com/laravel/framework/pull/13701), [ef770ed](https://github.com/laravel/framework/commit/ef770edb08f3540aefffd916ae6ef5c8db58f0af)) -- Allow `elixir()` `$buildDirectory` to be `null`. ([#13661](https://github.com/laravel/framework/pull/13661)) -- Simplified calling `Model::replicate()` with `$except` argument ([#13676](https://github.com/laravel/framework/pull/13676)) -- Allow auth events to be serialized ([#13704](https://github.com/laravel/framework/pull/13704)) -- Added `for` and `id` attributes to auth scaffold ([#13689](https://github.com/laravel/framework/pull/13689)) -- Acquire lock before deleting reserved job ([4b502dc](https://github.com/laravel/framework/commit/4b502dc6eecd80efad01e845469b9a2bac26dae0#diff-b05083dc38b4e45d38d28c676abbad83)) - -### Fixed -- Prefix timestamps when updating many-to-many relationships ([#13519](https://github.com/laravel/framework/pull/13519)) -- Fixed missing wheres defined on the relation when creating the subquery for a relation count ([#13612](https://github.com/laravel/framework/pull/13612)) -- Fixed `Model::makeVisible()` when `$visible` property is not empty ([#13625](https://github.com/laravel/framework/pull/13625)) -- Fixed PostgreSQL's `Schema::hasTable()` ([#13008](https://github.com/laravel/framework/pull/13008)) -- Fixed `url` validation rule when missing trailing slash ([#13700](https://github.com/laravel/framework/pull/13700)) - - -## v5.2.32 (2016-05-17) - -### Added -- Allow user to enable/disable foreign key checks dynamically ([#13333](https://github.com/laravel/framework/pull/13333)) -- Added `file` validation rule ([#13371](https://github.com/laravel/framework/pull/13371)) -- Added `guestMiddleware()` method to get guest middleware with guard parameter ([#13384](https://github.com/laravel/framework/pull/13384)) -- Added `Pivot::fromRawAttributes()` to create a new pivot model from raw values returned from a query ([f356419](https://github.com/laravel/framework/commit/f356419fa6f6b6fbc3322ca587b0bc1e075ba8d2)) -- Added `Builder::withCount()` to add a relationship subquery count ([#13414](https://github.com/laravel/framework/pull/13414)) -- Support `reply_to` field when using SparkPost ([#13410](https://github.com/laravel/framework/pull/13410)) -- Added validation rule for image dimensions ([#13428](https://github.com/laravel/framework/pull/13428)) -- Added "Generated Columns" support to MySQL grammar ([#13430](https://github.com/laravel/framework/pull/13430)) -- Added `Response::throwResponse()` ([#13473](https://github.com/laravel/framework/pull/13473)) -- Added `page` parameter to the `simplePaginate()` method ([#13502](https://github.com/laravel/framework/pull/13502)) -- Added `whereColumn()` method to Query Builder ([#13549](https://github.com/laravel/framework/pull/13549)) -- Allow `File::allFiles()` to show hidden dot files ([#13555](https://github.com/laravel/framework/pull/13555)) - -### Changed -- Return `null` instead of `0` for a default `BelongsTo` key ([#13378](https://github.com/laravel/framework/pull/13378)) -- Avoid useless logical operation ([#13397](https://github.com/laravel/framework/pull/13397)) -- Stop using `{!! !!}` for `csrf_field()` ([#13398](https://github.com/laravel/framework/pull/13398)) -- Improvements for `SessionGuard` methods `loginUsingId()` and `onceUsingId()` ([#13393](https://github.com/laravel/framework/pull/13393)) -- Added Work-around due to lack of `lastInsertId()` for ODBC for MSSQL ([#13423](https://github.com/laravel/framework/pull/13423)) -- Ensure `MigrationCreator::create()` receives `$create` as boolean ([#13439](https://github.com/laravel/framework/pull/13439)) -- Allow custom validators to be called with out function name ([#13444](https://github.com/laravel/framework/pull/13444)) -- Moved the `payload` column of jobs table to the end ([#13469](https://github.com/laravel/framework/pull/13469)) -- Stabilized table aliases for self joins by adding count ([#13401](https://github.com/laravel/framework/pull/13401)) -- Account for `__isset` changes in PHP 7 ([#13509](https://github.com/laravel/framework/pull/13509)) -- Bring back support for `Carbon` instances to `before` and `after` validators ([#13494](https://github.com/laravel/framework/pull/13494)) -- Allow method chaining for `MakesHttpRequest` trait ([#13529](https://github.com/laravel/framework/pull/13529)) -- Allow `Request::intersect()` to accept argument list ([#13515](https://github.com/laravel/framework/pull/13515)) - -### Fixed -- Accept `!=` and `<>` as operators while value is `null` ([#13370](https://github.com/laravel/framework/pull/13370)) -- Fixed SparkPost BCC issue ([#13361](https://github.com/laravel/framework/pull/13361)) -- Fixed fatal error with optional `morphTo` relationship ([#13360](https://github.com/laravel/framework/pull/13360)) -- Fixed using `onlyTrashed()` and `withTrashed()` with `whereHas()` ([#13396](https://github.com/laravel/framework/pull/13396)) -- Fixed automatic scope nesting ([#13413](https://github.com/laravel/framework/pull/13413)) -- Fixed scheduler issue when using `user()` and `withoutOverlapping()` combined ([#13412](https://github.com/laravel/framework/pull/13412)) -- Fixed SqlServer grammar issue when table name is equal to a reserved keyword ([#13458](https://github.com/laravel/framework/pull/13458)) -- Fixed replacing route default parameters ([#13514](https://github.com/laravel/framework/pull/13514)) -- Fixed missing model attribute on `ModelNotFoundException` ([#13537](https://github.com/laravel/framework/pull/13537)) -- Decrement transaction count when `beginTransaction()` errors ([#13551](https://github.com/laravel/framework/pull/13551)) -- Fixed `seeJson()` issue when comparing two equal arrays ([#13531](https://github.com/laravel/framework/pull/13531)) -- Fixed a Scheduler issue where would no longer run in background ([#12628](https://github.com/laravel/framework/issues/12628)) -- Fixed sending attachments with SparkPost ([#13577](https://github.com/laravel/framework/pull/13577)) - - -## v5.2.31 (2016-04-27) - -### Added -- Added missing suggested dependency `SuperClosure` ([09a793f](https://git.io/vwZx4)) -- Added ODBC connection support for SQL Server ([#13298](https://github.com/laravel/framework/pull/13298)) -- Added `Request::hasHeader()` method ([#13271](https://github.com/laravel/framework/pull/13271)) -- Added `@elsecan` and `@elsecannot` Blade directives ([#13256](https://github.com/laravel/framework/pull/13256)) -- Support booleans in `required_if` Validator rule ([#13327](https://github.com/laravel/framework/pull/13327)) - -### Changed -- Simplified `Translator::parseLocale()` method ([#13244](https://github.com/laravel/framework/pull/13244)) -- Simplified `Builder::shouldRunExistsQuery()` method ([#13321](https://github.com/laravel/framework/pull/13321)) -- Use `Gate` contract instead of Facade ([#13260](https://github.com/laravel/framework/pull/13260)) -- Return result in `SoftDeletes::forceDelete()` ([#13272](https://github.com/laravel/framework/pull/13272)) - -### Fixed -- Fixed BCC for SparkPost ([#13237](https://github.com/laravel/framework/pull/13237)) -- Use Carbon for everything time related in `DatabaseTokenRepository` ([#13234](https://github.com/laravel/framework/pull/13234)) -- Fixed an issue with `data_set()` affecting the Validator ([#13224](https://github.com/laravel/framework/pull/13224)) -- Fixed setting nested namespaces with `app:name` command ([#13208](https://github.com/laravel/framework/pull/13208)) -- Decode base64 encoded keys before using it in `PasswordBrokerManager` ([#13270](https://github.com/laravel/framework/pull/13270)) -- Prevented race condition in `RateLimiter` ([#13283](https://github.com/laravel/framework/pull/13283)) -- Use `DIRECTORY_SEPARATOR` to create path for migrations ([#13254](https://github.com/laravel/framework/pull/13254)) -- Fixed adding implicit rules via `sometimes()` method ([#12976](https://github.com/laravel/framework/pull/12976)) -- Fixed `Schema::hasTable()` when using PostgreSQL ([#13008](https://github.com/laravel/framework/pull/13008)) -- Allow `seeAuthenticatedAs()` to be called with any user object ([#13308](https://github.com/laravel/framework/pull/13308)) - -### Removed -- Removed unused base64 decoding from `Encrypter` ([#13291](https://github.com/laravel/framework/pull/13291)) - - -## v5.2.30 (2016-04-19) - -### Added -- Added messages and custom attributes to the password reset validation ([#12997](https://github.com/laravel/framework/pull/12997)) -- Added `Before` and `After` dependent rules array ([#13025](https://github.com/laravel/framework/pull/13025)) -- Exposed token methods to user in password broker ([#13054](https://github.com/laravel/framework/pull/13054)) -- Added array support on `Cache::has()` ([#13028](https://github.com/laravel/framework/pull/13028)) -- Allow objects to be passed as pipes ([#13024](https://github.com/laravel/framework/pull/13024)) -- Adding alias for `FailedJobProviderInterface` ([#13088](https://github.com/laravel/framework/pull/13088)) -- Allow console commands registering from `Kernel` class ([#13097](https://github.com/laravel/framework/pull/13097)) -- Added the ability to get routes keyed by method ([#13146](https://github.com/laravel/framework/pull/13146)) -- Added PostgreSQL specific operators for `jsonb` type ([#13161](https://github.com/laravel/framework/pull/13161)) -- Added `makeHidden()` method to the Eloquent collection ([#13152](https://github.com/laravel/framework/pull/13152)) -- Added `intersect()` method to `Request` ([#13167](https://github.com/laravel/framework/pull/13167)) -- Allow disabling of model observers in tests ([#13178](https://github.com/laravel/framework/pull/13178)) -- Allow `ON` clauses on cross joins ([#13159](https://github.com/laravel/framework/pull/13159)) - -### Changed -- Use relation setter when setting relations ([#13001](https://github.com/laravel/framework/pull/13001)) -- Use `isEmpty()` to check for empty message bag in `Validator::passes()` ([#13014](https://github.com/laravel/framework/pull/13014)) -- Refresh `remember_token` when resetting password ([#13016](https://github.com/laravel/framework/pull/13016)) -- Use multibyte string functions in `Str` class ([#12953](https://github.com/laravel/framework/pull/12953)) -- Use CloudFlare CDN and use SRI checking for assets ([#13044](https://github.com/laravel/framework/pull/13044)) -- Enabling array on method has() ([#13028](https://github.com/laravel/framework/pull/13028)) -- Allow unix timestamps to be numeric in `Validator` ([da62677](https://git.io/vVi3M)) -- Reverted forcing middleware uniqueness ([#13075](https://github.com/laravel/framework/pull/13075)) -- Forget keys that contain periods ([#13121](https://github.com/laravel/framework/pull/13121)) -- Don't limit column selection while chunking by id ([#13137](https://github.com/laravel/framework/pull/13137)) -- Prefix table name on `getColumnType()` call ([#13136](https://github.com/laravel/framework/pull/13136)) -- Moved ability map in `AuthorizesResources` trait to a method ([#13214](https://github.com/laravel/framework/pull/13214)) -- Make sure `unguarded()` does not change state on exception ([#13186](https://github.com/laravel/framework/pull/13186)) -- Return `$this` in `InteractWithPages::within()` to allow method chaining ([13200](https://github.com/laravel/framework/pull/13200)) - -### Fixed -- Fixed a empty value case with `Arr:dot()` ([#13009](https://github.com/laravel/framework/pull/13009)) -- Fixed a Scheduler issues on Windows ([#13004](https://github.com/laravel/framework/issues/13004)) -- Prevent crashes with bad `Accept` headers ([#13039](https://github.com/laravel/framework/pull/13039), [#13059](https://github.com/laravel/framework/pull/13059)) -- Fixed explicit depending rules when the explicit keys are non-numeric ([#13058](https://github.com/laravel/framework/pull/13058)) -- Fixed an issue with fluent routes with `uses()` ([#13076](https://github.com/laravel/framework/pull/13076)) -- Prevent generating listeners for listeners ([3079175](https://git.io/vVNdg)) - -### Removed -- Removed unused parameter call in `Filesystem::exists()` ([#13102](https://github.com/laravel/framework/pull/13102)) -- Removed duplicate "[y/N]" from confirmable console commands ([#13203](https://github.com/laravel/framework/pull/13203)) -- Removed unused parameter in `route()` helper ([#13206](https://github.com/laravel/framework/pull/13206)) - - -## v5.2.29 (2016-04-02) - -### Fixed -- Fixed `Arr::get()` when given array is empty ([#12975](https://github.com/laravel/framework/pull/12975)) -- Add backticks around JSON selector field names in PostgreSQL query builder ([#12978](https://github.com/laravel/framework/pull/12978)) -- Reverted #12899 ([#12991](https://github.com/laravel/framework/pull/12991)) - - -## v5.2.28 (2016-04-01) - -### Added -- Added `Authorize` middleware ([#12913](https://git.io/vVLel), [0c48ba4](https://git.io/vVlib), [183f8e1](https://git.io/vVliF)) -- Added `UploadedFile::clientExtension()` ([75a7c01](https://git.io/vVO7I)) -- Added cross join support for query builder ([#12950](https://git.io/vVZqP)) -- Added `ThrottlesLogins::secondsRemainingOnLockout()` ([#12963](https://git.io/vVc1Z), [7c2c098](https://git.io/vVli9)) - -### Changed -- Optimized validation performance of large arrays ([#12651](https://git.io/v2xhi)) -- Never retry database query, if failed within transaction ([#12929](https://git.io/vVYUB)) -- Allow customization of email sent by `ResetsPasswords::sendResetLinkEmail()` ([#12935](https://git.io/vVYKE), [aae873e](https://git.io/vVliD)) -- Improved file system tests ([#12940](https://git.io/vVsTV), [#12949](https://git.io/vVGjP), [#12970](https://git.io/vVCBq)) -- Allowing merging an array of rules ([a5ea1aa](https://git.io/vVli1)) -- Consider implicit attributes while guessing column names in validator ([#12961](https://git.io/vVcgA), [a3827cf](https://git.io/vVliX)) -- Reverted [#12307](https://git.io/vgQeJ) ([#12928](https://git.io/vVqni)) - -### Fixed -- Fixed elixir manifest caching to detect different build paths ([#12920](https://git.io/vVtJR)) -- Fixed `Str::snake()` to work with UTF-8 strings ([#12923](https://git.io/vVtVp)) -- Trim the input name in the generator commands ([#12933](https://git.io/vVY4a)) -- Check for non-string values in validation rules ([#12973](https://git.io/vVWew)) -- Add backticks around JSON selector field names in MySQL query builder ([#12964](https://git.io/vVc9n)) -- Fixed terminable middleware assigned to controller ([#12899](https://git.io/vVTnt), [74b0636](https://git.io/vVliP)) - - -## v5.2.27 (2016-03-29) -### Added -- Allow ignoring an id using an array key in the `unique` validation rule ([#12612](https://git.io/v29rH)) -- Added `InteractsWithSession::assertSessionMissing()` ([#12860](https://git.io/vajXr)) -- Added `chunkById()` method to query builder for faster chunking of large sets of data ([#12861](https://git.io/vajSd)) -- Added Blade `@hasSection` directive to determine whether something can be yielded ([#12866](https://git.io/vVem5)) -- Allow optional query builder calls via `when()` method ([#12878](https://git.io/vVflh)) -- Added IP and MAC address column types ([#12884](https://git.io/vVJsj)) -- Added Collections `union` method for true unions of two collections ([#12910](https://git.io/vVIzh)) - -### Changed -- Allow array size validation of implicit attributes ([#12640](https://git.io/v2Nzl)) -- Separated logic of Blade `@push` and `@section` directives ([#12808](https://git.io/vaD8n)) -- Ensured that middleware is applied only once ([#12911](https://git.io/vVIr2)) - -### Fixed -- Reverted improvements to Redis cache tagging ([#12897](https://git.io/vVUD5)) -- Removed route group from `make:auth` stub ([#12903](https://git.io/vVkHI)) - - -## v5.2.26 (2016-03-25) -### Added -- Added support for Base64 encoded `Encrypter` keys ([370ae34](https://git.io/vapFX)) -- Added `EncryptionServiceProvider::getEncrypterForKeyAndCipher()` ([17ce4ed](https://git.io/vahbo)) -- Added `Application::environmentFilePath()` ([370ae34](https://git.io/vapFX)) - -### Fixed -- Fixed mock in `ValidationValidatorTest::testValidateMimetypes()` ([7f35988](https://git.io/vaxfB)) - - -## v5.2.25 (2016-03-24) -### Added -- Added bootstrap Composer scripts to avoid loading of config/compiled files ([#12827](https://git.io/va5ja)) - -### Changed -- Use `File::guessExtension()` instead of `UploadedFile::guessClientExtension()` ([87e6175](https://git.io/vaAxC)) - -### Fixed -- Fix an issue with explicit custom validation attributes ([#12822](https://git.io/vaQbD)) -- Fix an issue where a view would run the `BladeEngine` instead of the `PhpEngine` ([#12830](https://git.io/vad1X)) -- Prevent wrong auth driver from causing unexpected end of execution ([#12821](https://git.io/vajFq))
true
Other
laravel
framework
8a6010be76cd2fb514a8698e652e12d08be5a300.json
remove old changelogs
CHANGELOG-5.3.md
@@ -1,583 +0,0 @@ -# Release Notes for 5.3.x - -## v5.3.30 (2017-01-26) - -### Added -- Added `read()` and `unread()` methods to `DatabaseNotification` ([#17243](https://github.com/laravel/framework/pull/17243)) - -### Changed -- Show seed output prior to running, instead of after ([#17318](https://github.com/laravel/framework/pull/17318)) -- Support starting slash in `elixir()` helper ([#17359](https://github.com/laravel/framework/pull/17359)) - -### Fixed -- Use regex in `KeyGenerateCommand` to match `APP_KEY` ([#17151](https://github.com/laravel/framework/pull/17151)) -- Fixed integrity constraints for database session driver ([#17301](https://github.com/laravel/framework/pull/17301)) - - -## v5.3.29 (2017-01-06) - -### Added -- Added `Blueprint::nullableMorphs()` ([#16879](https://github.com/laravel/framework/pull/16879)) -- Support `BaseCollection` in `BelongsToMany::sync()` ([#16882](https://github.com/laravel/framework/pull/16882)) -- Added `--model` flag to `make:controller` command ([#16787](https://github.com/laravel/framework/pull/16787)) -- Allow notifications to be broadcasted now instead of using the queue ([#16867](https://github.com/laravel/framework/pull/16867), [40f30f1](https://github.com/laravel/framework/commit/40f30f1a2131904eb4f6e6c456823e7b2cb726eb)) -- Support `redirectTo()` in `RedirectsUsers` ([#16896](https://github.com/laravel/framework/pull/16896)) -- Added `ArrayTransport` to mail component to store Swift messages in memory ([#16906](https://github.com/laravel/framework/pull/16906), [69d3d04](https://github.com/laravel/framework/commit/69d3d0463cf6bd114d2beecd8480556efb168678)) -- Added fallback to `SlackAttachment` notification ([#16912](https://github.com/laravel/framework/pull/16912)) -- Added `Macroable` trait to `RedirectResponse` ([#16929](https://github.com/laravel/framework/pull/16929)) -- Support namespaces when using `make:policy --model` ([#16981](https://github.com/laravel/framework/pull/16981)) -- Added `HourlyAt()` option for scheduled events ([#17168](https://github.com/laravel/framework/pull/17168)) - -### Changed -- Allow SparkPost transport transmission metadata to be set at runtime ([#16838](https://github.com/laravel/framework/pull/16838)) -- Pass keys to `Collection::unique()` callback ([#16883](https://github.com/laravel/framework/pull/16883)) -- Support calling `MailFake::send()` when `build()` has dependencies ([#16918](https://github.com/laravel/framework/pull/16918)) -- Changed `Mailable` properties visibility to public ([#16916](https://github.com/laravel/framework/pull/16916)) -- Bind `serve` command to `127.0.0.1` instead of `localhost` ([#16937](https://github.com/laravel/framework/pull/16937)) -- Added `old('remember')` call to `login.stub` ([#16944](https://github.com/laravel/framework/pull/16944)) -- Check for `db` before setting presence verifier in `ValidationServiceProvider` ([038840d](https://github.com/laravel/framework/commit/038840d477e606735f9179d97eeb20639450e8ae)) -- Make Eloquent's `getTimeZone()` method call adhere to `DateTimeInterface` ([#16955](https://github.com/laravel/framework/pull/16955)) -- Support customizable response in `SendsPasswordResetEmails` ([#16982](https://github.com/laravel/framework/pull/16982)) -- Stricter comparison when replacing URL for `LocalAdapter` ([#17097](https://github.com/laravel/framework/pull/17097)) -- Use `notification()` relationship in `HasDatabaseNotifications` ([#17093](https://github.com/laravel/framework/pull/17093)) -- Allow float value as expiration in Memcached cache store ([#17106](https://github.com/laravel/framework/pull/17106)) - -### Fixed -- Fixed a wildcard issue with `sometimes` validation rule ([#16826](https://github.com/laravel/framework/pull/16826)) -- Prevent error when SqlServer port is empty ([#16824](https://github.com/laravel/framework/pull/16824)) -- Reverted false-positive fix for `date_format` validation [#16692](https://github.com/laravel/framework/pull/16692) ([#16845](https://github.com/laravel/framework/pull/16845)) -- Fixed `withCount()` aliasing using multiple tables ([#16853](https://github.com/laravel/framework/pull/16853)) -- Fixed broken event interface listening ([#16877](https://github.com/laravel/framework/pull/16877)) -- Fixed empty model creation ([#16864](https://github.com/laravel/framework/pull/16864)) -- Fixed column overlapping on using `withCount()` on `BelongsToMany` ([#16895](https://github.com/laravel/framework/pull/16895)) -- Fixed `Unique::ignore()` issue ([#16948](https://github.com/laravel/framework/pull/16948)) -- Fixed logic in `ChannelManager::sendNow()` if `$channels` is `null` ([#17068](https://github.com/laravel/framework/pull/17068)) -- Fixed validating distinct for nested keys ([#17102](https://github.com/laravel/framework/pull/17102)) -- Fixed `HasManyThrough::updateOrCreate()` ([#17105](https://github.com/laravel/framework/pull/17105)) - -### Security -- Changed SwiftMailer version to `~5.4` ([#17131](https://github.com/laravel/framework/pull/17131)) - - -## v5.3.28 (2016-12-15) - -### Changed -- Refactored `ControllerMakeCommand` class ([59a1ce2](https://github.com/laravel/framework/commit/59a1ce21413221131aaf0086cd1eb7c887c701c0)) - -### Fixed -- Fixed implicit Router binding through IoC ([#16802](https://github.com/laravel/framework/pull/16802)) -- `Collection::min()` incorrectly excludes `0` when calculating minimum ([#16821](https://github.com/laravel/framework/pull/16821)) - - -## v5.3.27 (2016-12-15) - -### Added -- Added `Authenticatable::$rememberTokenName` ([#16617](https://github.com/laravel/framework/pull/16617), [38612c0](https://github.com/laravel/framework/commit/38612c0e88a48cca5744cc464a764b976f79a46d)) -- Added `Collection::partition()` method ([#16627](https://github.com/laravel/framework/pull/16627), [#16644](https://github.com/laravel/framework/pull/16644)) -- Added resource routes translations ([#16429](https://github.com/laravel/framework/pull/16429), [e91f04b](https://github.com/laravel/framework/commit/e91f04b52603194dbc90dbbaee730e171bee1449)) -- Allow `TokenGuard` API token to be sent through as input ([#16766](https://github.com/laravel/framework/pull/16766)) -- Added `Collection::isNotEmpty()` ([#16797](https://github.com/laravel/framework/pull/16797)) -- Added "evidence" to the list of uncountable words ([#16788](https://github.com/laravel/framework/pull/16788)) -- Added `reply_to` to mailer config ([#16810](https://github.com/laravel/framework/pull/16810), [dc2ce4f](https://github.com/laravel/framework/commit/dc2ce4f9efb831a304e1c2674aae1dfd819b9c56)) - -### Changed -- Added missing `$useReadPdo` argument to `Connection::selectOne()` ([#16625](https://github.com/laravel/framework/pull/16625)) -- Preload some files required by already listed files ([#16648](https://github.com/laravel/framework/pull/16648)) -- Clone query for chunking ([53f97a0](https://github.com/laravel/framework/commit/53f97a014da380dc85fb4b0d826475e562d78dcc), [32d0f16](https://github.com/laravel/framework/commit/32d0f164424ab5b4a2bff2ed927812ae49bd8051)) -- Return a regular `PDO` object if a persistent connection is requested ([#16702](https://github.com/laravel/framework/pull/16702), [6b413d5](https://github.com/laravel/framework/commit/6b413d5b416c1e0b629a3036e6c3ad84b3b76a6e)) -- Global `to` address now also applied for the `cc` and `bcc` options of an email ([#16705](https://github.com/laravel/framework/pull/16705)) -- Don't report exceptions inside queue worker signal handler ([#16738](https://github.com/laravel/framework/pull/16738)) -- Kill timed out queue worker process ([#16746](https://github.com/laravel/framework/pull/16746)) -- Removed unnecessary check in `ScheduleRunCommand::fire()` ([#16752](https://github.com/laravel/framework/pull/16752)) -- Only guess the ability's name if no fully qualified class name was given ([#16807](https://github.com/laravel/framework/pull/16807), [f79839e](https://github.com/laravel/framework/commit/f79839e4b72999a67d5503bbb8437547cab87236)) -- Remove falsy values from array in `min()` and `max()` on `Collection` ([e2d317e](https://github.com/laravel/framework/commit/e2d317efcebbdf6651d89100c0b5d80a925bb2f1)) - -### Fixed -- Added file existence check to `AppNameCommand::replaceIn()` to fix [#16575](https://github.com/laravel/framework/pull/16575) ([#16592](https://github.com/laravel/framework/pull/16592)) -- Check for `null` in `seeJsonStructure()` ([#16642](https://github.com/laravel/framework/pull/16642)) -- Reverted [#15264](https://github.com/laravel/framework/pull/15264) ([#16660](https://github.com/laravel/framework/pull/16660)) -- Fixed misleading credentials exception when `ExceptionHandler` is not bound in container ([#16666](https://github.com/laravel/framework/pull/16666)) -- Use `sync` as queue name for Sync Queues ([#16681](https://github.com/laravel/framework/pull/16681)) -- Fixed `storedAs()` and `virtualAs()` issue ([#16683](https://github.com/laravel/framework/pull/16683)) -- Fixed false-positive `date_format` validation ([#16692](https://github.com/laravel/framework/pull/16692)) -- Use translator `trans()` method in `Validator` ([#16778](https://github.com/laravel/framework/pull/16778)) -- Fixed runtime error in `RouteServiceProvider` when `Route` facade is not available ([#16775](https://github.com/laravel/framework/pull/16775)) - -### Removed -- Removed hard coded prose from scheduled task email subject ([#16790](https://github.com/laravel/framework/pull/16790)) - - -## v5.3.26 (2016-11-30) - -### Changed -- Replaced deprecated `DefaultFinder` class ([#16602](https://github.com/laravel/framework/pull/16602)) - -### Fixed -- Reverted [#16506](https://github.com/laravel/framework/pull/16506) ([#16607](https://github.com/laravel/framework/pull/16607)) - - -## v5.3.25 (2016-11-29) - -### Added -- Added `before_or_equal` and `after_or_equal` validation rules ([#16490](https://github.com/laravel/framework/pull/16490)) -- Added fluent builder for `SlackMessageAttachmentField` ([#16535](https://github.com/laravel/framework/pull/16535), [db4879a](https://github.com/laravel/framework/commit/db4879ae84a3a1959729ac2732ae42cfe377314c)) -- Added the possibility to set and get file permissions in `Filesystem` ([#16560](https://github.com/laravel/framework/pull/16560)) - -### Changed -- Added additional `keyType` check to avoid using an invalid type for eager load constraints ([#16452](https://github.com/laravel/framework/pull/16452)) -- Always debug Pusher in `PusherBroadcaster::broadcast()` ([#16493](https://github.com/laravel/framework/pull/16493)) -- Don't pluralize "metadata" ([#16518](https://github.com/laravel/framework/pull/16518)) -- Always pass a collection to `LengthAwarePaginator` from `paginate()` methods ([#16547](https://github.com/laravel/framework/pull/16547)) -- Avoid unexpected connection timeouts when flushing tagged caches on Redis ([#16568](https://github.com/laravel/framework/pull/16568)) -- Enabled unicode support to `NexmoSmsChannel` ([#16577](https://github.com/laravel/framework/pull/16577), [3001640](https://github.com/laravel/framework/commit/30016408a6911afba4aa7739d69948d13612ea06)) - -### Fixed -- Fixed view compilation bug when using " or " in strings ([#16506](https://github.com/laravel/framework/pull/16506)) - - -## v5.3.24 (2016-11-21) - -### Added -- Added `AuthenticateSession` middleware ([fc302a6](https://github.com/laravel/framework/commit/fc302a6667f9dcce53395d01d8e6ba752ea62955)) -- Support arrays in `HasOne::withDefault()` ([#16382](https://github.com/laravel/framework/pull/16382)) -- Define route basename for resources ([#16352](https://github.com/laravel/framework/pull/16352)) -- Added `$fallback` parameter to `Redirector::back()` ([#16426](https://github.com/laravel/framework/pull/16426)) -- Added support for footer and markdown in `SlackAttachment` ([#16451](https://github.com/laravel/framework/pull/16451)) -- Added password change feedback auth stubs ([#16461](https://github.com/laravel/framework/pull/16461)) -- Added `name` to default register route ([#16480](https://github.com/laravel/framework/pull/16480)) -- Added `ServiceProvider::loadRoutesFrom()` method ([#16483](https://github.com/laravel/framework/pull/16483)) - -### Changed -- Use `getKey()` instead of `$id` in `PusherBroadcaster` ([#16438](https://github.com/laravel/framework/pull/16438)) - -### Fixed -- Pass `PheanstalkJob` to Pheanstalk's `delete()` method ([#16415](https://github.com/laravel/framework/pull/16415)) -- Don't call PDO callback in `reconnectIfMissingConnection()` until it is needed ([#16422](https://github.com/laravel/framework/pull/16422)) -- Don't timeout queue if `--timeout` is set to `0` ([#16465](https://github.com/laravel/framework/pull/16465)) -- Respect `--force` option of `queue:work` in maintenance mode ([#16468](https://github.com/laravel/framework/pull/16468)) - - -## v5.3.23 (2016-11-14) - -### Added -- Added database slave failover ([#15553](https://github.com/laravel/framework/pull/15553), [ed28c7f](https://github.com/laravel/framework/commit/ed28c7fa11d3754d618606bf8fc2f00690cfff66)) -- Added `Arr::shuffle($array)` ([ed28c7f](https://github.com/laravel/framework/commit/ed28c7fa11d3754d618606bf8fc2f00690cfff66)) -- Added `prepareForValidation()` method to `FormRequests` ([#16238](https://github.com/laravel/framework/pull/16238)) -- Support SparkPost transports options to be set at runtime ([#16254](https://github.com/laravel/framework/pull/16254)) -- Support setting `$replyTo` for email notifications ([#16277](https://github.com/laravel/framework/pull/16277)) -- Support `url` configuration parameter to generate filesystem disk URL ([#16281](https://github.com/laravel/framework/pull/16281), [dcff158](https://github.com/laravel/framework/commit/dcff158c63093523eadffc34a9ba8c1f8d4e53c0)) -- Allow `SerializesModels` to restore models excluded by global scope ([#16301](https://github.com/laravel/framework/pull/16301)) -- Allow loading specific columns while eager-loading Eloquent relationships ([#16327](https://github.com/laravel/framework/pull/16327)) -- Allow Eloquent `HasOne` relationships to return a "default model" ([#16198](https://github.com/laravel/framework/pull/16198), [9b59f67](https://github.com/laravel/framework/commit/9b59f67daeb63bad11af9b70b4a35c6435240ff7)) -- Allow `SlackAttachment` color override ([#16360](https://github.com/laravel/framework/pull/16360)) -- Allow chaining factory calls to `define()` and `state()` ([#16389](https://github.com/laravel/framework/pull/16389)) - -### Changed -- Dried-up console parser and extract token parsing ([#16197](https://github.com/laravel/framework/pull/16197)) -- Support empty array for query builder `orders` property ([#16225](https://github.com/laravel/framework/pull/16225)) -- Properly handle filling JSON attributes on Eloquent models ([#16228](https://github.com/laravel/framework/pull/16228)) -- Use `forceReconnection()` method in `Mailer` ([#16298](https://github.com/laravel/framework/pull/16298)) -- Double-quote MySQL JSON expressions ([#16308](https://github.com/laravel/framework/pull/16308)) -- Moved login attempt code to separate method ([#16317](https://github.com/laravel/framework/pull/16317)) -- Escape the RegExp delimiter in `Validator::getExplicitKeys()` ([#16309](https://github.com/laravel/framework/pull/16309)) -- Use default Slack colors in `SlackMessage` ([#16345](https://github.com/laravel/framework/pull/16345)) -- Support presence channels names containing the words `private-` or `presence-` ([#16353](https://github.com/laravel/framework/pull/16353)) -- Fail test, instead of throwing an exception when `seeJson()` fails ([#16350](https://github.com/laravel/framework/pull/16350)) -- Call `sendPerformed()` for all mail transports ([#16366](https://github.com/laravel/framework/pull/16366)) -- Add `X-SES-Message-ID` header in `SesTransport::send()` ([#16366](https://github.com/laravel/framework/pull/16366)) -- Throw `BroadcastException` when `PusherBroadcaster::broadcast()` fails ([#16398](https://github.com/laravel/framework/pull/16398)) - -### Fixed -- Catch errors when handling a failed job ([#16212](https://github.com/laravel/framework/pull/16212)) -- Return array from `Translator::sortReplacements()` ([#16221](https://github.com/laravel/framework/pull/16221)) -- Don't use multi-byte functions in `UrlGenerator::to()` ([#16081](https://github.com/laravel/framework/pull/16081)) -- Support configuration files as symbolic links ([#16080](https://github.com/laravel/framework/pull/16080)) -- Fixed wrapping and escaping in SQL Server `dropIfExists()` ([#16279](https://github.com/laravel/framework/pull/16279)) -- Throw `ManuallyFailedException` if `InteractsWithQueue::fail()` is called manually ([#16318](https://github.com/laravel/framework/pull/16318), [a20fa97](https://github.com/laravel/framework/commit/a20fa97445be786f9f5f09e2e9b905a00064b2da)) -- Catch `Throwable` in timezone validation ([#16344](https://github.com/laravel/framework/pull/16344)) -- Fixed `Auth::onceUsingId()` by reversing the order of retrieving the id in `SessionGuard` ([#16373](https://github.com/laravel/framework/pull/16373)) -- Fixed bindings on update statements with advanced joins ([#16368](https://github.com/laravel/framework/pull/16368)) - - -## v5.3.22 (2016-11-01) - -### Added -- Added support for carbon-copy in mail notifications ([#16152](https://github.com/laravel/framework/pull/16152)) -- Added `-r` shortcut to `make:controller` command ([#16141](https://github.com/laravel/framework/pull/16141)) -- Added `HasDatabaseNotifications::readNotifications()` method ([#16164](https://github.com/laravel/framework/pull/16164)) -- Added `broadcastOn()` method to allow notifications to be broadcasted to custom channels ([#16170](https://github.com/laravel/framework/pull/16170)) - -### Changed -- Avoid extraneous database query when last `chunk()` is partial ([#16180](https://github.com/laravel/framework/pull/16180)) -- Return unique middleware stack from `Route::gatherMiddleware()` ([#16185](https://github.com/laravel/framework/pull/16185)) -- Return early when `Collection::chunk()` size zero or less ([#16206](https://github.com/laravel/framework/pull/16206), [46ebd7f](https://github.com/laravel/framework/commit/46ebd7fa1f35eeb37af891abfc611f7262c91c29)) - -### Fixed -- Bind `double` as `PDO::PARAM_INT` on MySQL connections ([#16069](https://github.com/laravel/framework/pull/16069)) - - -## v5.3.21 (2016-10-26) - -### Added -- Added `ResetsPasswords::validationErrorMessages()` method ([#16111](https://github.com/laravel/framework/pull/16111)) - -### Changed -- Use `toString()` instead of `(string)` on UUIDs for notification ids ([#16109](https://github.com/laravel/framework/pull/16109)) - -### Fixed -- Don't hydrate files in `Validator` ([#16105](https://github.com/laravel/framework/pull/16105)) - -### Removed -- Removed `-q` shortcut from `make:listener` command ([#16110](https://github.com/laravel/framework/pull/16110)) - - -## v5.3.20 (2016-10-25) - -### Added -- Added `--resource` (or `-r`) option to `make:model` command ([#15993](https://github.com/laravel/framework/pull/15993)) -- Support overwriting channel name for broadcast notifications ([#16018](https://github.com/laravel/framework/pull/16018), [4e30db5](https://github.com/laravel/framework/commit/4e30db5fbc556f7925130f9805f2dec47592719e)) -- Added `Macroable` trait to `Rule` ([#16028](https://github.com/laravel/framework/pull/16028)) -- Added `Session::remember()` helper ([#16041](https://github.com/laravel/framework/pull/16041)) -- Added option shorthands to `make:listener` command ([#16038](https://github.com/laravel/framework/pull/16038)) -- Added `RegistersUsers::registered()` method ([#16036](https://github.com/laravel/framework/pull/16036)) -- Added `ResetsPasswords::rules()` method ([#16060](https://github.com/laravel/framework/pull/16060)) -- Added `$page` parameter to `simplePaginate()` in `BelongsToMany` and `HasManyThrough` ([#16075](https://github.com/laravel/framework/pull/16075)) - -### Changed -- Catch `dns_get_record()` exceptions in `validateActiveUrl()` ([#15979](https://github.com/laravel/framework/pull/15979)) -- Allow reconnect during database transactions ([#15931](https://github.com/laravel/framework/pull/15931)) -- Use studly case for controller names generated by `make:model` command ([#15988](https://github.com/laravel/framework/pull/15988)) -- Support objects that are castable to strings in `Collection::keyBy()` ([#16001](https://github.com/laravel/framework/pull/16001)) -- Switched to using a static object to collect console application bootstrappers that need to run on Artisan starting ([#16012](https://github.com/laravel/framework/pull/16012)) -- Return unique middleware stack in `SortedMiddleware::sortMiddleware()` ([#16034](https://github.com/laravel/framework/pull/16034)) -- Allow methods inside `@foreach` and `@forelse` expressions ([#16087](https://github.com/laravel/framework/pull/16087)) -- Improved Scheduler parameter escaping ([#16088](https://github.com/laravel/framework/pull/16088)) - -### Fixed -- Fixed `session_write_close()` on PHP7 ([#15968](https://github.com/laravel/framework/pull/15968)) -- Fixed ambiguous id issues when restoring models with eager loaded / joined query ([#15983](https://github.com/laravel/framework/pull/15983)) -- Fixed integer and double support in `JsonExpression` ([#16068](https://github.com/laravel/framework/pull/16068)) -- Fixed UUIDs when queueing notifications ([18d26df](https://github.com/laravel/framework/commit/18d26df24f1f3b17bd20c7244d9b85d273138d79)) -- Fixed empty session issue when the session file is being accessed simultaneously ([#15998](https://github.com/laravel/framework/pull/15998)) - -### Removed -- Removed `Requests` import from controller stubs ([#16011](https://github.com/laravel/framework/pull/16011)) -- Removed unnecessary validation feedback for password confirmation field ([#16100](https://github.com/laravel/framework/pull/16100)) - - -## v5.3.19 (2016-10-17) - -### Added -- Added `--controller` (or `-c`) option to `make:model` command ([#15795](https://github.com/laravel/framework/pull/15795)) -- Added object based `dimensions` validation rule ([#15852](https://github.com/laravel/framework/pull/15852)) -- Added object based `in` and `not_in` validation rule ([#15923](https://github.com/laravel/framework/pull/15923), [#15951](https://github.com/laravel/framework/pull/15951), [336a807](https://github.com/laravel/framework/commit/336a807ee56de27adcb3f9d34b337300520568ac)) -- Added `clear-compiled` command success message ([#15868](https://github.com/laravel/framework/pull/15868)) -- Added `SlackMessage::http()` to specify additional `headers` or `proxy` options ([#15882](https://github.com/laravel/framework/pull/15882)) -- Added a name to the logout route ([#15889](https://github.com/laravel/framework/pull/15889)) -- Added "feedback" to `Pluralizer::uncountable()` ([#15895](https://github.com/laravel/framework/pull/15895)) -- Added `FormRequest::withValidator($validator)` hook ([#15918](https://github.com/laravel/framework/pull/15918), [bf8a36a](https://github.com/laravel/framework/commit/bf8a36ac3df03a2c889cbc9aa535e5cf9ff48777)) -- Add missing `ClosureCommand::$callback` property ([#15956](https://github.com/laravel/framework/pull/15956)) - -### Changed -- Total rewrite of middleware sorting logic ([6b69fb8](https://github.com/laravel/framework/commit/6b69fb81fc7c36e9e129a0ce2e56a824cc907859), [9cc5334](https://github.com/laravel/framework/commit/9cc5334d00824441ccce5e9d2979723e41b2fc05)) -- Wrap PostgreSQL database schema changes in a transaction ([#15780](https://github.com/laravel/framework/pull/15780), [#15962](https://github.com/laravel/framework/pull/15962)) -- Expect `array` on `Validator::explodeRules()` ([#15838](https://github.com/laravel/framework/pull/15838)) -- Return `null` if an empty key was passed to `Model::getAttribute()` ([#15874](https://github.com/laravel/framework/pull/15874)) -- Support multiple `LengthAwarePaginator` on a single page with different `$pageName` properties ([#15870](https://github.com/laravel/framework/pull/15870)) -- Pass ids to `ModelNotFoundException` ([#15896](https://github.com/laravel/framework/pull/15896)) -- Improved database transaction logic ([7a0832b](https://github.com/laravel/framework/commit/7a0832bb44057f1060c96c2e01652aae7c583323)) -- Use `name()` method instead of `getName()` ([#15955](https://github.com/laravel/framework/pull/15955)) -- Minor syntax improvements ([#15953](https://github.com/laravel/framework/pull/15953), [#15954](https://github.com/laravel/framework/pull/15954), [4e9c9fd](https://github.com/laravel/framework/commit/4e9c9fd98b4dff71f449764e87c52577e2634587)) - -### Fixed -- Fixed `migrate:status` using another connection ([#15824](https://github.com/laravel/framework/pull/15824)) -- Fixed calling closure based commands ([#15873](https://github.com/laravel/framework/pull/15873)) -- Split `SimpleMessage` by all possible EOLs ([#15921](https://github.com/laravel/framework/pull/15921)) -- Ensure that the search and the creation/update of Eloquent instances happens on the same connection ([#15958](https://github.com/laravel/framework/pull/15958)) - - -## v5.3.18 (2016-10-07) - -### Added -- Added object based `unique` and `exists` validation rules ([#15809](https://github.com/laravel/framework/pull/15809)) - -### Changed -- Added primary key to `migrations` table ([#15770](https://github.com/laravel/framework/pull/15770)) -- Simplified `route:list` command code ([#15802](https://github.com/laravel/framework/pull/15802), [cb2eb79](https://github.com/laravel/framework/commit/cb2eb7963b29aafe63c87e1d2b1e633ecd0c25b0)) - -### Fixed -- Use eloquent collection for proper serialization of [#15789](https://github.com/laravel/framework/pull/15789) ([1c78e00](https://github.com/laravel/framework/commit/1c78e00ef3815e7b0bf710037b52faefb464e97d)) -- Reverted [#15722](https://github.com/laravel/framework/pull/15722) ([#15813](https://github.com/laravel/framework/pull/15813)) - - -## v5.3.17 (2016-10-06) - -### Added -- Added model factory "states" ([#14241](https://github.com/laravel/framework/pull/14241)) - -### Changed -- `Collection::only()` now returns all items if `$keys` is `null` ([#15695](https://github.com/laravel/framework/pull/15695)) - -### Fixed -- Added workaround for Memcached 3 on PHP7 when using `many()` ([#15739](https://github.com/laravel/framework/pull/15739)) -- Fixed bug in `Validator::hydrateFiles()` when removing the files array ([#15663](https://github.com/laravel/framework/pull/15663)) -- Fixed model factory bug when `$amount` is zero ([#15764](https://github.com/laravel/framework/pull/15764), [#15779](https://github.com/laravel/framework/pull/15779)) -- Prevent multiple notifications getting sent out when using the `Notification` facade ([#15789](https://github.com/laravel/framework/pull/15789)) - - -## v5.3.16 (2016-10-04) - -### Added -- Added "furniture" and "wheat" to `Pluralizer::uncountable()` ([#15703](https://github.com/laravel/framework/pull/15703)) -- Allow passing `$keys` to `Model::getAttributes()` ([#15722](https://github.com/laravel/framework/pull/15722)) -- Added database blueprint for soft deletes with timezone ([#15737](https://github.com/laravel/framework/pull/15737)) -- Added given guards to `AuthenticationException` ([#15745](https://github.com/laravel/framework/pull/15745)) -- Added [Seneca](https://en.wikipedia.org/wiki/Seneca_the_Younger) quote to `Inspire` command ([#15747](https://github.com/laravel/framework/pull/15747)) -- Added `div#app` to auth layout stub ([08bcbdb](https://github.com/laravel/framework/commit/08bcbdbe70b69330943cc45625b160877b37341a)) -- Added PHP 7.1 timeout handler to queue worker ([cc9e1f0](https://github.com/laravel/framework/commit/cc9e1f09683fd23cf8e973e84bf310f7ce1304a2)) - -### Changed -- Changed visibility of `Route::getController()` to public ([#15678](https://github.com/laravel/framework/pull/15678)) -- Changed notifications `id` column type to `uuid` ([#15719](https://github.com/laravel/framework/pull/15719)) - -### Fixed -- Fixed PDO bindings when using `whereHas()` ([#15740](https://github.com/laravel/framework/pull/15740)) - - -## v5.3.15 (2016-09-29) - -### Changed -- Use granular notification queue jobs ([#15681](https://github.com/laravel/framework/pull/15681), [3a5e510](https://github.com/laravel/framework/commit/3a5e510af5e92ab2eaa25d728b8c74d9cf8833c2)) -- Reverted recent changes to the queue ([d8dc8dc](https://github.com/laravel/framework/commit/d8dc8dc4bde56f63d8b1eacec3f3d4d68cc51894)) - - -## v5.3.14 (2016-09-29) - -### Fixed -- Fixed `DaemonCommand` command name ([b681bff](https://github.com/laravel/framework/commit/b681bffc247ebac1fbb4afcec03e2ce12627e0cc)) - - -## v5.3.13 (2016-09-29) - -### Added -- Added `serialize()` and `unserialize()` on `RedisStore` ([#15657](https://github.com/laravel/framework/pull/15657)) - -### Changed -- Use `$signature` command style on `DaemonCommand` and `WorkCommand` ([#15677](https://github.com/laravel/framework/pull/15677)) - - -## v5.3.12 (2016-09-29) - -### Added -- Added support for priority level in mail notifications ([#15651](https://github.com/laravel/framework/pull/15651)) -- Added missing `$minutes` property on `CookieSessionHandler` ([#15664](https://github.com/laravel/framework/pull/15664)) - -### Changed -- Removed forking and PCNTL requirements while still supporting timeouts ([#15650](https://github.com/laravel/framework/pull/15650)) -- Set exception handler first thing in `WorkCommand::runWorker()` ([99994fe](https://github.com/laravel/framework/commit/99994fe23c1215d5a8e798da03947e6a5502b8f9)) - - -## v5.3.11 (2016-09-27) - -### Added -- Added `Kernel::setArtisan()` method ([#15531](https://github.com/laravel/framework/pull/15531)) -- Added a default method for validation message variable replacing ([#15527](https://github.com/laravel/framework/pull/15527)) -- Added support for a schema array in Postgres config ([#15535](https://github.com/laravel/framework/pull/15535)) -- Added `SoftDeletes::isForceDeleting()` method ([#15580](https://github.com/laravel/framework/pull/15580)) -- Added support for tasks scheduling using command classes instead of signatures ([#15591](https://github.com/laravel/framework/pull/15591)) -- Added support for passing array of emails/user-objects to `Mailable::to()` ([#15603](https://github.com/laravel/framework/pull/15603)) -- Add missing interface methods in `Registrar` contract ([#15616](https://github.com/laravel/framework/pull/15616)) - -### Changed -- Let the queue worker sleep for 1s when app is down for maintenance ([#15520](https://github.com/laravel/framework/pull/15520)) -- Improved validator messages for implicit attributes errors ([#15538](https://github.com/laravel/framework/pull/15538)) -- Use `Carbon::now()->getTimestamp()` instead of `time()` in various places ([#15544](https://github.com/laravel/framework/pull/15544), [#15545](https://github.com/laravel/framework/pull/15545), [c5984af](https://github.com/laravel/framework/commit/c5984af3757e492c6e79cef161169ea09b5b9c7a), [#15549](https://github.com/laravel/framework/pull/15549)) -- Removed redundant condition from `updateOrInsert()` ([#15540](https://github.com/laravel/framework/pull/15540)) -- Throw `LogicException` on container alias loop ([#15548](https://github.com/laravel/framework/pull/15548)) -- Handle empty `$files` in `Request::duplicate()` ([#15558](https://github.com/laravel/framework/pull/15558)) -- Support exact matching of custom validation messages ([#15557](https://github.com/laravel/framework/pull/15557)) - -### Fixed -- Decode URL in `Request::segments()` and `Request::is()` ([#15524](https://github.com/laravel/framework/pull/15524)) -- Replace only the first instance of the app namespace in Generators ([#15575](https://github.com/laravel/framework/pull/15575)) -- Fixed artisan `--env` issue where environment file wasn't loaded ([#15629](https://github.com/laravel/framework/pull/15629)) -- Fixed migration with comments using `ANSI_QUOTE` SQL mode ([#15620](https://github.com/laravel/framework/pull/15620)) -- Disabled queue worker process forking until it works with AWS SQS ([23c1276](https://github.com/laravel/framework/commit/23c12765557ebc5e3c35ad024d645620f7b907d6)) - - -## v5.3.10 (2016-09-20) - -### Added -- Fire `Registered` event when a user registers ([#15401](https://github.com/laravel/framework/pull/15401)) -- Added `Container::factory()` method ([#15415](https://github.com/laravel/framework/pull/15415)) -- Added `$default` parameter to query/eloquent builder `when()` method ([#15428](https://github.com/laravel/framework/pull/15428), [#15442](https://github.com/laravel/framework/pull/15442)) -- Added missing `$notifiable` parameter to `ResetPassword::toMail()` ([#15448](https://github.com/laravel/framework/pull/15448)) - -### Changed -- Updated `ServiceProvider` to use `resourcePath()` over `basePath()` ([#15400](https://github.com/laravel/framework/pull/15400)) -- Throw `RuntimeException` if `pcntl_fork()` doesn't exists ([#15393](https://github.com/laravel/framework/pull/15393)) -- Changed visibility of `Container::getAlias()` to public ([#15444](https://github.com/laravel/framework/pull/15444)) -- Changed visibility of `VendorPublishCommand::publishTag()` to protected ([#15461](https://github.com/laravel/framework/pull/15461)) -- Changed visibility of `TestCase::afterApplicationCreated()` to public ([#15493](https://github.com/laravel/framework/pull/15493)) -- Prevent calling `Model` methods when calling them as attributes ([#15438](https://github.com/laravel/framework/pull/15438)) -- Default `$callback` to `null` in eloquent builder `whereHas()` ([#15475](https://github.com/laravel/framework/pull/15475)) -- Support newlines in Blade's `@foreach` ([#15485](https://github.com/laravel/framework/pull/15485)) -- Try to reconnect if connection is lost during database transaction ([#15511](https://github.com/laravel/framework/pull/15511)) -- Renamed `InteractsWithQueue::failed()` to `fail()` ([e1d60e0](https://github.com/laravel/framework/commit/e1d60e0fe120a7898527fb997aa2fb9de263190c)) - -### Fixed -- Reverted "Allow passing a `Closure` to `View::share()` [#15312](https://github.com/laravel/framework/pull/15312)" ([#15312](https://github.com/laravel/framework/pull/15312)) -- Resolve issues with multi-value select elements ([#15436](https://github.com/laravel/framework/pull/15436)) -- Fixed issue with `X-HTTP-METHOD-OVERRIDE` spoofing in `Request` ([#15410](https://github.com/laravel/framework/pull/15410)) - -### Removed -- Removed unused `SendsPasswordResetEmails::resetNotifier()` method ([#15446](https://github.com/laravel/framework/pull/15446)) -- Removed uninstantiable `Seeder` class ([#15450](https://github.com/laravel/framework/pull/15450)) -- Removed unnecessary variable in `AuthenticatesUsers::login()` ([#15507](https://github.com/laravel/framework/pull/15507)) - - -## v5.3.9 (2016-09-12) - -### Changed -- Optimized performance of `Str::startsWith()` and `Str::endsWith()` ([#15380](https://github.com/laravel/framework/pull/15380), [#15397](https://github.com/laravel/framework/pull/15397)) - -### Fixed -- Fixed queue job without `--tries` option marks jobs failed ([#15370](https://github.com/laravel/framework/pull/15370), [#15390](https://github.com/laravel/framework/pull/15390)) - - -## v5.3.8 (2016-09-09) - -### Added -- Added missing `MailableMailer::later()` method ([#15364](https://github.com/laravel/framework/pull/15364)) -- Added missing `$queue` parameter on `SyncJob` ([#15368](https://github.com/laravel/framework/pull/15368)) -- Added SSL options for PostgreSQL DSN ([#15371](https://github.com/laravel/framework/pull/15371)) -- Added ability to disable touching of parent when toggling relation ([#15263](https://github.com/laravel/framework/pull/15263)) -- Added username, icon and channel options for Slack Notifications ([#14910](https://github.com/laravel/framework/pull/14910)) - -### Changed -- Renamed methods in `NotificationFake` ([69b08f6](https://github.com/laravel/framework/commit/69b08f66fbe70b4df8332a8f2a7557a49fd8c693)) -- Minor code improvements ([#15369](https://github.com/laravel/framework/pull/15369)) - -### Fixed -- Fixed catchable fatal error introduced [#15250](https://github.com/laravel/framework/pull/15250) ([#15350](https://github.com/laravel/framework/pull/15350)) - - -## v5.3.7 (2016-09-08) - -### Added -- Added missing translation for `mimetypes` validation ([#15209](https://github.com/laravel/framework/pull/15209), [#3921](https://github.com/laravel/laravel/pull/3921)) -- Added ability to check if between two times when using scheduler ([#15216](https://github.com/laravel/framework/pull/15216), [#15306](https://github.com/laravel/framework/pull/15306)) -- Added `X-RateLimit-Reset` header to throttled responses ([#15275](https://github.com/laravel/framework/pull/15275)) -- Support aliases on `withCount()` ([#15279](https://github.com/laravel/framework/pull/15279)) -- Added `Filesystem::isReadable()` ([#15289](https://github.com/laravel/framework/pull/15289)) -- Added `Collection::split()` method ([#15302](https://github.com/laravel/framework/pull/15302)) -- Allow passing a `Closure` to `View::share()` ([#15312](https://github.com/laravel/framework/pull/15312)) -- Added support for `Mailable` messages in `MailChannel` ([#15318](https://github.com/laravel/framework/pull/15318)) -- Added `with*()` syntax to `Mailable` class ([#15316](https://github.com/laravel/framework/pull/15316)) -- Added `--path` option for `migrate:rollback/refresh/reset` ([#15251](https://github.com/laravel/framework/pull/15251)) -- Allow numeric keys on `morphMap()` ([#15332](https://github.com/laravel/framework/pull/15332)) -- Added fakes for bus, events, mail, queue and notifications ([5deab59](https://github.com/laravel/framework/commit/5deab59e89b85e09b2bd1642e4efe55e933805ca)) - -### Changed -- Update `Model::save()` to return `true` when no error occurs ([#15236](https://github.com/laravel/framework/pull/15236)) -- Optimized performance of `Arr::first()` ([#15213](https://github.com/laravel/framework/pull/15213)) -- Swapped `drop()` for `dropIfExists()` in all stubs ([#15230](https://github.com/laravel/framework/pull/15230)) -- Allow passing object instance to `class_uses_recursive()` ([#15223](https://github.com/laravel/framework/pull/15223)) -- Improved handling of failed file uploads during validation ([#15166](https://github.com/laravel/framework/pull/15166)) -- Hide pagination if it does not have multiple pages ([#15246](https://github.com/laravel/framework/pull/15246)) -- Cast Pusher message to JSON in `validAuthentiactoinResponse()` ([#15262](https://github.com/laravel/framework/pull/15262)) -- Throw exception if queue failed to create payload ([#15284](https://github.com/laravel/framework/pull/15284)) -- Call `getUrl()` first in `FilesystemAdapter::url()` ([#15291](https://github.com/laravel/framework/pull/15291)) -- Consider local key in `HasManyThrough` relationships ([#15303](https://github.com/laravel/framework/pull/15303)) -- Fail faster by checking Route Validators in likely fail order ([#15287](https://github.com/laravel/framework/pull/15287)) -- Make the `FilesystemAdapter::delete()` behave like `FileSystem::delete()` ([#15308](https://github.com/laravel/framework/pull/15308)) -- Don't call `floor()` in `Collection::median()` ([#15343](https://github.com/laravel/framework/pull/15343)) -- Always return number from aggregate method `sum()` ([#15345](https://github.com/laravel/framework/pull/15345)) - -### Fixed -- Reverted "Hide empty paginators" [#15125](https://github.com/laravel/framework/pull/15125) ([#15241](https://github.com/laravel/framework/pull/15241)) -- Fixed empty `multifile` uploads ([#15250](https://github.com/laravel/framework/pull/15250)) -- Fixed regression in `save(touch)` option ([#15264](https://github.com/laravel/framework/pull/15264)) -- Fixed lower case model names in policy classes ([15270](https://github.com/laravel/framework/pull/15270)) -- Allow models with global scopes to be refreshed ([#15282](https://github.com/laravel/framework/pull/15282)) -- Fix `ChannelManager::getDefaultDriver()` implementation ([#15288](https://github.com/laravel/framework/pull/15288)) -- Fire `illuminate.queue.looping` event before running daemon ([#15290](https://github.com/laravel/framework/pull/15290)) -- Check attempts before firing queue job ([#15319](https://github.com/laravel/framework/pull/15319)) -- Fixed `morphTo()` naming inconsistency ([#15334](https://github.com/laravel/framework/pull/15334)) - - -## v5.3.6 (2016-09-01) - -### Added -- Added `required` attributes to auth scaffold ([#15087](https://github.com/laravel/framework/pull/15087)) -- Support custom recipient(s) in `MailMessage` notifications ([#15100](https://github.com/laravel/framework/pull/15100)) -- Support custom greeting in `SimpleMessage` notifications ([#15108](https://github.com/laravel/framework/pull/15108)) -- Added `prependLocation()` method to `FileViewFinder` ([#15103](https://github.com/laravel/framework/pull/15103)) -- Added fluent email priority setter ([#15178](https://github.com/laravel/framework/pull/15178)) -- Added `send()` and `sendNow()` to notification factory contract ([0066b5d](https://github.com/laravel/framework/commit/0066b5da6f009275348ab71904da2376c6c47281)) - -### Changed -- Defer resolving of PDO connection until needed ([#15031](https://github.com/laravel/framework/pull/15031)) -- Send plain text email along with HTML email notifications ([#15016](https://github.com/laravel/framework/pull/15016), [#15092](https://github.com/laravel/framework/pull/15092), [#15115](https://github.com/laravel/framework/pull/15115)) -- Stop further validation if a `required` rule fails ([#15089](https://github.com/laravel/framework/pull/15089)) -- Swaps `drop()` for `dropIfExists()` in migration stub ([#15113](https://github.com/laravel/framework/pull/15113)) -- The `resource_path()` helper now relies on `Application::resourcePath()` ([#15095](https://github.com/laravel/framework/pull/15095)) -- Optimized performance of `Str::random()` ([#15112](https://github.com/laravel/framework/pull/15112)) -- Show `app.name` in auth stub ([#15138](https://github.com/laravel/framework/pull/15138)) -- Switched from `htmlentities()` to `htmlspecialchars()` in `e()` helper ([#15159](https://github.com/laravel/framework/pull/15159)) -- Hide empty paginators ([#15125](https://github.com/laravel/framework/pull/15125)) - -### Fixed -- Fixed `migrate:rollback` with `FETCH_ASSOC` enabled ([#15088](https://github.com/laravel/framework/pull/15088)) -- Fixes query builder not considering raw expressions in `whereIn()` ([#15078](https://github.com/laravel/framework/pull/15078)) -- Fixed notifications serialization mistake in `ChannelManager` ([#15106](https://github.com/laravel/framework/pull/15106)) -- Fixed session id collisions ([#15206](https://github.com/laravel/framework/pull/15206)) -- Fixed extending cache expiration time issue in `file` cache ([#15164](https://github.com/laravel/framework/pull/15164)) - -### Removed -- Removed data transformation in `Response::json()` ([#15137](https://github.com/laravel/framework/pull/15137)) - - -## v5.3.4 (2016-08-26) - -### Added -- Added ability to set from address for email notifications ([#15055](https://github.com/laravel/framework/pull/15055)) - -### Changed -- Support implicit keys in `MessageBag::get()` ([#15063](https://github.com/laravel/framework/pull/15063)) -- Allow passing of closures to `assertViewHas()` ([#15074](https://github.com/laravel/framework/pull/15074)) -- Strip protocol from Route group domains parameters ([#15070](https://github.com/laravel/framework/pull/15070)) -- Support dot notation as callback in `Arr::sort()` ([#15050](https://github.com/laravel/framework/pull/15050)) -- Use Redis database interface instead of implementation ([#15041](https://github.com/laravel/framework/pull/15041)) -- Allow closure middleware to be registered from the controller constructor ([#15080](https://github.com/laravel/framework/pull/15080), [abd85c9](https://github.com/laravel/framework/commit/abd85c916df0cc0a6dc55de943a39db8b7eb4e0d)) - -### Fixed -- Fixed plural form of Emoji ([#15068](https://github.com/laravel/framework/pull/15068)) - - -## v5.3.3 (2016-08-26) - -### Fixed -- Fixed testing of Eloquent model events ([#15052](https://github.com/laravel/framework/pull/15052)) - - -## v5.3.2 (2016-08-24) - -### Fixed -- Revert changes to Eloquent `Builder` that breaks `firstOr*` methods ([#15018](https://github.com/laravel/framework/pull/15018)) - - -## v5.3.1 (2016-08-24) - -### Changed -- Support unversioned assets in `elixir()` function ([#14987](https://github.com/laravel/framework/pull/14987)) -- Changed visibility of `BladeCompiler::stripParentheses()` to `public` ([#14986](https://github.com/laravel/framework/pull/14986)) -- Use getter instead of accessing the properties directly in `JoinClause::__construct()` ([#14984](https://github.com/laravel/framework/pull/14984)) -- Replaced manual comparator with `asort` in `Collection::sort()` ([#14980](https://github.com/laravel/framework/pull/14980)) -- Use `query()` instead of `input()` for key lookup in `TokenGuard::getTokenForRequest()` ([#14985](https://github.com/laravel/framework/pull/14985)) - -### Fixed -- Check if exact key exists before assuming the dot notation represents segments in `Arr::has()` ([#14976](https://github.com/laravel/framework/pull/14976)) -- Revert aggregate changes in [#14793](https://github.com/laravel/framework/pull/14793) ([#14994](https://github.com/laravel/framework/pull/14994)) -- Prevent infinite recursion with closure based console commands ([26eaa35](https://github.com/laravel/framework/commit/26eaa35c0dbd988084e748410a31c8b01fc1993a)) -- Fixed `transaction()` method for SqlServer ([f4588f8](https://github.com/laravel/framework/commit/f4588f8851aab1129f77d87b7dc1097c842390db))
true
Other
laravel
framework
fca53f2a895c33c2884d8c5e6ad70a76de297e9d.json
remove old changelogs
CHANGELOG-5.2.md
@@ -1,477 +0,0 @@ -# Release Notes - -## [Unreleased] - -### Fixed -- Fixed deferring write connection ([#16673](https://github.com/laravel/framework/pull/16673)) - - -## v5.2.45 (2016-08-26) - -### Fixed -- Revert changes to Eloquent `Builder` that breaks `firstOr*` methods ([#15018](https://github.com/laravel/framework/pull/15018)) -- Revert aggregate changes in [#14793](https://github.com/laravel/framework/pull/14793) ([#14994](https://github.com/laravel/framework/pull/14994)) - - -## v5.2.44 (2016-08-23) - -### Added -- Added `BelongsToMany::syncWithoutDetaching()` method ([33aee31](https://github.com/laravel/framework/commit/33aee31523b9fc280aced35a5eb5f6b627263b45)) -- Added `withoutTrashed()` method to `SoftDeletingScope` ([#14805](https://github.com/laravel/framework/pull/14805)) -- Support Flysystem's `disable_asserts` config value ([#14864](https://github.com/laravel/framework/pull/14864)) - -### Changed -- Support multi-dimensional `$data` arrays in `invalid()` and `valid()` methods ([#14651](https://github.com/laravel/framework/pull/14651)) -- Support column aliases in `chunkById()` ([#14711](https://github.com/laravel/framework/pull/14711)) -- Re-attempt transaction when encountering a deadlock ([#14930](https://github.com/laravel/framework/pull/14930)) - -### Fixed -- Only return floats or integers in `aggregate()` ([#14781](https://github.com/laravel/framework/pull/14781)) -- Fixed numeric aggregate queries ([#14793](https://github.com/laravel/framework/pull/14793)) -- Create new row in `firstOrCreate()` when a model has a mutator ([#14656](https://github.com/laravel/framework/pull/14656)) -- Protect against empty paths in the `view:clear` command ([#14812](https://github.com/laravel/framework/pull/14812)) -- Convert `$attributes` in `makeHidden()` to array ([#14852](https://github.com/laravel/framework/pull/14852), [#14857](https://github.com/laravel/framework/pull/14857)) -- Prevent conflicting class name import to namespace in `ValidatesWhenResolvedTrait` ([#14878](https://github.com/laravel/framework/pull/14878)) - - -## v5.2.43 (2016-08-10) - -### Changed -- Throw exception if `$amount` is not numeric in `increment()` and `decrement()` ([915cb84](https://github.com/laravel/framework/commit/915cb843981ad434b10709425d968bf2db37cb1a)) - - -## v5.2.42 (2016-08-08) - -### Added -- Allow `BelongsToMany::detach()` to accept a collection ([#14412](https://github.com/laravel/framework/pull/14412)) -- Added `whereTime()` and `orWhereTime()` to query builder ([#14528](https://github.com/laravel/framework/pull/14528)) -- Added PHP 7.1 support ([#14549](https://github.com/laravel/framework/pull/14549)) -- Allow collections to be created from objects that implement `Traversable` ([#14628](https://github.com/laravel/framework/pull/14628)) -- Support dot notation in `Request::exists()` ([#14660](https://github.com/laravel/framework/pull/14660)) -- Added missing `Model::makeHidden()` method ([#14641](https://github.com/laravel/framework/pull/14641)) - -### Changed -- Return `true` when `$key` is empty in `MessageBag::has()` ([#14409](https://github.com/laravel/framework/pull/14409)) -- Optimized `Filesystem::moveDirectory` ([#14362](https://github.com/laravel/framework/pull/14362)) -- Convert `$count` to integer in `Str::plural()` ([#14502](https://github.com/laravel/framework/pull/14502)) -- Handle arrays in `validateIn()` method ([#14607](https://github.com/laravel/framework/pull/14607)) - -### Fixed -- Fixed an issue with `wherePivotIn()` ([#14397](https://github.com/laravel/framework/issues/14397)) -- Fixed PDO connection on HHVM ([#14429](https://github.com/laravel/framework/pull/14429)) -- Prevent `make:migration` from creating duplicate classes ([#14432](https://github.com/laravel/framework/pull/14432)) -- Fixed lazy eager loading issue in `LengthAwarePaginator` collection ([#14476](https://github.com/laravel/framework/pull/14476)) -- Fixed plural form of Pokémon ([#14525](https://github.com/laravel/framework/pull/14525)) -- Fixed authentication bug in `TokenGuard::validate()` ([#14568](https://github.com/laravel/framework/pull/14568)) -- Fix missing middleware parameters when using `authorizeResource()` ([#14592](https://github.com/laravel/framework/pull/14592)) - -### Removed -- Removed duplicate interface implementation in `Dispatcher` ([#14515](https://github.com/laravel/framework/pull/14515)) - - -## v5.2.41 (2016-07-20) - -### Changed -- Run session garbage collection before response is returned ([#14386](https://github.com/laravel/framework/pull/14386)) - -### Fixed -- Fixed pagination bug introduced in [#14188](https://github.com/laravel/framework/pull/14188) ([#14389](https://github.com/laravel/framework/pull/14389)) -- Fixed `median()` issue when collection is out of order ([#14381](https://github.com/laravel/framework/pull/14381)) - - -## v5.2.40 (2016-07-19) - -### Added -- Added `--tags` option to `cache:clear` command ([#13927](https://github.com/laravel/framework/pull/13927)) -- Added `scopes()` method to Eloquent query builder ([#14049](https://github.com/laravel/framework/pull/14049)) -- Added `hasAny()` method to `MessageBag` ([#14151](https://github.com/laravel/framework/pull/14151)) -- Allowing passing along transmission options to SparkPost ([#14166](https://github.com/laravel/framework/pull/14166)) -- Added `Filesystem::moveDirectory()` ([#14198](https://github.com/laravel/framework/pull/14198)) -- Added `increment()` and `decrement()` methods to session store ([#14196](https://github.com/laravel/framework/pull/14196)) -- Added `pipe()` method to `Collection` ([#13899](https://github.com/laravel/framework/pull/13899)) -- Added additional PostgreSQL operators ([#14224](https://github.com/laravel/framework/pull/14224)) -- Support `::` expressions in Blade directive names ([#14265](https://github.com/laravel/framework/pull/14265)) -- Added `median()` and `mode()` methods to collections ([#14305](https://github.com/laravel/framework/pull/14305)) -- Add `tightenco/collect` to Composer `replace` list ([#14118](https://github.com/laravel/framework/pull/14118), [#14127](https://github.com/laravel/framework/pull/14127)) - -### Changed -- Don't release jobs that have been reserved too long ([#13833](https://github.com/laravel/framework/pull/13833)) -- Throw `Exception` if `Queue` has no encrypter ([#14038](https://github.com/laravel/framework/pull/14038)) -- Cast `unique` validation rule `id` to integer ([#14076](https://github.com/laravel/framework/pull/14076)) -- Ensure database transaction count is not negative ([#14085](https://github.com/laravel/framework/pull/14085)) -- Use `session.lifetime` for CSRF cookie ([#14080](https://github.com/laravel/framework/pull/14080)) -- Allow the `shuffle()` method to be seeded ([#14099](https://github.com/laravel/framework/pull/14099)) -- Allow passing of multiple keys to `MessageBag::has()` ([a0cd0ae](https://github.com/laravel/framework/commit/a0cd0aea9a475f76baf968ef2f53aeb71fcda4c0)) -- Allow model connection in `newFromBuilder()` to be overridden ([#14194](https://github.com/laravel/framework/pull/14194)) -- Only load pagination results if `$total` is greater than zero ([#14188](https://github.com/laravel/framework/pull/14188)) -- Accept fallback parameter in `UrlGenerator::previous` ([#14207](https://github.com/laravel/framework/pull/14207)) -- Only do `use` call if `database` is not empty ([#14225](https://github.com/laravel/framework/pull/14225)) -- Removed unnecessary nesting in the `Macroable` trait ([#14222](https://github.com/laravel/framework/pull/14222)) -- Refactored `DatabaseQueue::getNextAvailableJob()` ([cffcd34](https://github.com/laravel/framework/commit/cffcd347901617b19e8eca05be55cda280e0d262)) -- Look for `getUrl()` method on Filesystem adapter before throwing exception ([#14246](https://github.com/laravel/framework/pull/14246)) -- Make `seeIsSelected()` work with `<option>` elements without `value` attributes ([#14279](https://github.com/laravel/framework/pull/14279)) -- Improved performance of `Filesystem::sharedGet()` ([#14319](https://github.com/laravel/framework/pull/14319)) -- Throw exception if view cache path is empty ([#14291](https://github.com/laravel/framework/pull/14291)) -- Changes several validation methods return type from integers to booleans ([#14373](https://github.com/laravel/framework/pull/14373)) -- Remove files from input in `withInput()` method ([85249be](https://github.com/laravel/framework/commit/85249beed1e4512d71f7ae52474b9a59a80381d2)) - -### Fixed -- Require file instance for `dimensions` validation rule ([#14025](https://github.com/laravel/framework/pull/14025)) -- Fixes for SQL Server `processInsertGetId()` with ODBC ([#14121](https://github.com/laravel/framework/pull/14121)) -- Fixed PostgreSQL `processInsertGetId()` with `PDO::FETCH_CLASS` ([#14115](https://github.com/laravel/framework/pull/14115)) -- Fixed `PDO::FETCH_CLASS` support in `Connection::cursor()` ([#14052](https://github.com/laravel/framework/pull/14052)) -- Fixed eager loading of multi-level `morphTo` relationships ([#14190](https://github.com/laravel/framework/pull/14190)) -- Fixed MySQL multiple-table DELETE ([#14179](https://github.com/laravel/framework/pull/14179)) -- Always cast `vendor:publish` tags to array ([#14228](https://github.com/laravel/framework/pull/14228)) -- Fixed translation capitalization when replacements are a numerical array ([#14249](https://github.com/laravel/framework/pull/14249)) -- Fixed double `urldecode()` on route parameters ([#14370](https://github.com/laravel/framework/pull/14370)) - -### Removed -- Remove method overwrites in `PostgresGrammar` ([#14372](https://github.com/laravel/framework/pull/14372)) - - -## v5.2.39 (2016-06-17) - -### Added -- Added `without()` method to Eloquent query builder ([#14031](https://github.com/laravel/framework/pull/14031)) -- Added `keyType` property Eloquent models to set key type cast ([#13985](https://github.com/laravel/framework/pull/13985)) -- Added support for mail transport `StreamOptions` ([#13925](https://github.com/laravel/framework/pull/13925)) -- Added `validationData()` method to `FormRequest` ([#13914](https://github.com/laravel/framework/pull/13914)) - -### Changed -- Only `set names` for MySQL connections if `charset` is set in config ([#13930](https://github.com/laravel/framework/pull/13930)) -- Support recursive container alias resolution ([#13976](https://github.com/laravel/framework/pull/13976)) -- Use late static binding in `PasswordBroker` ([#13975](https://github.com/laravel/framework/pull/13975)) -- Make sure Ajax requests are not Pjax requests in `FormRequest` ([#14024](https://github.com/laravel/framework/pull/14024)) -- Set existence state of expired database sessions, instead of deleting them ([53c0440](https://github.com/laravel/framework/commit/53c04406baa5f63bbb41127f40afee0a0facadd1)) -- Release Beanstalkd jobs before burying them ([#13963](https://github.com/laravel/framework/pull/13963)) - -### Fixed -- Use `getIncrementing()` method instead of the `$incrementing` attribute ([#14005](https://github.com/laravel/framework/pull/14005)) -- Fixed fatal error when `services.json` is empty ([#14030](https://github.com/laravel/framework/pull/14030)) - - -## v5.2.38 (2016-06-13) - -### Changed -- Convert multiple `Model::fresh()` arguments to array before passing to `with()` ([#13950](https://github.com/laravel/framework/pull/13950)) -- Iterate only through files that contain a namespace in `app:name` command. ([#13961](https://github.com/laravel/framework/pull/13961)) - -### Fixed -- Close swift mailer connection after sending mail ([#13583](https://github.com/laravel/framework/pull/13583)) -- Prevent possible key overlap in `Str::snake` cache ([#13943](https://github.com/laravel/framework/pull/13943)) -- Fixed issue when eager loading chained `MorphTo` relationships ([#13967](https://github.com/laravel/framework/pull/13967)) -- Delete database session record if it's expired ([09b09eb](https://github.com/laravel/framework/commit/09b09ebad480940f2b49f96bbfbea0647783025e)) - - -## v5.2.37 (2016-06-10) - -### Added -- Added `hasArgument()` and `hasOption()` methods to `Command` class ([#13919](https://github.com/laravel/framework/pull/13919)) -- Added `$failedId` property to `JobFailed` event ([#13920](https://github.com/laravel/framework/pull/13920)) - -### Fixed -- Fixed session expiration on several drivers ([0831312](https://github.com/laravel/framework/commit/0831312aec47d904a65039e07574f41ab7492418)) - - -## v5.2.36 (2016-06-06) - -### Added -- Allow passing along options to the S3 client ([#13791](https://github.com/laravel/framework/pull/13791)) -- Allow nested `WHERE` clauses in `whereHas()` queries ([#13794](https://github.com/laravel/framework/pull/13794)) -- Support `DateTime` instances in `Before`/`After` date validation ([#13844](https://github.com/laravel/framework/pull/13844)) -- Support queueing collections ([d159f02](https://github.com/laravel/framework/commit/d159f02fe8cb5310b90c73d416a684e4bf51785a)) - -### Changed -- Reverted SparkPost driver back to `email_rfc822` parameter for simplicity ([#13780](https://github.com/laravel/framework/pull/13780)) -- Simplified `Model::__isset()` ([8fb89c6](https://github.com/laravel/framework/commit/8fb89c61c24af905b0b9db4d645d68a2c4a133b9)) -- Set exception handler even on non-daemon `queue:work` calls ([d5bbda9](https://github.com/laravel/framework/commit/d5bbda95a6435fa8cb38b8b640440b38de6b7f83)) -- Show handler class names in `queue:work` console output ([4d7eb59](https://github.com/laravel/framework/commit/4d7eb59f9813723bab00b4e42ce9885b54e65778)) -- Use queue events to update the console output of `queue:work` ([ace7f04](https://github.com/laravel/framework/commit/ace7f04ae579146ca3adf1c5992256c50ddc05a8)) -- Made `ResetsPasswords` trait easier to customize ([#13818](https://github.com/laravel/framework/pull/13818)) -- Refactored Eloquent relations and scopes ([#13824](https://github.com/laravel/framework/pull/13824), [#13884](https://github.com/laravel/framework/pull/13884), [#13894](https://github.com/laravel/framework/pull/13894)) -- Respected `session.http_only` option in `StartSession` middleware ([#13825](https://github.com/laravel/framework/pull/13825)) -- Don't return in `ApcStore::forever()` ([#13871](https://github.com/laravel/framework/pull/13871)) -- Allow Redis key expiration to be lower than one minute ([#13810](https://github.com/laravel/framework/pull/13810)) - -### Fixed -- Fixed `morphTo` relations across database connections ([#13784](https://github.com/laravel/framework/pull/13784)) -- Fixed `morphTo` relations without soft deletes ([13806](https://github.com/laravel/framework/pull/13806)) -- Fixed edge case on `morphTo` relations macro call that only exists on the related model ([#13828](https://github.com/laravel/framework/pull/13828)) -- Fixed formatting of `updatedAt` timestamp when calling `touch()` on `BelongsToMany` relation ([#13799](https://github.com/laravel/framework/pull/13799)) -- Don't get `$id` from Recaller in `Auth::id()` ([#13769](https://github.com/laravel/framework/pull/13769)) -- Fixed `AuthorizesResources` trait ([25443e3](https://github.com/laravel/framework/commit/25443e3e218cce1121f546b596dd70b5fd2fb619)) - -### Removed -- Removed unused `ArrayStore::putMultiple()` method ([#13840](https://github.com/laravel/framework/pull/13840)) - - -## v5.2.35 (2016-05-30) - -### Added -- Added failed login event ([#13761](https://github.com/laravel/framework/pull/13761)) - -### Changed -- Always cast `FileStore::expiration()` return value to integer ([#13708](https://github.com/laravel/framework/pull/13708)) -- Simplified `Container::isCallableWithAtSign()` ([#13757](https://github.com/laravel/framework/pull/13757)) -- Pass key to the `Collection::keyBy()` callback ([#13766](https://github.com/laravel/framework/pull/13766)) -- Support unlimited log files by setting `app.log_max_files` to `0` ([#13776](https://github.com/laravel/framework/pull/13776)) -- Wathan-ize `MorphTo::getEagerLoadsForInstance()` ([#13741](https://github.com/laravel/framework/pull/13741), [#13777](https://github.com/laravel/framework/pull/13777)) - -### Fixed -- Fixed MySQL JSON boolean binding update grammar ([38acdd8](https://github.com/laravel/framework/commit/38acdd807faec4b85fd47051341ccaf666499551)) -- Fixed loading of nested polymorphic relationships ([#13737](https://github.com/laravel/framework/pull/13737)) -- Fixed early return in `AuthManager::shouldUse()` ([5b88244](https://github.com/laravel/framework/commit/5b88244c0afd5febe9f54e8544b0870b55ef6cfd)) -- Fixed the remaining attempts calculation in `ThrottleRequests` ([#13756](https://github.com/laravel/framework/pull/13756), [#13759](https://github.com/laravel/framework/pull/13759)) -- Fixed strict `TypeError` in `AbstractPaginator::url()` ([#13758](https://github.com/laravel/framework/pull/13758)) - -## v5.2.34 (2016-05-26) - -### Added -- Added correct MySQL JSON boolean handling and updating grammar ([#13242](https://github.com/laravel/framework/pull/13242)) -- Added `stream` option to mail `TransportManager` ([#13715](https://github.com/laravel/framework/pull/13715)) -- Added `when()` method to eloquent query builder ([#13726](https://github.com/laravel/framework/pull/13726)) - -### Changed -- Catch exceptions in `Worker::pop()` to prevent log spam ([#13688](https://github.com/laravel/framework/pull/13688)) -- Use write connection when validating uniqueness ([#13718](https://github.com/laravel/framework/pull/13718)) -- Use `withException()` method in `Handler::toIlluminateResponse()` ([#13712](https://github.com/laravel/framework/pull/13712)) -- Apply constraints to `morphTo` relationships when using eager loading ([#13724](https://github.com/laravel/framework/pull/13724)) -- Use SETs rather than LISTs for storing Redis cache key references ([#13731](https://github.com/laravel/framework/pull/13731)) - -### Fixed -- Map `destroy` instead of `delete` in `AuthorizesResources` ([#13716](https://github.com/laravel/framework/pull/13716)) -- Reverted [#13519](https://github.com/laravel/framework/pull/13519) ([#13733](https://github.com/laravel/framework/pull/13733)) - - -## v5.2.33 (2016-05-25) - -### Added -- Allow query results to be traversed using a cursor ([#13030](https://github.com/laravel/framework/pull/13030)) -- Added support for log levels ([#13513](https://github.com/laravel/framework/pull/13513)) -- Added `inRandomOrder()` method to query builder ([#13642](https://github.com/laravel/framework/pull/13642)) -- Added support for custom connection in `PasswordBrokerManager` ([#13646](https://github.com/laravel/framework/pull/13646)) -- Allow connection timeouts in `TransportManager` ([#13621](https://github.com/laravel/framework/pull/13621)) -- Added missing `$test` argument to `UploadedFile` ([#13656](https://github.com/laravel/framework/pull/13656)) -- Added `authenticate()` method to guards ([#13651](https://github.com/laravel/framework/pull/13651)) - -### Changed -- Use locking to migrate stale jobs ([26a24d6](https://github.com/laravel/framework/commit/26a24d61ced4c5833eba6572d585af90b22fcdb7)) -- Avoid `chunkById` duplicating `orders` clause with the same column ([#13604](https://github.com/laravel/framework/pull/13604)) -- Fire `RouteMatched` event on `route:list` command ([#13474](https://github.com/laravel/framework/pull/13474)) -- Set user resolver for request in `AuthManager::shouldUse()` ([bf5303f](https://github.com/laravel/framework/commit/bf5303fdc919d9d560df128b92a1891dc64ea488)) -- Always execute `use` call, unless database is empty ([#13701](https://github.com/laravel/framework/pull/13701), [ef770ed](https://github.com/laravel/framework/commit/ef770edb08f3540aefffd916ae6ef5c8db58f0af)) -- Allow `elixir()` `$buildDirectory` to be `null`. ([#13661](https://github.com/laravel/framework/pull/13661)) -- Simplified calling `Model::replicate()` with `$except` argument ([#13676](https://github.com/laravel/framework/pull/13676)) -- Allow auth events to be serialized ([#13704](https://github.com/laravel/framework/pull/13704)) -- Added `for` and `id` attributes to auth scaffold ([#13689](https://github.com/laravel/framework/pull/13689)) -- Acquire lock before deleting reserved job ([4b502dc](https://github.com/laravel/framework/commit/4b502dc6eecd80efad01e845469b9a2bac26dae0#diff-b05083dc38b4e45d38d28c676abbad83)) - -### Fixed -- Prefix timestamps when updating many-to-many relationships ([#13519](https://github.com/laravel/framework/pull/13519)) -- Fixed missing wheres defined on the relation when creating the subquery for a relation count ([#13612](https://github.com/laravel/framework/pull/13612)) -- Fixed `Model::makeVisible()` when `$visible` property is not empty ([#13625](https://github.com/laravel/framework/pull/13625)) -- Fixed PostgreSQL's `Schema::hasTable()` ([#13008](https://github.com/laravel/framework/pull/13008)) -- Fixed `url` validation rule when missing trailing slash ([#13700](https://github.com/laravel/framework/pull/13700)) - - -## v5.2.32 (2016-05-17) - -### Added -- Allow user to enable/disable foreign key checks dynamically ([#13333](https://github.com/laravel/framework/pull/13333)) -- Added `file` validation rule ([#13371](https://github.com/laravel/framework/pull/13371)) -- Added `guestMiddleware()` method to get guest middleware with guard parameter ([#13384](https://github.com/laravel/framework/pull/13384)) -- Added `Pivot::fromRawAttributes()` to create a new pivot model from raw values returned from a query ([f356419](https://github.com/laravel/framework/commit/f356419fa6f6b6fbc3322ca587b0bc1e075ba8d2)) -- Added `Builder::withCount()` to add a relationship subquery count ([#13414](https://github.com/laravel/framework/pull/13414)) -- Support `reply_to` field when using SparkPost ([#13410](https://github.com/laravel/framework/pull/13410)) -- Added validation rule for image dimensions ([#13428](https://github.com/laravel/framework/pull/13428)) -- Added "Generated Columns" support to MySQL grammar ([#13430](https://github.com/laravel/framework/pull/13430)) -- Added `Response::throwResponse()` ([#13473](https://github.com/laravel/framework/pull/13473)) -- Added `page` parameter to the `simplePaginate()` method ([#13502](https://github.com/laravel/framework/pull/13502)) -- Added `whereColumn()` method to Query Builder ([#13549](https://github.com/laravel/framework/pull/13549)) -- Allow `File::allFiles()` to show hidden dot files ([#13555](https://github.com/laravel/framework/pull/13555)) - -### Changed -- Return `null` instead of `0` for a default `BelongsTo` key ([#13378](https://github.com/laravel/framework/pull/13378)) -- Avoid useless logical operation ([#13397](https://github.com/laravel/framework/pull/13397)) -- Stop using `{!! !!}` for `csrf_field()` ([#13398](https://github.com/laravel/framework/pull/13398)) -- Improvements for `SessionGuard` methods `loginUsingId()` and `onceUsingId()` ([#13393](https://github.com/laravel/framework/pull/13393)) -- Added Work-around due to lack of `lastInsertId()` for ODBC for MSSQL ([#13423](https://github.com/laravel/framework/pull/13423)) -- Ensure `MigrationCreator::create()` receives `$create` as boolean ([#13439](https://github.com/laravel/framework/pull/13439)) -- Allow custom validators to be called with out function name ([#13444](https://github.com/laravel/framework/pull/13444)) -- Moved the `payload` column of jobs table to the end ([#13469](https://github.com/laravel/framework/pull/13469)) -- Stabilized table aliases for self joins by adding count ([#13401](https://github.com/laravel/framework/pull/13401)) -- Account for `__isset` changes in PHP 7 ([#13509](https://github.com/laravel/framework/pull/13509)) -- Bring back support for `Carbon` instances to `before` and `after` validators ([#13494](https://github.com/laravel/framework/pull/13494)) -- Allow method chaining for `MakesHttpRequest` trait ([#13529](https://github.com/laravel/framework/pull/13529)) -- Allow `Request::intersect()` to accept argument list ([#13515](https://github.com/laravel/framework/pull/13515)) - -### Fixed -- Accept `!=` and `<>` as operators while value is `null` ([#13370](https://github.com/laravel/framework/pull/13370)) -- Fixed SparkPost BCC issue ([#13361](https://github.com/laravel/framework/pull/13361)) -- Fixed fatal error with optional `morphTo` relationship ([#13360](https://github.com/laravel/framework/pull/13360)) -- Fixed using `onlyTrashed()` and `withTrashed()` with `whereHas()` ([#13396](https://github.com/laravel/framework/pull/13396)) -- Fixed automatic scope nesting ([#13413](https://github.com/laravel/framework/pull/13413)) -- Fixed scheduler issue when using `user()` and `withoutOverlapping()` combined ([#13412](https://github.com/laravel/framework/pull/13412)) -- Fixed SqlServer grammar issue when table name is equal to a reserved keyword ([#13458](https://github.com/laravel/framework/pull/13458)) -- Fixed replacing route default parameters ([#13514](https://github.com/laravel/framework/pull/13514)) -- Fixed missing model attribute on `ModelNotFoundException` ([#13537](https://github.com/laravel/framework/pull/13537)) -- Decrement transaction count when `beginTransaction()` errors ([#13551](https://github.com/laravel/framework/pull/13551)) -- Fixed `seeJson()` issue when comparing two equal arrays ([#13531](https://github.com/laravel/framework/pull/13531)) -- Fixed a Scheduler issue where would no longer run in background ([#12628](https://github.com/laravel/framework/issues/12628)) -- Fixed sending attachments with SparkPost ([#13577](https://github.com/laravel/framework/pull/13577)) - - -## v5.2.31 (2016-04-27) - -### Added -- Added missing suggested dependency `SuperClosure` ([09a793f](https://git.io/vwZx4)) -- Added ODBC connection support for SQL Server ([#13298](https://github.com/laravel/framework/pull/13298)) -- Added `Request::hasHeader()` method ([#13271](https://github.com/laravel/framework/pull/13271)) -- Added `@elsecan` and `@elsecannot` Blade directives ([#13256](https://github.com/laravel/framework/pull/13256)) -- Support booleans in `required_if` Validator rule ([#13327](https://github.com/laravel/framework/pull/13327)) - -### Changed -- Simplified `Translator::parseLocale()` method ([#13244](https://github.com/laravel/framework/pull/13244)) -- Simplified `Builder::shouldRunExistsQuery()` method ([#13321](https://github.com/laravel/framework/pull/13321)) -- Use `Gate` contract instead of Facade ([#13260](https://github.com/laravel/framework/pull/13260)) -- Return result in `SoftDeletes::forceDelete()` ([#13272](https://github.com/laravel/framework/pull/13272)) - -### Fixed -- Fixed BCC for SparkPost ([#13237](https://github.com/laravel/framework/pull/13237)) -- Use Carbon for everything time related in `DatabaseTokenRepository` ([#13234](https://github.com/laravel/framework/pull/13234)) -- Fixed an issue with `data_set()` affecting the Validator ([#13224](https://github.com/laravel/framework/pull/13224)) -- Fixed setting nested namespaces with `app:name` command ([#13208](https://github.com/laravel/framework/pull/13208)) -- Decode base64 encoded keys before using it in `PasswordBrokerManager` ([#13270](https://github.com/laravel/framework/pull/13270)) -- Prevented race condition in `RateLimiter` ([#13283](https://github.com/laravel/framework/pull/13283)) -- Use `DIRECTORY_SEPARATOR` to create path for migrations ([#13254](https://github.com/laravel/framework/pull/13254)) -- Fixed adding implicit rules via `sometimes()` method ([#12976](https://github.com/laravel/framework/pull/12976)) -- Fixed `Schema::hasTable()` when using PostgreSQL ([#13008](https://github.com/laravel/framework/pull/13008)) -- Allow `seeAuthenticatedAs()` to be called with any user object ([#13308](https://github.com/laravel/framework/pull/13308)) - -### Removed -- Removed unused base64 decoding from `Encrypter` ([#13291](https://github.com/laravel/framework/pull/13291)) - - -## v5.2.30 (2016-04-19) - -### Added -- Added messages and custom attributes to the password reset validation ([#12997](https://github.com/laravel/framework/pull/12997)) -- Added `Before` and `After` dependent rules array ([#13025](https://github.com/laravel/framework/pull/13025)) -- Exposed token methods to user in password broker ([#13054](https://github.com/laravel/framework/pull/13054)) -- Added array support on `Cache::has()` ([#13028](https://github.com/laravel/framework/pull/13028)) -- Allow objects to be passed as pipes ([#13024](https://github.com/laravel/framework/pull/13024)) -- Adding alias for `FailedJobProviderInterface` ([#13088](https://github.com/laravel/framework/pull/13088)) -- Allow console commands registering from `Kernel` class ([#13097](https://github.com/laravel/framework/pull/13097)) -- Added the ability to get routes keyed by method ([#13146](https://github.com/laravel/framework/pull/13146)) -- Added PostgreSQL specific operators for `jsonb` type ([#13161](https://github.com/laravel/framework/pull/13161)) -- Added `makeHidden()` method to the Eloquent collection ([#13152](https://github.com/laravel/framework/pull/13152)) -- Added `intersect()` method to `Request` ([#13167](https://github.com/laravel/framework/pull/13167)) -- Allow disabling of model observers in tests ([#13178](https://github.com/laravel/framework/pull/13178)) -- Allow `ON` clauses on cross joins ([#13159](https://github.com/laravel/framework/pull/13159)) - -### Changed -- Use relation setter when setting relations ([#13001](https://github.com/laravel/framework/pull/13001)) -- Use `isEmpty()` to check for empty message bag in `Validator::passes()` ([#13014](https://github.com/laravel/framework/pull/13014)) -- Refresh `remember_token` when resetting password ([#13016](https://github.com/laravel/framework/pull/13016)) -- Use multibyte string functions in `Str` class ([#12953](https://github.com/laravel/framework/pull/12953)) -- Use CloudFlare CDN and use SRI checking for assets ([#13044](https://github.com/laravel/framework/pull/13044)) -- Enabling array on method has() ([#13028](https://github.com/laravel/framework/pull/13028)) -- Allow unix timestamps to be numeric in `Validator` ([da62677](https://git.io/vVi3M)) -- Reverted forcing middleware uniqueness ([#13075](https://github.com/laravel/framework/pull/13075)) -- Forget keys that contain periods ([#13121](https://github.com/laravel/framework/pull/13121)) -- Don't limit column selection while chunking by id ([#13137](https://github.com/laravel/framework/pull/13137)) -- Prefix table name on `getColumnType()` call ([#13136](https://github.com/laravel/framework/pull/13136)) -- Moved ability map in `AuthorizesResources` trait to a method ([#13214](https://github.com/laravel/framework/pull/13214)) -- Make sure `unguarded()` does not change state on exception ([#13186](https://github.com/laravel/framework/pull/13186)) -- Return `$this` in `InteractWithPages::within()` to allow method chaining ([13200](https://github.com/laravel/framework/pull/13200)) - -### Fixed -- Fixed a empty value case with `Arr:dot()` ([#13009](https://github.com/laravel/framework/pull/13009)) -- Fixed a Scheduler issues on Windows ([#13004](https://github.com/laravel/framework/issues/13004)) -- Prevent crashes with bad `Accept` headers ([#13039](https://github.com/laravel/framework/pull/13039), [#13059](https://github.com/laravel/framework/pull/13059)) -- Fixed explicit depending rules when the explicit keys are non-numeric ([#13058](https://github.com/laravel/framework/pull/13058)) -- Fixed an issue with fluent routes with `uses()` ([#13076](https://github.com/laravel/framework/pull/13076)) -- Prevent generating listeners for listeners ([3079175](https://git.io/vVNdg)) - -### Removed -- Removed unused parameter call in `Filesystem::exists()` ([#13102](https://github.com/laravel/framework/pull/13102)) -- Removed duplicate "[y/N]" from confirmable console commands ([#13203](https://github.com/laravel/framework/pull/13203)) -- Removed unused parameter in `route()` helper ([#13206](https://github.com/laravel/framework/pull/13206)) - - -## v5.2.29 (2016-04-02) - -### Fixed -- Fixed `Arr::get()` when given array is empty ([#12975](https://github.com/laravel/framework/pull/12975)) -- Add backticks around JSON selector field names in PostgreSQL query builder ([#12978](https://github.com/laravel/framework/pull/12978)) -- Reverted #12899 ([#12991](https://github.com/laravel/framework/pull/12991)) - - -## v5.2.28 (2016-04-01) - -### Added -- Added `Authorize` middleware ([#12913](https://git.io/vVLel), [0c48ba4](https://git.io/vVlib), [183f8e1](https://git.io/vVliF)) -- Added `UploadedFile::clientExtension()` ([75a7c01](https://git.io/vVO7I)) -- Added cross join support for query builder ([#12950](https://git.io/vVZqP)) -- Added `ThrottlesLogins::secondsRemainingOnLockout()` ([#12963](https://git.io/vVc1Z), [7c2c098](https://git.io/vVli9)) - -### Changed -- Optimized validation performance of large arrays ([#12651](https://git.io/v2xhi)) -- Never retry database query, if failed within transaction ([#12929](https://git.io/vVYUB)) -- Allow customization of email sent by `ResetsPasswords::sendResetLinkEmail()` ([#12935](https://git.io/vVYKE), [aae873e](https://git.io/vVliD)) -- Improved file system tests ([#12940](https://git.io/vVsTV), [#12949](https://git.io/vVGjP), [#12970](https://git.io/vVCBq)) -- Allowing merging an array of rules ([a5ea1aa](https://git.io/vVli1)) -- Consider implicit attributes while guessing column names in validator ([#12961](https://git.io/vVcgA), [a3827cf](https://git.io/vVliX)) -- Reverted [#12307](https://git.io/vgQeJ) ([#12928](https://git.io/vVqni)) - -### Fixed -- Fixed elixir manifest caching to detect different build paths ([#12920](https://git.io/vVtJR)) -- Fixed `Str::snake()` to work with UTF-8 strings ([#12923](https://git.io/vVtVp)) -- Trim the input name in the generator commands ([#12933](https://git.io/vVY4a)) -- Check for non-string values in validation rules ([#12973](https://git.io/vVWew)) -- Add backticks around JSON selector field names in MySQL query builder ([#12964](https://git.io/vVc9n)) -- Fixed terminable middleware assigned to controller ([#12899](https://git.io/vVTnt), [74b0636](https://git.io/vVliP)) - - -## v5.2.27 (2016-03-29) -### Added -- Allow ignoring an id using an array key in the `unique` validation rule ([#12612](https://git.io/v29rH)) -- Added `InteractsWithSession::assertSessionMissing()` ([#12860](https://git.io/vajXr)) -- Added `chunkById()` method to query builder for faster chunking of large sets of data ([#12861](https://git.io/vajSd)) -- Added Blade `@hasSection` directive to determine whether something can be yielded ([#12866](https://git.io/vVem5)) -- Allow optional query builder calls via `when()` method ([#12878](https://git.io/vVflh)) -- Added IP and MAC address column types ([#12884](https://git.io/vVJsj)) -- Added Collections `union` method for true unions of two collections ([#12910](https://git.io/vVIzh)) - -### Changed -- Allow array size validation of implicit attributes ([#12640](https://git.io/v2Nzl)) -- Separated logic of Blade `@push` and `@section` directives ([#12808](https://git.io/vaD8n)) -- Ensured that middleware is applied only once ([#12911](https://git.io/vVIr2)) - -### Fixed -- Reverted improvements to Redis cache tagging ([#12897](https://git.io/vVUD5)) -- Removed route group from `make:auth` stub ([#12903](https://git.io/vVkHI)) - - -## v5.2.26 (2016-03-25) -### Added -- Added support for Base64 encoded `Encrypter` keys ([370ae34](https://git.io/vapFX)) -- Added `EncryptionServiceProvider::getEncrypterForKeyAndCipher()` ([17ce4ed](https://git.io/vahbo)) -- Added `Application::environmentFilePath()` ([370ae34](https://git.io/vapFX)) - -### Fixed -- Fixed mock in `ValidationValidatorTest::testValidateMimetypes()` ([7f35988](https://git.io/vaxfB)) - - -## v5.2.25 (2016-03-24) -### Added -- Added bootstrap Composer scripts to avoid loading of config/compiled files ([#12827](https://git.io/va5ja)) - -### Changed -- Use `File::guessExtension()` instead of `UploadedFile::guessClientExtension()` ([87e6175](https://git.io/vaAxC)) - -### Fixed -- Fix an issue with explicit custom validation attributes ([#12822](https://git.io/vaQbD)) -- Fix an issue where a view would run the `BladeEngine` instead of the `PhpEngine` ([#12830](https://git.io/vad1X)) -- Prevent wrong auth driver from causing unexpected end of execution ([#12821](https://git.io/vajFq))
true
Other
laravel
framework
fca53f2a895c33c2884d8c5e6ad70a76de297e9d.json
remove old changelogs
CHANGELOG-5.3.md
@@ -1,583 +0,0 @@ -# Release Notes for 5.3.x - -## v5.3.30 (2017-01-26) - -### Added -- Added `read()` and `unread()` methods to `DatabaseNotification` ([#17243](https://github.com/laravel/framework/pull/17243)) - -### Changed -- Show seed output prior to running, instead of after ([#17318](https://github.com/laravel/framework/pull/17318)) -- Support starting slash in `elixir()` helper ([#17359](https://github.com/laravel/framework/pull/17359)) - -### Fixed -- Use regex in `KeyGenerateCommand` to match `APP_KEY` ([#17151](https://github.com/laravel/framework/pull/17151)) -- Fixed integrity constraints for database session driver ([#17301](https://github.com/laravel/framework/pull/17301)) - - -## v5.3.29 (2017-01-06) - -### Added -- Added `Blueprint::nullableMorphs()` ([#16879](https://github.com/laravel/framework/pull/16879)) -- Support `BaseCollection` in `BelongsToMany::sync()` ([#16882](https://github.com/laravel/framework/pull/16882)) -- Added `--model` flag to `make:controller` command ([#16787](https://github.com/laravel/framework/pull/16787)) -- Allow notifications to be broadcasted now instead of using the queue ([#16867](https://github.com/laravel/framework/pull/16867), [40f30f1](https://github.com/laravel/framework/commit/40f30f1a2131904eb4f6e6c456823e7b2cb726eb)) -- Support `redirectTo()` in `RedirectsUsers` ([#16896](https://github.com/laravel/framework/pull/16896)) -- Added `ArrayTransport` to mail component to store Swift messages in memory ([#16906](https://github.com/laravel/framework/pull/16906), [69d3d04](https://github.com/laravel/framework/commit/69d3d0463cf6bd114d2beecd8480556efb168678)) -- Added fallback to `SlackAttachment` notification ([#16912](https://github.com/laravel/framework/pull/16912)) -- Added `Macroable` trait to `RedirectResponse` ([#16929](https://github.com/laravel/framework/pull/16929)) -- Support namespaces when using `make:policy --model` ([#16981](https://github.com/laravel/framework/pull/16981)) -- Added `HourlyAt()` option for scheduled events ([#17168](https://github.com/laravel/framework/pull/17168)) - -### Changed -- Allow SparkPost transport transmission metadata to be set at runtime ([#16838](https://github.com/laravel/framework/pull/16838)) -- Pass keys to `Collection::unique()` callback ([#16883](https://github.com/laravel/framework/pull/16883)) -- Support calling `MailFake::send()` when `build()` has dependencies ([#16918](https://github.com/laravel/framework/pull/16918)) -- Changed `Mailable` properties visibility to public ([#16916](https://github.com/laravel/framework/pull/16916)) -- Bind `serve` command to `127.0.0.1` instead of `localhost` ([#16937](https://github.com/laravel/framework/pull/16937)) -- Added `old('remember')` call to `login.stub` ([#16944](https://github.com/laravel/framework/pull/16944)) -- Check for `db` before setting presence verifier in `ValidationServiceProvider` ([038840d](https://github.com/laravel/framework/commit/038840d477e606735f9179d97eeb20639450e8ae)) -- Make Eloquent's `getTimeZone()` method call adhere to `DateTimeInterface` ([#16955](https://github.com/laravel/framework/pull/16955)) -- Support customizable response in `SendsPasswordResetEmails` ([#16982](https://github.com/laravel/framework/pull/16982)) -- Stricter comparison when replacing URL for `LocalAdapter` ([#17097](https://github.com/laravel/framework/pull/17097)) -- Use `notification()` relationship in `HasDatabaseNotifications` ([#17093](https://github.com/laravel/framework/pull/17093)) -- Allow float value as expiration in Memcached cache store ([#17106](https://github.com/laravel/framework/pull/17106)) - -### Fixed -- Fixed a wildcard issue with `sometimes` validation rule ([#16826](https://github.com/laravel/framework/pull/16826)) -- Prevent error when SqlServer port is empty ([#16824](https://github.com/laravel/framework/pull/16824)) -- Reverted false-positive fix for `date_format` validation [#16692](https://github.com/laravel/framework/pull/16692) ([#16845](https://github.com/laravel/framework/pull/16845)) -- Fixed `withCount()` aliasing using multiple tables ([#16853](https://github.com/laravel/framework/pull/16853)) -- Fixed broken event interface listening ([#16877](https://github.com/laravel/framework/pull/16877)) -- Fixed empty model creation ([#16864](https://github.com/laravel/framework/pull/16864)) -- Fixed column overlapping on using `withCount()` on `BelongsToMany` ([#16895](https://github.com/laravel/framework/pull/16895)) -- Fixed `Unique::ignore()` issue ([#16948](https://github.com/laravel/framework/pull/16948)) -- Fixed logic in `ChannelManager::sendNow()` if `$channels` is `null` ([#17068](https://github.com/laravel/framework/pull/17068)) -- Fixed validating distinct for nested keys ([#17102](https://github.com/laravel/framework/pull/17102)) -- Fixed `HasManyThrough::updateOrCreate()` ([#17105](https://github.com/laravel/framework/pull/17105)) - -### Security -- Changed SwiftMailer version to `~5.4` ([#17131](https://github.com/laravel/framework/pull/17131)) - - -## v5.3.28 (2016-12-15) - -### Changed -- Refactored `ControllerMakeCommand` class ([59a1ce2](https://github.com/laravel/framework/commit/59a1ce21413221131aaf0086cd1eb7c887c701c0)) - -### Fixed -- Fixed implicit Router binding through IoC ([#16802](https://github.com/laravel/framework/pull/16802)) -- `Collection::min()` incorrectly excludes `0` when calculating minimum ([#16821](https://github.com/laravel/framework/pull/16821)) - - -## v5.3.27 (2016-12-15) - -### Added -- Added `Authenticatable::$rememberTokenName` ([#16617](https://github.com/laravel/framework/pull/16617), [38612c0](https://github.com/laravel/framework/commit/38612c0e88a48cca5744cc464a764b976f79a46d)) -- Added `Collection::partition()` method ([#16627](https://github.com/laravel/framework/pull/16627), [#16644](https://github.com/laravel/framework/pull/16644)) -- Added resource routes translations ([#16429](https://github.com/laravel/framework/pull/16429), [e91f04b](https://github.com/laravel/framework/commit/e91f04b52603194dbc90dbbaee730e171bee1449)) -- Allow `TokenGuard` API token to be sent through as input ([#16766](https://github.com/laravel/framework/pull/16766)) -- Added `Collection::isNotEmpty()` ([#16797](https://github.com/laravel/framework/pull/16797)) -- Added "evidence" to the list of uncountable words ([#16788](https://github.com/laravel/framework/pull/16788)) -- Added `reply_to` to mailer config ([#16810](https://github.com/laravel/framework/pull/16810), [dc2ce4f](https://github.com/laravel/framework/commit/dc2ce4f9efb831a304e1c2674aae1dfd819b9c56)) - -### Changed -- Added missing `$useReadPdo` argument to `Connection::selectOne()` ([#16625](https://github.com/laravel/framework/pull/16625)) -- Preload some files required by already listed files ([#16648](https://github.com/laravel/framework/pull/16648)) -- Clone query for chunking ([53f97a0](https://github.com/laravel/framework/commit/53f97a014da380dc85fb4b0d826475e562d78dcc), [32d0f16](https://github.com/laravel/framework/commit/32d0f164424ab5b4a2bff2ed927812ae49bd8051)) -- Return a regular `PDO` object if a persistent connection is requested ([#16702](https://github.com/laravel/framework/pull/16702), [6b413d5](https://github.com/laravel/framework/commit/6b413d5b416c1e0b629a3036e6c3ad84b3b76a6e)) -- Global `to` address now also applied for the `cc` and `bcc` options of an email ([#16705](https://github.com/laravel/framework/pull/16705)) -- Don't report exceptions inside queue worker signal handler ([#16738](https://github.com/laravel/framework/pull/16738)) -- Kill timed out queue worker process ([#16746](https://github.com/laravel/framework/pull/16746)) -- Removed unnecessary check in `ScheduleRunCommand::fire()` ([#16752](https://github.com/laravel/framework/pull/16752)) -- Only guess the ability's name if no fully qualified class name was given ([#16807](https://github.com/laravel/framework/pull/16807), [f79839e](https://github.com/laravel/framework/commit/f79839e4b72999a67d5503bbb8437547cab87236)) -- Remove falsy values from array in `min()` and `max()` on `Collection` ([e2d317e](https://github.com/laravel/framework/commit/e2d317efcebbdf6651d89100c0b5d80a925bb2f1)) - -### Fixed -- Added file existence check to `AppNameCommand::replaceIn()` to fix [#16575](https://github.com/laravel/framework/pull/16575) ([#16592](https://github.com/laravel/framework/pull/16592)) -- Check for `null` in `seeJsonStructure()` ([#16642](https://github.com/laravel/framework/pull/16642)) -- Reverted [#15264](https://github.com/laravel/framework/pull/15264) ([#16660](https://github.com/laravel/framework/pull/16660)) -- Fixed misleading credentials exception when `ExceptionHandler` is not bound in container ([#16666](https://github.com/laravel/framework/pull/16666)) -- Use `sync` as queue name for Sync Queues ([#16681](https://github.com/laravel/framework/pull/16681)) -- Fixed `storedAs()` and `virtualAs()` issue ([#16683](https://github.com/laravel/framework/pull/16683)) -- Fixed false-positive `date_format` validation ([#16692](https://github.com/laravel/framework/pull/16692)) -- Use translator `trans()` method in `Validator` ([#16778](https://github.com/laravel/framework/pull/16778)) -- Fixed runtime error in `RouteServiceProvider` when `Route` facade is not available ([#16775](https://github.com/laravel/framework/pull/16775)) - -### Removed -- Removed hard coded prose from scheduled task email subject ([#16790](https://github.com/laravel/framework/pull/16790)) - - -## v5.3.26 (2016-11-30) - -### Changed -- Replaced deprecated `DefaultFinder` class ([#16602](https://github.com/laravel/framework/pull/16602)) - -### Fixed -- Reverted [#16506](https://github.com/laravel/framework/pull/16506) ([#16607](https://github.com/laravel/framework/pull/16607)) - - -## v5.3.25 (2016-11-29) - -### Added -- Added `before_or_equal` and `after_or_equal` validation rules ([#16490](https://github.com/laravel/framework/pull/16490)) -- Added fluent builder for `SlackMessageAttachmentField` ([#16535](https://github.com/laravel/framework/pull/16535), [db4879a](https://github.com/laravel/framework/commit/db4879ae84a3a1959729ac2732ae42cfe377314c)) -- Added the possibility to set and get file permissions in `Filesystem` ([#16560](https://github.com/laravel/framework/pull/16560)) - -### Changed -- Added additional `keyType` check to avoid using an invalid type for eager load constraints ([#16452](https://github.com/laravel/framework/pull/16452)) -- Always debug Pusher in `PusherBroadcaster::broadcast()` ([#16493](https://github.com/laravel/framework/pull/16493)) -- Don't pluralize "metadata" ([#16518](https://github.com/laravel/framework/pull/16518)) -- Always pass a collection to `LengthAwarePaginator` from `paginate()` methods ([#16547](https://github.com/laravel/framework/pull/16547)) -- Avoid unexpected connection timeouts when flushing tagged caches on Redis ([#16568](https://github.com/laravel/framework/pull/16568)) -- Enabled unicode support to `NexmoSmsChannel` ([#16577](https://github.com/laravel/framework/pull/16577), [3001640](https://github.com/laravel/framework/commit/30016408a6911afba4aa7739d69948d13612ea06)) - -### Fixed -- Fixed view compilation bug when using " or " in strings ([#16506](https://github.com/laravel/framework/pull/16506)) - - -## v5.3.24 (2016-11-21) - -### Added -- Added `AuthenticateSession` middleware ([fc302a6](https://github.com/laravel/framework/commit/fc302a6667f9dcce53395d01d8e6ba752ea62955)) -- Support arrays in `HasOne::withDefault()` ([#16382](https://github.com/laravel/framework/pull/16382)) -- Define route basename for resources ([#16352](https://github.com/laravel/framework/pull/16352)) -- Added `$fallback` parameter to `Redirector::back()` ([#16426](https://github.com/laravel/framework/pull/16426)) -- Added support for footer and markdown in `SlackAttachment` ([#16451](https://github.com/laravel/framework/pull/16451)) -- Added password change feedback auth stubs ([#16461](https://github.com/laravel/framework/pull/16461)) -- Added `name` to default register route ([#16480](https://github.com/laravel/framework/pull/16480)) -- Added `ServiceProvider::loadRoutesFrom()` method ([#16483](https://github.com/laravel/framework/pull/16483)) - -### Changed -- Use `getKey()` instead of `$id` in `PusherBroadcaster` ([#16438](https://github.com/laravel/framework/pull/16438)) - -### Fixed -- Pass `PheanstalkJob` to Pheanstalk's `delete()` method ([#16415](https://github.com/laravel/framework/pull/16415)) -- Don't call PDO callback in `reconnectIfMissingConnection()` until it is needed ([#16422](https://github.com/laravel/framework/pull/16422)) -- Don't timeout queue if `--timeout` is set to `0` ([#16465](https://github.com/laravel/framework/pull/16465)) -- Respect `--force` option of `queue:work` in maintenance mode ([#16468](https://github.com/laravel/framework/pull/16468)) - - -## v5.3.23 (2016-11-14) - -### Added -- Added database slave failover ([#15553](https://github.com/laravel/framework/pull/15553), [ed28c7f](https://github.com/laravel/framework/commit/ed28c7fa11d3754d618606bf8fc2f00690cfff66)) -- Added `Arr::shuffle($array)` ([ed28c7f](https://github.com/laravel/framework/commit/ed28c7fa11d3754d618606bf8fc2f00690cfff66)) -- Added `prepareForValidation()` method to `FormRequests` ([#16238](https://github.com/laravel/framework/pull/16238)) -- Support SparkPost transports options to be set at runtime ([#16254](https://github.com/laravel/framework/pull/16254)) -- Support setting `$replyTo` for email notifications ([#16277](https://github.com/laravel/framework/pull/16277)) -- Support `url` configuration parameter to generate filesystem disk URL ([#16281](https://github.com/laravel/framework/pull/16281), [dcff158](https://github.com/laravel/framework/commit/dcff158c63093523eadffc34a9ba8c1f8d4e53c0)) -- Allow `SerializesModels` to restore models excluded by global scope ([#16301](https://github.com/laravel/framework/pull/16301)) -- Allow loading specific columns while eager-loading Eloquent relationships ([#16327](https://github.com/laravel/framework/pull/16327)) -- Allow Eloquent `HasOne` relationships to return a "default model" ([#16198](https://github.com/laravel/framework/pull/16198), [9b59f67](https://github.com/laravel/framework/commit/9b59f67daeb63bad11af9b70b4a35c6435240ff7)) -- Allow `SlackAttachment` color override ([#16360](https://github.com/laravel/framework/pull/16360)) -- Allow chaining factory calls to `define()` and `state()` ([#16389](https://github.com/laravel/framework/pull/16389)) - -### Changed -- Dried-up console parser and extract token parsing ([#16197](https://github.com/laravel/framework/pull/16197)) -- Support empty array for query builder `orders` property ([#16225](https://github.com/laravel/framework/pull/16225)) -- Properly handle filling JSON attributes on Eloquent models ([#16228](https://github.com/laravel/framework/pull/16228)) -- Use `forceReconnection()` method in `Mailer` ([#16298](https://github.com/laravel/framework/pull/16298)) -- Double-quote MySQL JSON expressions ([#16308](https://github.com/laravel/framework/pull/16308)) -- Moved login attempt code to separate method ([#16317](https://github.com/laravel/framework/pull/16317)) -- Escape the RegExp delimiter in `Validator::getExplicitKeys()` ([#16309](https://github.com/laravel/framework/pull/16309)) -- Use default Slack colors in `SlackMessage` ([#16345](https://github.com/laravel/framework/pull/16345)) -- Support presence channels names containing the words `private-` or `presence-` ([#16353](https://github.com/laravel/framework/pull/16353)) -- Fail test, instead of throwing an exception when `seeJson()` fails ([#16350](https://github.com/laravel/framework/pull/16350)) -- Call `sendPerformed()` for all mail transports ([#16366](https://github.com/laravel/framework/pull/16366)) -- Add `X-SES-Message-ID` header in `SesTransport::send()` ([#16366](https://github.com/laravel/framework/pull/16366)) -- Throw `BroadcastException` when `PusherBroadcaster::broadcast()` fails ([#16398](https://github.com/laravel/framework/pull/16398)) - -### Fixed -- Catch errors when handling a failed job ([#16212](https://github.com/laravel/framework/pull/16212)) -- Return array from `Translator::sortReplacements()` ([#16221](https://github.com/laravel/framework/pull/16221)) -- Don't use multi-byte functions in `UrlGenerator::to()` ([#16081](https://github.com/laravel/framework/pull/16081)) -- Support configuration files as symbolic links ([#16080](https://github.com/laravel/framework/pull/16080)) -- Fixed wrapping and escaping in SQL Server `dropIfExists()` ([#16279](https://github.com/laravel/framework/pull/16279)) -- Throw `ManuallyFailedException` if `InteractsWithQueue::fail()` is called manually ([#16318](https://github.com/laravel/framework/pull/16318), [a20fa97](https://github.com/laravel/framework/commit/a20fa97445be786f9f5f09e2e9b905a00064b2da)) -- Catch `Throwable` in timezone validation ([#16344](https://github.com/laravel/framework/pull/16344)) -- Fixed `Auth::onceUsingId()` by reversing the order of retrieving the id in `SessionGuard` ([#16373](https://github.com/laravel/framework/pull/16373)) -- Fixed bindings on update statements with advanced joins ([#16368](https://github.com/laravel/framework/pull/16368)) - - -## v5.3.22 (2016-11-01) - -### Added -- Added support for carbon-copy in mail notifications ([#16152](https://github.com/laravel/framework/pull/16152)) -- Added `-r` shortcut to `make:controller` command ([#16141](https://github.com/laravel/framework/pull/16141)) -- Added `HasDatabaseNotifications::readNotifications()` method ([#16164](https://github.com/laravel/framework/pull/16164)) -- Added `broadcastOn()` method to allow notifications to be broadcasted to custom channels ([#16170](https://github.com/laravel/framework/pull/16170)) - -### Changed -- Avoid extraneous database query when last `chunk()` is partial ([#16180](https://github.com/laravel/framework/pull/16180)) -- Return unique middleware stack from `Route::gatherMiddleware()` ([#16185](https://github.com/laravel/framework/pull/16185)) -- Return early when `Collection::chunk()` size zero or less ([#16206](https://github.com/laravel/framework/pull/16206), [46ebd7f](https://github.com/laravel/framework/commit/46ebd7fa1f35eeb37af891abfc611f7262c91c29)) - -### Fixed -- Bind `double` as `PDO::PARAM_INT` on MySQL connections ([#16069](https://github.com/laravel/framework/pull/16069)) - - -## v5.3.21 (2016-10-26) - -### Added -- Added `ResetsPasswords::validationErrorMessages()` method ([#16111](https://github.com/laravel/framework/pull/16111)) - -### Changed -- Use `toString()` instead of `(string)` on UUIDs for notification ids ([#16109](https://github.com/laravel/framework/pull/16109)) - -### Fixed -- Don't hydrate files in `Validator` ([#16105](https://github.com/laravel/framework/pull/16105)) - -### Removed -- Removed `-q` shortcut from `make:listener` command ([#16110](https://github.com/laravel/framework/pull/16110)) - - -## v5.3.20 (2016-10-25) - -### Added -- Added `--resource` (or `-r`) option to `make:model` command ([#15993](https://github.com/laravel/framework/pull/15993)) -- Support overwriting channel name for broadcast notifications ([#16018](https://github.com/laravel/framework/pull/16018), [4e30db5](https://github.com/laravel/framework/commit/4e30db5fbc556f7925130f9805f2dec47592719e)) -- Added `Macroable` trait to `Rule` ([#16028](https://github.com/laravel/framework/pull/16028)) -- Added `Session::remember()` helper ([#16041](https://github.com/laravel/framework/pull/16041)) -- Added option shorthands to `make:listener` command ([#16038](https://github.com/laravel/framework/pull/16038)) -- Added `RegistersUsers::registered()` method ([#16036](https://github.com/laravel/framework/pull/16036)) -- Added `ResetsPasswords::rules()` method ([#16060](https://github.com/laravel/framework/pull/16060)) -- Added `$page` parameter to `simplePaginate()` in `BelongsToMany` and `HasManyThrough` ([#16075](https://github.com/laravel/framework/pull/16075)) - -### Changed -- Catch `dns_get_record()` exceptions in `validateActiveUrl()` ([#15979](https://github.com/laravel/framework/pull/15979)) -- Allow reconnect during database transactions ([#15931](https://github.com/laravel/framework/pull/15931)) -- Use studly case for controller names generated by `make:model` command ([#15988](https://github.com/laravel/framework/pull/15988)) -- Support objects that are castable to strings in `Collection::keyBy()` ([#16001](https://github.com/laravel/framework/pull/16001)) -- Switched to using a static object to collect console application bootstrappers that need to run on Artisan starting ([#16012](https://github.com/laravel/framework/pull/16012)) -- Return unique middleware stack in `SortedMiddleware::sortMiddleware()` ([#16034](https://github.com/laravel/framework/pull/16034)) -- Allow methods inside `@foreach` and `@forelse` expressions ([#16087](https://github.com/laravel/framework/pull/16087)) -- Improved Scheduler parameter escaping ([#16088](https://github.com/laravel/framework/pull/16088)) - -### Fixed -- Fixed `session_write_close()` on PHP7 ([#15968](https://github.com/laravel/framework/pull/15968)) -- Fixed ambiguous id issues when restoring models with eager loaded / joined query ([#15983](https://github.com/laravel/framework/pull/15983)) -- Fixed integer and double support in `JsonExpression` ([#16068](https://github.com/laravel/framework/pull/16068)) -- Fixed UUIDs when queueing notifications ([18d26df](https://github.com/laravel/framework/commit/18d26df24f1f3b17bd20c7244d9b85d273138d79)) -- Fixed empty session issue when the session file is being accessed simultaneously ([#15998](https://github.com/laravel/framework/pull/15998)) - -### Removed -- Removed `Requests` import from controller stubs ([#16011](https://github.com/laravel/framework/pull/16011)) -- Removed unnecessary validation feedback for password confirmation field ([#16100](https://github.com/laravel/framework/pull/16100)) - - -## v5.3.19 (2016-10-17) - -### Added -- Added `--controller` (or `-c`) option to `make:model` command ([#15795](https://github.com/laravel/framework/pull/15795)) -- Added object based `dimensions` validation rule ([#15852](https://github.com/laravel/framework/pull/15852)) -- Added object based `in` and `not_in` validation rule ([#15923](https://github.com/laravel/framework/pull/15923), [#15951](https://github.com/laravel/framework/pull/15951), [336a807](https://github.com/laravel/framework/commit/336a807ee56de27adcb3f9d34b337300520568ac)) -- Added `clear-compiled` command success message ([#15868](https://github.com/laravel/framework/pull/15868)) -- Added `SlackMessage::http()` to specify additional `headers` or `proxy` options ([#15882](https://github.com/laravel/framework/pull/15882)) -- Added a name to the logout route ([#15889](https://github.com/laravel/framework/pull/15889)) -- Added "feedback" to `Pluralizer::uncountable()` ([#15895](https://github.com/laravel/framework/pull/15895)) -- Added `FormRequest::withValidator($validator)` hook ([#15918](https://github.com/laravel/framework/pull/15918), [bf8a36a](https://github.com/laravel/framework/commit/bf8a36ac3df03a2c889cbc9aa535e5cf9ff48777)) -- Add missing `ClosureCommand::$callback` property ([#15956](https://github.com/laravel/framework/pull/15956)) - -### Changed -- Total rewrite of middleware sorting logic ([6b69fb8](https://github.com/laravel/framework/commit/6b69fb81fc7c36e9e129a0ce2e56a824cc907859), [9cc5334](https://github.com/laravel/framework/commit/9cc5334d00824441ccce5e9d2979723e41b2fc05)) -- Wrap PostgreSQL database schema changes in a transaction ([#15780](https://github.com/laravel/framework/pull/15780), [#15962](https://github.com/laravel/framework/pull/15962)) -- Expect `array` on `Validator::explodeRules()` ([#15838](https://github.com/laravel/framework/pull/15838)) -- Return `null` if an empty key was passed to `Model::getAttribute()` ([#15874](https://github.com/laravel/framework/pull/15874)) -- Support multiple `LengthAwarePaginator` on a single page with different `$pageName` properties ([#15870](https://github.com/laravel/framework/pull/15870)) -- Pass ids to `ModelNotFoundException` ([#15896](https://github.com/laravel/framework/pull/15896)) -- Improved database transaction logic ([7a0832b](https://github.com/laravel/framework/commit/7a0832bb44057f1060c96c2e01652aae7c583323)) -- Use `name()` method instead of `getName()` ([#15955](https://github.com/laravel/framework/pull/15955)) -- Minor syntax improvements ([#15953](https://github.com/laravel/framework/pull/15953), [#15954](https://github.com/laravel/framework/pull/15954), [4e9c9fd](https://github.com/laravel/framework/commit/4e9c9fd98b4dff71f449764e87c52577e2634587)) - -### Fixed -- Fixed `migrate:status` using another connection ([#15824](https://github.com/laravel/framework/pull/15824)) -- Fixed calling closure based commands ([#15873](https://github.com/laravel/framework/pull/15873)) -- Split `SimpleMessage` by all possible EOLs ([#15921](https://github.com/laravel/framework/pull/15921)) -- Ensure that the search and the creation/update of Eloquent instances happens on the same connection ([#15958](https://github.com/laravel/framework/pull/15958)) - - -## v5.3.18 (2016-10-07) - -### Added -- Added object based `unique` and `exists` validation rules ([#15809](https://github.com/laravel/framework/pull/15809)) - -### Changed -- Added primary key to `migrations` table ([#15770](https://github.com/laravel/framework/pull/15770)) -- Simplified `route:list` command code ([#15802](https://github.com/laravel/framework/pull/15802), [cb2eb79](https://github.com/laravel/framework/commit/cb2eb7963b29aafe63c87e1d2b1e633ecd0c25b0)) - -### Fixed -- Use eloquent collection for proper serialization of [#15789](https://github.com/laravel/framework/pull/15789) ([1c78e00](https://github.com/laravel/framework/commit/1c78e00ef3815e7b0bf710037b52faefb464e97d)) -- Reverted [#15722](https://github.com/laravel/framework/pull/15722) ([#15813](https://github.com/laravel/framework/pull/15813)) - - -## v5.3.17 (2016-10-06) - -### Added -- Added model factory "states" ([#14241](https://github.com/laravel/framework/pull/14241)) - -### Changed -- `Collection::only()` now returns all items if `$keys` is `null` ([#15695](https://github.com/laravel/framework/pull/15695)) - -### Fixed -- Added workaround for Memcached 3 on PHP7 when using `many()` ([#15739](https://github.com/laravel/framework/pull/15739)) -- Fixed bug in `Validator::hydrateFiles()` when removing the files array ([#15663](https://github.com/laravel/framework/pull/15663)) -- Fixed model factory bug when `$amount` is zero ([#15764](https://github.com/laravel/framework/pull/15764), [#15779](https://github.com/laravel/framework/pull/15779)) -- Prevent multiple notifications getting sent out when using the `Notification` facade ([#15789](https://github.com/laravel/framework/pull/15789)) - - -## v5.3.16 (2016-10-04) - -### Added -- Added "furniture" and "wheat" to `Pluralizer::uncountable()` ([#15703](https://github.com/laravel/framework/pull/15703)) -- Allow passing `$keys` to `Model::getAttributes()` ([#15722](https://github.com/laravel/framework/pull/15722)) -- Added database blueprint for soft deletes with timezone ([#15737](https://github.com/laravel/framework/pull/15737)) -- Added given guards to `AuthenticationException` ([#15745](https://github.com/laravel/framework/pull/15745)) -- Added [Seneca](https://en.wikipedia.org/wiki/Seneca_the_Younger) quote to `Inspire` command ([#15747](https://github.com/laravel/framework/pull/15747)) -- Added `div#app` to auth layout stub ([08bcbdb](https://github.com/laravel/framework/commit/08bcbdbe70b69330943cc45625b160877b37341a)) -- Added PHP 7.1 timeout handler to queue worker ([cc9e1f0](https://github.com/laravel/framework/commit/cc9e1f09683fd23cf8e973e84bf310f7ce1304a2)) - -### Changed -- Changed visibility of `Route::getController()` to public ([#15678](https://github.com/laravel/framework/pull/15678)) -- Changed notifications `id` column type to `uuid` ([#15719](https://github.com/laravel/framework/pull/15719)) - -### Fixed -- Fixed PDO bindings when using `whereHas()` ([#15740](https://github.com/laravel/framework/pull/15740)) - - -## v5.3.15 (2016-09-29) - -### Changed -- Use granular notification queue jobs ([#15681](https://github.com/laravel/framework/pull/15681), [3a5e510](https://github.com/laravel/framework/commit/3a5e510af5e92ab2eaa25d728b8c74d9cf8833c2)) -- Reverted recent changes to the queue ([d8dc8dc](https://github.com/laravel/framework/commit/d8dc8dc4bde56f63d8b1eacec3f3d4d68cc51894)) - - -## v5.3.14 (2016-09-29) - -### Fixed -- Fixed `DaemonCommand` command name ([b681bff](https://github.com/laravel/framework/commit/b681bffc247ebac1fbb4afcec03e2ce12627e0cc)) - - -## v5.3.13 (2016-09-29) - -### Added -- Added `serialize()` and `unserialize()` on `RedisStore` ([#15657](https://github.com/laravel/framework/pull/15657)) - -### Changed -- Use `$signature` command style on `DaemonCommand` and `WorkCommand` ([#15677](https://github.com/laravel/framework/pull/15677)) - - -## v5.3.12 (2016-09-29) - -### Added -- Added support for priority level in mail notifications ([#15651](https://github.com/laravel/framework/pull/15651)) -- Added missing `$minutes` property on `CookieSessionHandler` ([#15664](https://github.com/laravel/framework/pull/15664)) - -### Changed -- Removed forking and PCNTL requirements while still supporting timeouts ([#15650](https://github.com/laravel/framework/pull/15650)) -- Set exception handler first thing in `WorkCommand::runWorker()` ([99994fe](https://github.com/laravel/framework/commit/99994fe23c1215d5a8e798da03947e6a5502b8f9)) - - -## v5.3.11 (2016-09-27) - -### Added -- Added `Kernel::setArtisan()` method ([#15531](https://github.com/laravel/framework/pull/15531)) -- Added a default method for validation message variable replacing ([#15527](https://github.com/laravel/framework/pull/15527)) -- Added support for a schema array in Postgres config ([#15535](https://github.com/laravel/framework/pull/15535)) -- Added `SoftDeletes::isForceDeleting()` method ([#15580](https://github.com/laravel/framework/pull/15580)) -- Added support for tasks scheduling using command classes instead of signatures ([#15591](https://github.com/laravel/framework/pull/15591)) -- Added support for passing array of emails/user-objects to `Mailable::to()` ([#15603](https://github.com/laravel/framework/pull/15603)) -- Add missing interface methods in `Registrar` contract ([#15616](https://github.com/laravel/framework/pull/15616)) - -### Changed -- Let the queue worker sleep for 1s when app is down for maintenance ([#15520](https://github.com/laravel/framework/pull/15520)) -- Improved validator messages for implicit attributes errors ([#15538](https://github.com/laravel/framework/pull/15538)) -- Use `Carbon::now()->getTimestamp()` instead of `time()` in various places ([#15544](https://github.com/laravel/framework/pull/15544), [#15545](https://github.com/laravel/framework/pull/15545), [c5984af](https://github.com/laravel/framework/commit/c5984af3757e492c6e79cef161169ea09b5b9c7a), [#15549](https://github.com/laravel/framework/pull/15549)) -- Removed redundant condition from `updateOrInsert()` ([#15540](https://github.com/laravel/framework/pull/15540)) -- Throw `LogicException` on container alias loop ([#15548](https://github.com/laravel/framework/pull/15548)) -- Handle empty `$files` in `Request::duplicate()` ([#15558](https://github.com/laravel/framework/pull/15558)) -- Support exact matching of custom validation messages ([#15557](https://github.com/laravel/framework/pull/15557)) - -### Fixed -- Decode URL in `Request::segments()` and `Request::is()` ([#15524](https://github.com/laravel/framework/pull/15524)) -- Replace only the first instance of the app namespace in Generators ([#15575](https://github.com/laravel/framework/pull/15575)) -- Fixed artisan `--env` issue where environment file wasn't loaded ([#15629](https://github.com/laravel/framework/pull/15629)) -- Fixed migration with comments using `ANSI_QUOTE` SQL mode ([#15620](https://github.com/laravel/framework/pull/15620)) -- Disabled queue worker process forking until it works with AWS SQS ([23c1276](https://github.com/laravel/framework/commit/23c12765557ebc5e3c35ad024d645620f7b907d6)) - - -## v5.3.10 (2016-09-20) - -### Added -- Fire `Registered` event when a user registers ([#15401](https://github.com/laravel/framework/pull/15401)) -- Added `Container::factory()` method ([#15415](https://github.com/laravel/framework/pull/15415)) -- Added `$default` parameter to query/eloquent builder `when()` method ([#15428](https://github.com/laravel/framework/pull/15428), [#15442](https://github.com/laravel/framework/pull/15442)) -- Added missing `$notifiable` parameter to `ResetPassword::toMail()` ([#15448](https://github.com/laravel/framework/pull/15448)) - -### Changed -- Updated `ServiceProvider` to use `resourcePath()` over `basePath()` ([#15400](https://github.com/laravel/framework/pull/15400)) -- Throw `RuntimeException` if `pcntl_fork()` doesn't exists ([#15393](https://github.com/laravel/framework/pull/15393)) -- Changed visibility of `Container::getAlias()` to public ([#15444](https://github.com/laravel/framework/pull/15444)) -- Changed visibility of `VendorPublishCommand::publishTag()` to protected ([#15461](https://github.com/laravel/framework/pull/15461)) -- Changed visibility of `TestCase::afterApplicationCreated()` to public ([#15493](https://github.com/laravel/framework/pull/15493)) -- Prevent calling `Model` methods when calling them as attributes ([#15438](https://github.com/laravel/framework/pull/15438)) -- Default `$callback` to `null` in eloquent builder `whereHas()` ([#15475](https://github.com/laravel/framework/pull/15475)) -- Support newlines in Blade's `@foreach` ([#15485](https://github.com/laravel/framework/pull/15485)) -- Try to reconnect if connection is lost during database transaction ([#15511](https://github.com/laravel/framework/pull/15511)) -- Renamed `InteractsWithQueue::failed()` to `fail()` ([e1d60e0](https://github.com/laravel/framework/commit/e1d60e0fe120a7898527fb997aa2fb9de263190c)) - -### Fixed -- Reverted "Allow passing a `Closure` to `View::share()` [#15312](https://github.com/laravel/framework/pull/15312)" ([#15312](https://github.com/laravel/framework/pull/15312)) -- Resolve issues with multi-value select elements ([#15436](https://github.com/laravel/framework/pull/15436)) -- Fixed issue with `X-HTTP-METHOD-OVERRIDE` spoofing in `Request` ([#15410](https://github.com/laravel/framework/pull/15410)) - -### Removed -- Removed unused `SendsPasswordResetEmails::resetNotifier()` method ([#15446](https://github.com/laravel/framework/pull/15446)) -- Removed uninstantiable `Seeder` class ([#15450](https://github.com/laravel/framework/pull/15450)) -- Removed unnecessary variable in `AuthenticatesUsers::login()` ([#15507](https://github.com/laravel/framework/pull/15507)) - - -## v5.3.9 (2016-09-12) - -### Changed -- Optimized performance of `Str::startsWith()` and `Str::endsWith()` ([#15380](https://github.com/laravel/framework/pull/15380), [#15397](https://github.com/laravel/framework/pull/15397)) - -### Fixed -- Fixed queue job without `--tries` option marks jobs failed ([#15370](https://github.com/laravel/framework/pull/15370), [#15390](https://github.com/laravel/framework/pull/15390)) - - -## v5.3.8 (2016-09-09) - -### Added -- Added missing `MailableMailer::later()` method ([#15364](https://github.com/laravel/framework/pull/15364)) -- Added missing `$queue` parameter on `SyncJob` ([#15368](https://github.com/laravel/framework/pull/15368)) -- Added SSL options for PostgreSQL DSN ([#15371](https://github.com/laravel/framework/pull/15371)) -- Added ability to disable touching of parent when toggling relation ([#15263](https://github.com/laravel/framework/pull/15263)) -- Added username, icon and channel options for Slack Notifications ([#14910](https://github.com/laravel/framework/pull/14910)) - -### Changed -- Renamed methods in `NotificationFake` ([69b08f6](https://github.com/laravel/framework/commit/69b08f66fbe70b4df8332a8f2a7557a49fd8c693)) -- Minor code improvements ([#15369](https://github.com/laravel/framework/pull/15369)) - -### Fixed -- Fixed catchable fatal error introduced [#15250](https://github.com/laravel/framework/pull/15250) ([#15350](https://github.com/laravel/framework/pull/15350)) - - -## v5.3.7 (2016-09-08) - -### Added -- Added missing translation for `mimetypes` validation ([#15209](https://github.com/laravel/framework/pull/15209), [#3921](https://github.com/laravel/laravel/pull/3921)) -- Added ability to check if between two times when using scheduler ([#15216](https://github.com/laravel/framework/pull/15216), [#15306](https://github.com/laravel/framework/pull/15306)) -- Added `X-RateLimit-Reset` header to throttled responses ([#15275](https://github.com/laravel/framework/pull/15275)) -- Support aliases on `withCount()` ([#15279](https://github.com/laravel/framework/pull/15279)) -- Added `Filesystem::isReadable()` ([#15289](https://github.com/laravel/framework/pull/15289)) -- Added `Collection::split()` method ([#15302](https://github.com/laravel/framework/pull/15302)) -- Allow passing a `Closure` to `View::share()` ([#15312](https://github.com/laravel/framework/pull/15312)) -- Added support for `Mailable` messages in `MailChannel` ([#15318](https://github.com/laravel/framework/pull/15318)) -- Added `with*()` syntax to `Mailable` class ([#15316](https://github.com/laravel/framework/pull/15316)) -- Added `--path` option for `migrate:rollback/refresh/reset` ([#15251](https://github.com/laravel/framework/pull/15251)) -- Allow numeric keys on `morphMap()` ([#15332](https://github.com/laravel/framework/pull/15332)) -- Added fakes for bus, events, mail, queue and notifications ([5deab59](https://github.com/laravel/framework/commit/5deab59e89b85e09b2bd1642e4efe55e933805ca)) - -### Changed -- Update `Model::save()` to return `true` when no error occurs ([#15236](https://github.com/laravel/framework/pull/15236)) -- Optimized performance of `Arr::first()` ([#15213](https://github.com/laravel/framework/pull/15213)) -- Swapped `drop()` for `dropIfExists()` in all stubs ([#15230](https://github.com/laravel/framework/pull/15230)) -- Allow passing object instance to `class_uses_recursive()` ([#15223](https://github.com/laravel/framework/pull/15223)) -- Improved handling of failed file uploads during validation ([#15166](https://github.com/laravel/framework/pull/15166)) -- Hide pagination if it does not have multiple pages ([#15246](https://github.com/laravel/framework/pull/15246)) -- Cast Pusher message to JSON in `validAuthentiactoinResponse()` ([#15262](https://github.com/laravel/framework/pull/15262)) -- Throw exception if queue failed to create payload ([#15284](https://github.com/laravel/framework/pull/15284)) -- Call `getUrl()` first in `FilesystemAdapter::url()` ([#15291](https://github.com/laravel/framework/pull/15291)) -- Consider local key in `HasManyThrough` relationships ([#15303](https://github.com/laravel/framework/pull/15303)) -- Fail faster by checking Route Validators in likely fail order ([#15287](https://github.com/laravel/framework/pull/15287)) -- Make the `FilesystemAdapter::delete()` behave like `FileSystem::delete()` ([#15308](https://github.com/laravel/framework/pull/15308)) -- Don't call `floor()` in `Collection::median()` ([#15343](https://github.com/laravel/framework/pull/15343)) -- Always return number from aggregate method `sum()` ([#15345](https://github.com/laravel/framework/pull/15345)) - -### Fixed -- Reverted "Hide empty paginators" [#15125](https://github.com/laravel/framework/pull/15125) ([#15241](https://github.com/laravel/framework/pull/15241)) -- Fixed empty `multifile` uploads ([#15250](https://github.com/laravel/framework/pull/15250)) -- Fixed regression in `save(touch)` option ([#15264](https://github.com/laravel/framework/pull/15264)) -- Fixed lower case model names in policy classes ([15270](https://github.com/laravel/framework/pull/15270)) -- Allow models with global scopes to be refreshed ([#15282](https://github.com/laravel/framework/pull/15282)) -- Fix `ChannelManager::getDefaultDriver()` implementation ([#15288](https://github.com/laravel/framework/pull/15288)) -- Fire `illuminate.queue.looping` event before running daemon ([#15290](https://github.com/laravel/framework/pull/15290)) -- Check attempts before firing queue job ([#15319](https://github.com/laravel/framework/pull/15319)) -- Fixed `morphTo()` naming inconsistency ([#15334](https://github.com/laravel/framework/pull/15334)) - - -## v5.3.6 (2016-09-01) - -### Added -- Added `required` attributes to auth scaffold ([#15087](https://github.com/laravel/framework/pull/15087)) -- Support custom recipient(s) in `MailMessage` notifications ([#15100](https://github.com/laravel/framework/pull/15100)) -- Support custom greeting in `SimpleMessage` notifications ([#15108](https://github.com/laravel/framework/pull/15108)) -- Added `prependLocation()` method to `FileViewFinder` ([#15103](https://github.com/laravel/framework/pull/15103)) -- Added fluent email priority setter ([#15178](https://github.com/laravel/framework/pull/15178)) -- Added `send()` and `sendNow()` to notification factory contract ([0066b5d](https://github.com/laravel/framework/commit/0066b5da6f009275348ab71904da2376c6c47281)) - -### Changed -- Defer resolving of PDO connection until needed ([#15031](https://github.com/laravel/framework/pull/15031)) -- Send plain text email along with HTML email notifications ([#15016](https://github.com/laravel/framework/pull/15016), [#15092](https://github.com/laravel/framework/pull/15092), [#15115](https://github.com/laravel/framework/pull/15115)) -- Stop further validation if a `required` rule fails ([#15089](https://github.com/laravel/framework/pull/15089)) -- Swaps `drop()` for `dropIfExists()` in migration stub ([#15113](https://github.com/laravel/framework/pull/15113)) -- The `resource_path()` helper now relies on `Application::resourcePath()` ([#15095](https://github.com/laravel/framework/pull/15095)) -- Optimized performance of `Str::random()` ([#15112](https://github.com/laravel/framework/pull/15112)) -- Show `app.name` in auth stub ([#15138](https://github.com/laravel/framework/pull/15138)) -- Switched from `htmlentities()` to `htmlspecialchars()` in `e()` helper ([#15159](https://github.com/laravel/framework/pull/15159)) -- Hide empty paginators ([#15125](https://github.com/laravel/framework/pull/15125)) - -### Fixed -- Fixed `migrate:rollback` with `FETCH_ASSOC` enabled ([#15088](https://github.com/laravel/framework/pull/15088)) -- Fixes query builder not considering raw expressions in `whereIn()` ([#15078](https://github.com/laravel/framework/pull/15078)) -- Fixed notifications serialization mistake in `ChannelManager` ([#15106](https://github.com/laravel/framework/pull/15106)) -- Fixed session id collisions ([#15206](https://github.com/laravel/framework/pull/15206)) -- Fixed extending cache expiration time issue in `file` cache ([#15164](https://github.com/laravel/framework/pull/15164)) - -### Removed -- Removed data transformation in `Response::json()` ([#15137](https://github.com/laravel/framework/pull/15137)) - - -## v5.3.4 (2016-08-26) - -### Added -- Added ability to set from address for email notifications ([#15055](https://github.com/laravel/framework/pull/15055)) - -### Changed -- Support implicit keys in `MessageBag::get()` ([#15063](https://github.com/laravel/framework/pull/15063)) -- Allow passing of closures to `assertViewHas()` ([#15074](https://github.com/laravel/framework/pull/15074)) -- Strip protocol from Route group domains parameters ([#15070](https://github.com/laravel/framework/pull/15070)) -- Support dot notation as callback in `Arr::sort()` ([#15050](https://github.com/laravel/framework/pull/15050)) -- Use Redis database interface instead of implementation ([#15041](https://github.com/laravel/framework/pull/15041)) -- Allow closure middleware to be registered from the controller constructor ([#15080](https://github.com/laravel/framework/pull/15080), [abd85c9](https://github.com/laravel/framework/commit/abd85c916df0cc0a6dc55de943a39db8b7eb4e0d)) - -### Fixed -- Fixed plural form of Emoji ([#15068](https://github.com/laravel/framework/pull/15068)) - - -## v5.3.3 (2016-08-26) - -### Fixed -- Fixed testing of Eloquent model events ([#15052](https://github.com/laravel/framework/pull/15052)) - - -## v5.3.2 (2016-08-24) - -### Fixed -- Revert changes to Eloquent `Builder` that breaks `firstOr*` methods ([#15018](https://github.com/laravel/framework/pull/15018)) - - -## v5.3.1 (2016-08-24) - -### Changed -- Support unversioned assets in `elixir()` function ([#14987](https://github.com/laravel/framework/pull/14987)) -- Changed visibility of `BladeCompiler::stripParentheses()` to `public` ([#14986](https://github.com/laravel/framework/pull/14986)) -- Use getter instead of accessing the properties directly in `JoinClause::__construct()` ([#14984](https://github.com/laravel/framework/pull/14984)) -- Replaced manual comparator with `asort` in `Collection::sort()` ([#14980](https://github.com/laravel/framework/pull/14980)) -- Use `query()` instead of `input()` for key lookup in `TokenGuard::getTokenForRequest()` ([#14985](https://github.com/laravel/framework/pull/14985)) - -### Fixed -- Check if exact key exists before assuming the dot notation represents segments in `Arr::has()` ([#14976](https://github.com/laravel/framework/pull/14976)) -- Revert aggregate changes in [#14793](https://github.com/laravel/framework/pull/14793) ([#14994](https://github.com/laravel/framework/pull/14994)) -- Prevent infinite recursion with closure based console commands ([26eaa35](https://github.com/laravel/framework/commit/26eaa35c0dbd988084e748410a31c8b01fc1993a)) -- Fixed `transaction()` method for SqlServer ([f4588f8](https://github.com/laravel/framework/commit/f4588f8851aab1129f77d87b7dc1097c842390db))
true
Other
laravel
framework
fca53f2a895c33c2884d8c5e6ad70a76de297e9d.json
remove old changelogs
CHANGELOG-5.4.md
@@ -1,930 +0,0 @@ -# Release Notes for 5.4.x - -## v5.4.36 (2017-08-30) - -### Added -- Added MP3 to `Testing/MimeType::$mimes` ([#20745](https://github.com/laravel/framework/pull/20745)) - -### Changed -- Mailables that defined a `$delay` property will honor it ([#20717](https://github.com/laravel/framework/pull/20717)) - -### Fixed -- Fixed route URLs building from artisan commands ([#20788](https://github.com/laravel/framework/pull/20788)) - - -## v5.4.35 (2017-08-24) - -### Fixed -- Fixed breaking change in `FactoryBuilder` ([#20727](https://github.com/laravel/framework/pull/20727)) - - -## v5.4.34 (2017-08-23) - -### Added -- Added `Str::start()` and `str_start()` helper ([#20569](https://github.com/laravel/framework/pull/20569)) -- Added `orDoesntHave()` and `orWhereDoesntHave()` to `QueriesRelationships` ([#20685](https://github.com/laravel/framework/pull/20685)) -- Added support for callables in model factory attributes ([#20692](https://github.com/laravel/framework/pull/20692)) - -### Changed -- Return the model instance from `Model::refresh()` ([#20657](https://github.com/laravel/framework/pull/20657)) -- Use `self::$verbs` in `Router::any()` ([#20698](https://github.com/laravel/framework/pull/20698)) - -### Fixed -- Fixed duplicate user model import in `make:policy` ([#20645](https://github.com/laravel/framework/pull/20645), [48f5f23](https://github.com/laravel/framework/commit/48f5f23fd8615f48f2aee27a301c1f2f1505bdfb)) -- Fixed PHP 7.2 incompatibility in `Builder::mergeWheres()` ([#20635](https://github.com/laravel/framework/pull/20635)) -- Fixed issue in `RateLimiter` ([#20684](https://github.com/laravel/framework/pull/20684)) -- Fixed success message after password reset ([#20707](https://github.com/laravel/framework/pull/20707)) -- Fail job only if it didn't fail already ([#20654](https://github.com/laravel/framework/pull/20654)) - - -## v5.4.33 (2017-08-14) - -### Added -- Show error message if a reverted migration is not found ([#20499](https://github.com/laravel/framework/pull/20499), [a895b1e](https://github.com/laravel/framework/commit/a895b1eb0e50683c4583c24bb17b3f8d9e8127ab)) - -### Changed -- Moved `tap()` method from `Builder` to `BuildsQueries` ([#20384](https://github.com/laravel/framework/pull/20384)) -- Made Blade `or` operator case-insensitive ([#20425](https://github.com/laravel/framework/pull/20425)) -- Support `$amount = 0` in `Arr::random()` ([#20439](https://github.com/laravel/framework/pull/20439)) -- Reverted `doctrine/inflector` version change made in v5.4.31 ([#20227](https://github.com/laravel/framework/pull/20227)) - -### Fixed -- Fixed bug when using empty values in `SQLiteGrammar::compileInsert()` ([#20424](https://github.com/laravel/framework/pull/20424)) -- Fixed `$boolean` parameter being ignored in `Builder::addArrayOfWheres()` ([#20553](https://github.com/laravel/framework/pull/20553)) -- Fixed `JoinClause::whereIn()` when using a subquery ([#20453](https://github.com/laravel/framework/pull/20453)) -- Reset day parameter when using `Y-m` with `date_format` rule ([#20566](https://github.com/laravel/framework/pull/20566)) - - -## v5.4.32 (2017-08-03) - -### Added -- Added `FilesystemAdapter::path()` method ([#20395](https://github.com/laravel/framework/pull/20395)) - -### Changed -- Allow `Collection::random()` to return `0` items ([#20396](https://github.com/laravel/framework/pull/20396), [#20402](https://github.com/laravel/framework/pull/20402)) -- Accept options on `FilesystemAdapter::temporaryUrl()` ([#20394](https://github.com/laravel/framework/pull/20394)) -- Sync `withoutOverlapping` method on `Event` and `CallbackEvent` ([#20389](https://github.com/laravel/framework/pull/20389)) -- Prevent PHP file uploads by default unless explicitly allowed ([#20392](https://github.com/laravel/framework/pull/20392), [#20400](https://github.com/laravel/framework/pull/20400)) -- Allow other filesystem adapter to implement `temporaryUrl()` ([#20398](https://github.com/laravel/framework/pull/20398)) - -### Fixed -- Reverted breaking change on `BelongsToMany::create()` ([#20407](https://github.com/laravel/framework/pull/20407)) - - -## v5.4.31 (2017-08-02) - -### Added -- Added `Blueprint::unsignedDecimal()` method ([#20243](https://github.com/laravel/framework/pull/20243), [3b4483d](https://github.com/laravel/framework/commit/3b4483d1ad885ca0943558b896c6f27f937c193a), [06dcaaa](https://github.com/laravel/framework/commit/06dcaaafe3add4a1bd2a41610278fc7f3d8c43df)) -- Added `Relation::getMorphedModel()` method ([#20244](https://github.com/laravel/framework/pull/20244)) -- Added `Model::isNot()` method ([#20354](https://github.com/laravel/framework/pull/20354)) -- Added `FilesystemAdapter::temporaryUrl()` method ([#20375](https://github.com/laravel/framework/pull/20375), [09cfd7f](https://github.com/laravel/framework/commit/09cfd7f5d2982f4faca915125d88eb4552ca3db4)) -- Added `Request::userAgent()` method ([#20367](https://github.com/laravel/framework/pull/20367)) - -### Changed -- Renamed `MakeAuthCommand` to `AuthMakeCommand` ([#20216](https://github.com/laravel/framework/pull/20216)) -- Don't use `asset()` helper inside `mix()` ([#20197](https://github.com/laravel/framework/pull/20197)) -- Removed `array` type-hint in `Builder::orWhereRaw()` signature ([#20234](https://github.com/laravel/framework/pull/20234)) -- Added empty array default to `$attributes` on `BelongsToMany::create()` ([#20321](https://github.com/laravel/framework/pull/20321)) -- Prepare for PHP 7.2 ([#20258](https://github.com/laravel/framework/pull/20258), [#20330](https://github.com/laravel/framework/pull/20330), [#20336](https://github.com/laravel/framework/pull/20336), [#20378](https://github.com/laravel/framework/pull/20378)) -- Use `unsignedTinyInteger()` in `jobs.stub` ([#20382](https://github.com/laravel/framework/pull/20382)) - -### Fixed -- Make sure `Model::getDates()` returns unique columns ([#20193](https://github.com/laravel/framework/pull/20193)) -- Fixed pulled `doctrine/inflector` version ([#20227](https://github.com/laravel/framework/pull/20227)) -- Fixed issue with `chunkById()` when `orderByRaw()` is used ([#20236](https://github.com/laravel/framework/pull/20236)) -- Terminate user defined database connections after rollback during testing ([#20340](https://github.com/laravel/framework/pull/20340)) - - -## v5.4.30 (2017-07-19) - -### Fixed -- Handle a non-existing key in `ArrayStore` ([#20156](https://github.com/laravel/framework/pull/20156)) -- Fixed bug `@guest` and `@auth` directives ([#20166](https://github.com/laravel/framework/pull/20166), [b164e45](https://github.com/laravel/framework/commit/b164e4552517b6126eac4dc77e276131b835b784)) - - -## v5.4.29 (2017-07-19) - -### Added -- Added `ManagesFrequencies::twiceMonthly()` method ([#19874](https://github.com/laravel/framework/pull/19874)) -- Added `RouteCollection::getRoutesByName()` method ([#19901](https://github.com/laravel/framework/pull/19901)) -- Added `$expiresAt` parameter to `CallbackEvent::withoutOverlapping()` ([#19861](https://github.com/laravel/framework/pull/19861)) -- Support keeping old files when testing uploads ([#19859](https://github.com/laravel/framework/pull/19859)) -- Added `--force` option to `make:mail`, `make:model` and `make:notification` ([#19932](https://github.com/laravel/framework/pull/19932)) -- Added support for PostgreSQL deletes with `USES` clauses ([#20062](https://github.com/laravel/framework/pull/20062), [f94fc02](https://github.com/laravel/framework/commit/f94fc026c64471ca5a5b42919c9b5795021d783c)) -- Added support for CC and BBC on mail notifications ([#20093](https://github.com/laravel/framework/pull/20093)) -- Added Blade `@auth` and `@guest` directive ([#20087](https://github.com/laravel/framework/pull/20087), [#20114](https://github.com/laravel/framework/pull/20114)) -- Added option to configure MARS on SqlServer connections ([#20113](https://github.com/laravel/framework/pull/20113), [c2c917c](https://github.com/laravel/framework/commit/c2c917c5f773d3df7f59242768f921af95309bcc)) - -### Changed -- Support object items in `Arr::pluck()` ([#19838](https://github.com/laravel/framework/pull/19838), [#19845](https://github.com/laravel/framework/pull/19845)) -- `MessageBag` interface now extends `Arrayable` ([#19849](https://github.com/laravel/framework/pull/19849)) -- Made `Blueprint` macroable ([#19862](https://github.com/laravel/framework/pull/19862)) -- Improved performance for `Arr::crossJoin()` ([#19864](https://github.com/laravel/framework/pull/19864)) -- Use the correct `User` model namespace for new policies ([#19965](https://github.com/laravel/framework/pull/19965), [a7094c2](https://github.com/laravel/framework/commit/a7094c2e68a6eb9768462ce9b8d26fec00e9ba65)) -- Consider scheduled event timezone in `inTimeInterval()` ([#19959](https://github.com/laravel/framework/pull/19959)) -- Render exception if handler can't report it ([#19977](https://github.com/laravel/framework/pull/19977)) -- Made `MakesHttpRequests::withServerVariables()` public ([#20086](https://github.com/laravel/framework/pull/20086)) -- Invalidate session instead of regenerating it when logging out ([#20107](https://github.com/laravel/framework/pull/20107)) -- Improved `InvalidPayloadException` error message ([#20143](https://github.com/laravel/framework/pull/20143)) - -### Fixed -- Don't re-escape a `View` instance passed as the default value to `@yield` or `@section` directives ([#19884](https://github.com/laravel/framework/pull/19884)) -- Make sure migration file is loaded before trying to rollback ([#19922](https://github.com/laravel/framework/pull/19922)) -- Fixed caching issue in `mix()` ([#19968](https://github.com/laravel/framework/pull/19968)) -- Signal alarm after timeout passes ([#19978](https://github.com/laravel/framework/pull/19978)) - - -## v5.4.28 (2017-06-30) - -### Added -- Added `avg()` and `average()` as higher order proxies ([#19628](https://github.com/laravel/framework/pull/19628)) -- Added `fresh()` method to Eloquent collection ([#19616](https://github.com/laravel/framework/pull/19616), [#19671](https://github.com/laravel/framework/pull/19671)) -- Added ability to remove a global scope with another global scope ([#19657](https://github.com/laravel/framework/pull/19657)) -- Added `Collection::intersectKey()` method ([#19683](https://github.com/laravel/framework/pull/19683)) -- Support setting queue name via `broadcastQueue()` method ([#19703](https://github.com/laravel/framework/pull/19703), [#19708](https://github.com/laravel/framework/pull/19708)) -- Support default return on `BelongsTo` relations ([#19733](https://github.com/laravel/framework/pull/19733), [#19788](https://github.com/laravel/framework/pull/19788), [1137d86](https://github.com/laravel/framework/commit/1137d860d8ef009630ae4951ea6323f552571268), [ed0182b](https://github.com/laravel/framework/commit/ed0182bb49008032b02649f2fa9ff644b086deac)) -- Added `unless()` method to query builder and collection ([#19738](https://github.com/laravel/framework/pull/19738), [#19740](https://github.com/laravel/framework/pull/19740)) -- Added `array_random()` helper ([#19741](https://github.com/laravel/framework/pull/19741), [#19818](https://github.com/laravel/framework/pull/19818), [#19826](https://github.com/laravel/framework/pull/19826)) -- Support multiple manifest files on `mix()` ([#19764](https://github.com/laravel/framework/pull/19764)) - -### Changed -- Escape default value passed to `@yield` directive ([#19643](https://github.com/laravel/framework/pull/19643)) -- Support passing multiple fields to `different` validation rule ([#19637](https://github.com/laravel/framework/pull/19637)) -- Only dispatch the `MessageSent` event if mails should be sent ([#19690](https://github.com/laravel/framework/pull/19690)) -- Removed duplicate `/` from `public_path()` ([#19731](https://github.com/laravel/framework/pull/19731)) -- Made `ThrottlesLogins` more customizable ([#19787](https://github.com/laravel/framework/pull/19787)) -- Support PostgreSQL insert statements with `DEFAULT VALUES` ([#19804](https://github.com/laravel/framework/pull/19804)) - -### Fixed -- Fixed `BelongsTo` bug with incrementing keys ([#19631](https://github.com/laravel/framework/pull/19631)) -- Fixed PDO return value bug in `unprepared()` ([#19667](https://github.com/laravel/framework/pull/19667)) -- Don't use `event()` helper in `Http\Kernel` ([#19688](https://github.com/laravel/framework/pull/19688)) -- Detect lock wait timeout as deadlock ([#19749](https://github.com/laravel/framework/pull/19749)) -- Improved escaping special characters in MySQL comments ([#19798](https://github.com/laravel/framework/pull/19798)) -- Fixed passing email as string to `Event::emailOutputTo()` ([#19802](https://github.com/laravel/framework/pull/19802)) -- Fixed `withoutOverlapping()` not creating mutex ([#19834](https://github.com/laravel/framework/pull/19834)) - -### Removed -- Removed `role` attribute from forms in stubs ([#19792](https://github.com/laravel/framework/pull/19792)) - - -## v5.4.27 (2017-06-15) - -### Added -- Added `Collection::diffAssoc()` method ([#19604](https://github.com/laravel/framework/pull/19604)) - -### Changed -- Updated PHPUnit whitelist ([#19609](https://github.com/laravel/framework/pull/19609)) - -### Fixed -- Update timestamps on soft delete only when they are used ([#19627](https://github.com/laravel/framework/pull/19627)) - - -## v5.4.26 (2017-06-13) - -### Added -- Added `Event::nextRunDate()` method ([#19537](https://github.com/laravel/framework/pull/19537), [09dd336](https://github.com/laravel/framework/commit/09dd336b5146afa9278064c2f7cd901f55e10fc0)) -- Added null safe operator `<=>` to query builder operators list ([#19539](https://github.com/laravel/framework/pull/19539)) -- Added `Macroable` trait to `RequestGuard` ([#19569](https://github.com/laravel/framework/pull/19569)) - -### Changed -- Touch `updated_at` timestamp when soft deleting ([#19538](https://github.com/laravel/framework/pull/19538)) -- Accept argument list in `Rule::in()` and `Rule::notIn()` ([#19555](https://github.com/laravel/framework/pull/19555)) -- Support checking for strings job names using `QueueFake` ([#19575](https://github.com/laravel/framework/pull/19575)) -- Improved image ratio validation precision ([#19542](https://github.com/laravel/framework/pull/19542)) - -### Fixed -- Resume scheduled task if an error occurs ([#19419](https://github.com/laravel/framework/pull/19419)) -- Decode HTML entities in plain text emails ([#19518](https://github.com/laravel/framework/pull/19518)) -- Added missing locales to `MessageSelector::getPluralIndex()` ([#19562](https://github.com/laravel/framework/pull/19562)) -- Use strict check when object is passed to `Collection::contains()` ([#19568](https://github.com/laravel/framework/pull/19568)) -- Fixed jobs with a timeout of `0` ([#19586](https://github.com/laravel/framework/pull/19586)) -- Never pass `Throwable` to `stopWorkerIfLostConnection()` ([#19591](https://github.com/laravel/framework/pull/19591)) - - -## v5.4.25 (2017-06-07) - -### Added -- Added `Macroable` trait to `FactoryBuilder` ([#19425](https://github.com/laravel/framework/pull/19425)) -- Allow a plain text alternative view when using markdown within Mailables ([#19436](https://github.com/laravel/framework/pull/19436), [ad2eaf7](https://github.com/laravel/framework/commit/ad2eaf72d7fc003a98215d4a373ea603658c646a)) -- Added nested transactions support for SqlServer ([#19439](https://github.com/laravel/framework/pull/19439)) - -### Changed -- Moved `env()` helper to Support component ([#19409](https://github.com/laravel/framework/pull/19409)) -- Prevent `BadMethodCallException` in `RedirectResponse::withErrors()` ([#19426](https://github.com/laravel/framework/pull/19426)) -- Suppress error if calling `Str::replaceFirst()` with an empty search ([#19427](https://github.com/laravel/framework/pull/19427)) -- Removed the `callable` type hint for `array_sort()` ([#19483](https://github.com/laravel/framework/pull/19483)) -- Return the used traits from `TestCase::setUpTraits()` ([#19486](https://github.com/laravel/framework/pull/19486)) - -### Fixed -- Fixes and optimizations for `Str::after()` ([#19428](https://github.com/laravel/framework/pull/19428)) -- Fixed queue size when using Beanstalkd driver ([#19465](https://github.com/laravel/framework/pull/19465)) -- Check if a mutex can be created before running the callback task in `CallbackEvent::run()` ([#19466](https://github.com/laravel/framework/pull/19466)) -- Flip expected and actual value on `TestResponse::assertCookie()` ([#19495](https://github.com/laravel/framework/pull/19495)) -- Fixed undefined variable error in `Mailable` class ([#19504](https://github.com/laravel/framework/pull/19504)) -- Prevent error notice when `database.collation` is not set ([#19507](https://github.com/laravel/framework/pull/19507)) - - -## v5.4.24 (2017-05-30) - -### Added -- Support magic controller methods ([#19168](https://github.com/laravel/framework/pull/19168)) -- Added `Gate` resources ([#19124](https://github.com/laravel/framework/pull/19124)) -- Added `Request::routeIs()` method ([#19202](https://github.com/laravel/framework/pull/19202), [26681eb](https://github.com/laravel/framework/commit/26681eb1c8ba35a0129ad47d4f0f03af9c2baa45)) -- Route `Route::isName()` shorthand method ([#19227](https://github.com/laravel/framework/pull/19227)) -- Added support for custom columns in `softDeletes()` method ([#19203](https://github.com/laravel/framework/pull/19203)) -- Added `ManagesLayouts::getSection()` method ([#19213](https://github.com/laravel/framework/pull/19213)) -- Added `Model::refresh()` shorthand ([#19174](https://github.com/laravel/framework/pull/19174)) -- Added `Container::forgetExtenders()` method ([#19269](https://github.com/laravel/framework/pull/19269), [7c17bf5](https://github.com/laravel/framework/commit/7c17bf540f37f8b4667be5332c94d7423780ca83)) -- Added `Filesystem::hash()` method ([#19256](https://github.com/laravel/framework/pull/19256)) -- Added `TestResponse::assertViewIs()` method ([#19291](https://github.com/laravel/framework/pull/19291)) -- Added `path` to `Paginator` ([#19314](https://github.com/laravel/framework/pull/19314)) -- Added `Collection::concat()` method ([#19318](https://github.com/laravel/framework/pull/19318), [0f5337f](https://github.com/laravel/framework/commit/0f5337f854ecdd722e7e289ff58cc252337e7a9d)) -- Added `make()` method to `HasOneOrMany` and `MorphOneOrMany` relations ([#19307](https://github.com/laravel/framework/pull/19307)) -- Added `str_after()` helper function ([#19357](https://github.com/laravel/framework/pull/19357)) -- Added `Router::apiResource()` method ([#19347](https://github.com/laravel/framework/pull/19347)) - -### Changed -- Move `$sizeRules` and `$numericRules` properties from `FormatsMessages` to `Validator` ([dc7e7cb](https://github.com/laravel/framework/commit/dc7e7cb26500fcba91e7e32762e367d59b12913b)) -- Allows calls to `Collection::times()` without the `$callback` parameter ([#19278](https://github.com/laravel/framework/pull/19278)) -- Don't ignore jobs with a timeout of `0` ([#19266](https://github.com/laravel/framework/pull/19266)) -- Resolve database paginators from the container ([#19328](https://github.com/laravel/framework/pull/19328)) -- Added `news` to `Pluralizer::$uncountable()` ([#19353](https://github.com/laravel/framework/pull/19353)) -- Switched to using `app()->getLocale()` in `app.stub` ([#19405](https://github.com/laravel/framework/pull/19405)) - -### Fixed -- Fixed `Container::makeWith()` not using parameters when resolving interfaces ([#19178](https://github.com/laravel/framework/pull/19178)) -- Stop validating Memcached connection ([#19192](https://github.com/laravel/framework/pull/19192)) -- Fixed the position of `bound()` in `Container::instance()` ([#19207](https://github.com/laravel/framework/pull/19207)) -- Prevent applying global scopes on the factory while setting the connection ([#19258](https://github.com/laravel/framework/pull/19258)) -- Fixed database connection issue in queue worker ([#19263](https://github.com/laravel/framework/pull/19263)) -- Don't use HTML comments in notification email template ([#19289](https://github.com/laravel/framework/pull/19289)) -- Fire rebinding callback when using `bind()` method to bind abstract ([#19288](https://github.com/laravel/framework/pull/19288)) -- Return `0` from `callScope()` if `$query->wheres` is `null` ([#19381](https://github.com/laravel/framework/pull/19381)) - - -## v5.4.23 (2017-05-11) - -### Added -- Added `Gate::abilities()` accessor ([#19143](https://github.com/laravel/framework/pull/19143), [e9e34b5](https://github.com/laravel/framework/commit/e9e34b5acd3feccec5ffe3ff6d84ff9009ff2a7a)) -- Added ability to eager load counts via `$withCount` property ([#19154](https://github.com/laravel/framework/pull/19154)) - -### Fixed -- Fixed inversion of expected and actual on assertHeader ([#19110](https://github.com/laravel/framework/pull/19110)) -- Fixed filesystem bug in `Filesystem::files()` method on Windows ([#19157](https://github.com/laravel/framework/pull/19157)) -- Fixed bug in `Container::build()` ([#19161](https://github.com/laravel/framework/pull/19161), [bf669e1](https://github.com/laravel/framework/commit/bf669e16d61ef0225b86adc781ddcc752aafd62b)) - -### Removed -- Removed `window.Laravel` object ([#19135](https://github.com/laravel/framework/pull/19135)) - - -## v5.4.22 (2017-05-08) - -### Added -- Support dynamic number of keys in `MessageBag::hasAny()` ([#19002](https://github.com/laravel/framework/pull/19002)) -- Added `Seeder::callSilent()` method ([#19007](https://github.com/laravel/framework/pull/19007)) -- Add `make()` method to Eloquent query builder ([#19015](https://github.com/laravel/framework/pull/19015)) -- Support `Arrayable` on Eloquent's `find()` method ([#19019](https://github.com/laravel/framework/pull/19019)) -- Added `SendsPasswordResetEmails::validateEmail()` method ([#19042](https://github.com/laravel/framework/pull/19042)) -- Allow factory attributes to be factory instances themselves ([#19055](https://github.com/laravel/framework/pull/19055)) -- Implemented `until()` method on `EventFake` ([#19062](https://github.com/laravel/framework/pull/19062)) -- Added `$encoding` parameter to `Str::length()` ([#19047](https://github.com/laravel/framework/pull/19047), [#19079](https://github.com/laravel/framework/pull/19079)) - -### Changed -- Throw exception when invalid first argument is passed to `cache()` helper ([d9459b2](https://github.com/laravel/framework/commit/d9459b2f8bec4a807e7ba2b3301de4c5248aa933)) -- Use `getAuthIdentifierName()` in `Authenticatable::getAuthIdentifier()` ([#19038](https://github.com/laravel/framework/pull/19038)) -- Clone queries without order by for aggregates ([#19064](https://github.com/laravel/framework/pull/19064)) -- Force host on password reset notification ([cef1055](https://github.com/laravel/framework/commit/cef10551820530632a86fa6f1306fee95c5cac43)) - -### Fixed -- Set data key when testing file uploads in nested array ([#18954](https://github.com/laravel/framework/pull/18954)) -- Fixed a bug related to sub select queries and extra select statements ([#19013](https://github.com/laravel/framework/pull/19013)) -- Resolve aliases from container when using parameters ([#19071](https://github.com/laravel/framework/pull/19071)) -- Stop worker if database disconnect occurred ([#19080](https://github.com/laravel/framework/pull/19080), [583b1b8](https://github.com/laravel/framework/commit/583b1b885bbc6883073baa1a0417fffcdbe5ebed)) -- Fixed internal call to `assertJson()` in `assertJsonStructure()` ([#19090](https://github.com/laravel/framework/pull/19090)) - - -## v5.4.21 (2017-04-28) - -### Added -- Support conditional broadcasting ([#18970](https://github.com/laravel/framework/pull/18970), [2665d9b](https://github.com/laravel/framework/commit/2665d9b9a49633d73c71db735c2597c8b960c985)) - -### Fixed -- Reverted queue prefix option [#18860](https://github.com/laravel/framework/pull/18860) ([#18987](https://github.com/laravel/framework/pull/18987)) -- Return `null` if key is not found from `RedisStore:many()` ([#18984](https://github.com/laravel/framework/pull/18984)) - - -## v5.4.20 (2017-04-27) - -### Added -- Added higher order tap ([3abc4fb](https://github.com/laravel/framework/commit/3abc4fb90fe59a90c2d8cccd27e310b20e5e2631)) -- Added `Collection::mapToGroups()` ([#18949](https://github.com/laravel/framework/pull/18949)) -- Added `FactoryBuilder::lazy()` method ([#18823](https://github.com/laravel/framework/pull/18823)) -- Support Redis Sentinel configuration ([#18850](https://github.com/laravel/framework/pull/18850)) -- Added `queue.prefix` option ([#18860](https://github.com/laravel/framework/pull/18860), [8510bf9](https://github.com/laravel/framework/commit/8510bf9986fffd8af58d288a297de573e78d97a5)) -- Allow `getDisplayableAttribute()` to be used in custom replacers ([#18895](https://github.com/laravel/framework/pull/18895)) -- Added `resourceMethodsWithoutModels()` method to `AuthorizesRequests` ([#18916](https://github.com/laravel/framework/pull/18916), [#18964](https://github.com/laravel/framework/pull/18964)) -- Added name to `home` route ([#18942](https://github.com/laravel/framework/pull/18942)) - -### Changed -- Return `PendingDispatch` for `Kernel::queue()` ([51647eb](https://github.com/laravel/framework/commit/51647eb701307e7682f7489b605a146e750abf0f)) -- Made `RedisManager::resolve()` public ([#18830](https://github.com/laravel/framework/pull/18830), [eb9b99d](https://github.com/laravel/framework/commit/eb9b99dfe80ca266bf675e8aaa3fdfdf6c4a69f3)) -- Changed email body color to match wrapper color ([#18824](https://github.com/laravel/framework/pull/18824)) -- Break and hyphenate long words in emails ([#18827](https://github.com/laravel/framework/pull/18827)) -- Force database migration to use the write PDO ([#18898](https://github.com/laravel/framework/pull/18898)) -- Support `JSON_PARTIAL_OUTPUT_ON_ERROR` on `JsonResponse` ([#18917](https://github.com/laravel/framework/pull/18917), [db5f011](https://github.com/laravel/framework/commit/db5f011d8ba9d0bcb5d768bea9d94688739f5b4c)) - -### Fixed -- Set connection on model factory ([#18846](https://github.com/laravel/framework/pull/18846), [95a0663](https://github.com/laravel/framework/commit/95a06638633359965961a11ab05967d32351cfdf)) -- Fixed route parameter binding for routes with leading slashes ([#18855](https://github.com/laravel/framework/pull/18855)) -- Don't call `cleanParameterBag()` twice during JSON request ([#18840](https://github.com/laravel/framework/pull/18840)) -- Prevent exception in `getActualClassNameForMorph()` when morph map is `null` ([#18921](https://github.com/laravel/framework/pull/18921)) -- Use protocol-relative URL in `mix()` helper ([#18943](https://github.com/laravel/framework/pull/18943)) -- Cast `$viaChannels` to array ([#18960](https://github.com/laravel/framework/pull/18960)) - - -## v5.4.19 (2017-04-16) - -### Added -- Added ability to send `link_names` parameter in Slack notification ([#18765](https://github.com/laravel/framework/pull/18765)) -- Added `Mailable::hasFrom()` method ([#18790](https://github.com/laravel/framework/pull/18790)) - -### Changed -- Made `Mailer` macroable ([#18763](https://github.com/laravel/framework/pull/18763)) -- Made `SessionGuard` macroable ([#18796](https://github.com/laravel/framework/pull/18796)) -- Improved queue worker output ([#18773](https://github.com/laravel/framework/pull/18773)) -- Added `newModelInstance()` method to Eloquent Builder ([#18775](https://github.com/laravel/framework/pull/18775)) -- Use assertions instead of exceptions in `MocksApplicationServices` ([#18774](https://github.com/laravel/framework/pull/18774)) - -### Fixed -- Fixed memory issue in `Container` ([#18812](https://github.com/laravel/framework/pull/18812)) -- Set database connection while retrieving models ([#18769](https://github.com/laravel/framework/pull/18769)) - - -## v5.4.18 (2017-04-10) - -### Added -- Added `assertSuccessful()` and `assertRedirect()` to `TestResponse` ([#18629](https://github.com/laravel/framework/pull/18629)) -- Added `assertSeeText()` and `assertDontSeeText()` to `TestResponse` ([#18690](https://github.com/laravel/framework/pull/18690)) -- Added `assertJsonMissing()` to `TestResponse` ([#18721](https://github.com/laravel/framework/pull/18721), [786b782](https://github.com/laravel/framework/commit/786b7821e0009a4288bff032443f2b1a273ee459)) -- Added support for attaching an image to Slack attachments `$attachment->image($url)`([#18664](https://github.com/laravel/framework/pull/18664)) -- Added `Validator::extendDependent()` to allow adding custom rules that depend on other fields ([#18654](https://github.com/laravel/framework/pull/18654)) -- Added support for `--parent` option on `make:controller` ([#18606](https://github.com/laravel/framework/pull/18606)) -- Added `MessageSent` event to `Mailer` ([#18744](https://github.com/laravel/framework/pull/18744), [6c5f3a4](https://github.com/laravel/framework/commit/6c5f3a47c6308d1d4f2f5912c34cb85f57f0aeed)) - -### Changed -- Don't trim leading slashes on local filesystem base URLs ([acd66fe](https://github.com/laravel/framework/commit/acd66fef646fd5f7ca54380d55bc8e2e2cbe64b6)) -- Accept variable on `@empty()` directive ([#18738](https://github.com/laravel/framework/pull/18738)) -- Added `string` validation rules to `AuthenticatesUsers` ([#18746](https://github.com/laravel/framework/pull/18746)) - -### Fixed -- Fixed an issue with `Collection::groupBy()` when the provided value is a boolean ([#18674](https://github.com/laravel/framework/pull/18674)) -- Bring back an old behaviour in resolving controller method dependencies ([#18646](https://github.com/laravel/framework/pull/18646)) -- Fixed job release when exception occurs ([#18737](https://github.com/laravel/framework/pull/18737)) -- Fixed eloquent `increment()` and `decrement()` update attributes ([#18739](https://github.com/laravel/framework/pull/18739), [1728a88](https://github.com/laravel/framework/commit/1728a887e450f997a0dcde2ef84be2947b05af42)) - - -## v5.4.17 (2017-04-03) - -### Added -- Added `getManager()` and `setManager()` to queue worker ([#18452](https://github.com/laravel/framework/pull/18452)) -- Added support for Pheanstalk's `$timeout` and `$persistent` options ([#18448](https://github.com/laravel/framework/pull/18448)) -- Added `Collection::times()` method ([#18457](https://github.com/laravel/framework/pull/18457)) -- Added PostgreSQL's `REAL` data type ([#18513](https://github.com/laravel/framework/pull/18513)) -- Added `flatMap` to collection higher order proxies ([#18529](https://github.com/laravel/framework/pull/18529)) -- Support multiple `--path` parameters with `migrate:reset` ([#18540](https://github.com/laravel/framework/pull/18540)) -- Store SparkPost `Transmission-ID` in the header after sending message ([#18594](https://github.com/laravel/framework/pull/18594)) - -### Changed -- Check for `Htmlable` instead of `HtmlString` in `Mailer::renderView()` ([#18459](https://github.com/laravel/framework/pull/18459), [da7b006](https://github.com/laravel/framework/commit/da7b006d8b236d8b29adb5f5f2696f1c2ec3e999)) -- Added mutex for schedule events ([#18295](https://github.com/laravel/framework/pull/18295), [ae2eb1f](https://github.com/laravel/framework/commit/ae2eb1f498aa6c2e6c45040d26fb9502eabab535)) -- Don't use helper functions in service providers ([#18506](https://github.com/laravel/framework/pull/18506), [#18521](https://github.com/laravel/framework/pull/18521)) -- Change `user_id` to unsigned integer in database session stub ([#18557](https://github.com/laravel/framework/pull/18557)) -- Improved performance of `UrlGenerator::isValidUrl()` ([#18566](https://github.com/laravel/framework/pull/18566)) - -### Fixed -- Handle missing or malformed `config/app.php` file ([#18466](https://github.com/laravel/framework/pull/18466), [92931cf](https://github.com/laravel/framework/commit/92931cffe48503dfe7095c23856da07de304fef2)) -- Only call `up` and `down` on migration if the method exists ([d27d94e](https://github.com/laravel/framework/commit/d27d94ed5220da3f6462c57eef122d8f40419ab1)) -- Fixed overwriting of routes with identical path and method ([#18475](https://github.com/laravel/framework/pull/18475), [5aee967](https://github.com/laravel/framework/commit/5aee9675038f0ec30ba4ed2c1eb9b544ac370c06)) -- Fixing model/route binding with identical name ([#18476](https://github.com/laravel/framework/pull/18476)) -- Allow `rollbackMigrations()` path to be with string ([#18535](https://github.com/laravel/framework/pull/18535)) -- Use `getStatusCode()` in `TestResponse::assertRedirect()` ([#18559](https://github.com/laravel/framework/pull/18559)) -- Case `parseIds()` to array in `InteractsWithPivotTable::sync()` ([#18547](https://github.com/laravel/framework/pull/18547)) -- Preserve route parameter names ([#18604](https://github.com/laravel/framework/pull/18604)) - - -## v5.4.16 (2017-03-21) - -### Added -- Added PHPDBG detection to `runningInConsole()` ([#18198](https://github.com/laravel/framework/pull/18198)) -- Added `Arr:wrap()` method ([#18216](https://github.com/laravel/framework/pull/18216)) -- Allow scheduling of queued jobs ([#18235](https://github.com/laravel/framework/pull/18235), [7bb67e2](https://github.com/laravel/framework/commit/7bb67e225646fb578c039cc0af130f7aa6858120)) -- Allow skipping mail sending if a listener to `MessageSending` returns `false` ([#18245](https://github.com/laravel/framework/pull/18245)) -- Added `BcryptHasher::cost()` method ([#18266](https://github.com/laravel/framework/pull/18266)) -- Added `Command::alert()` method ([#18272](https://github.com/laravel/framework/pull/18272)) -- Added `tap()` method to query builder ([#18284](https://github.com/laravel/framework/pull/18284)) -- Added `orderByDesc()` methods to query builder ([#18292](https://github.com/laravel/framework/pull/18292)) -- Added `Container::makeWith()` method ([#18271](https://github.com/laravel/framework/pull/18271), [#18320](https://github.com/laravel/framework/pull/18320)) -- Added `InteractsWithDatabase::assertSoftDeleted()` ([#18328](https://github.com/laravel/framework/pull/18328), [2d4e1f0](https://github.com/laravel/framework/commit/2d4e1f0fe0bae3c7e3304317a69d619e71e476cc), [f89f917](https://github.com/laravel/framework/commit/f89f917b256ad79df786c688b11247ce1e48299a)) -- Added ability to set queue parameters inside queued listeners ([#18375](https://github.com/laravel/framework/pull/18375), [cf461e2](https://github.com/laravel/framework/commit/cf461e23b6123ba6ed084d2fb8e8306482973b88)) -- Added `Model::setKeyType()` ([#18354](https://github.com/laravel/framework/pull/18354)) -- Output migration name before starting a migration or rollback ([#18379](https://github.com/laravel/framework/pull/18379), [e47e8b1](https://github.com/laravel/framework/commit/e47e8b16c1e65d752943faaa65db14ca323f5feb)) -- Added `pipeline()`, `transaction()`, and `executeRaw()` to `PhpRedisConnection` ([#18421](https://github.com/laravel/framework/pull/18421)) -- Added `@isset()` directive ([#18425](https://github.com/laravel/framework/pull/18425)) -- Added `tinyIncrements()` database schema method ([#18424](https://github.com/laravel/framework/pull/18424)) - -### Changed -- Throw exception when `bootstrap/cache` directory is not writable ([#18188](https://github.com/laravel/framework/pull/18188), [b4f0005](https://github.com/laravel/framework/commit/b4f000516166b0694e842d64f5b2fde1167d4690)) -- Use `resource_path()` helper in `MakeAuthCommand` ([#18215](https://github.com/laravel/framework/pull/18215)) -- Added `file_exists()` check to `Event::emailOutput()` ([c8eafa8](https://github.com/laravel/framework/commit/c8eafa8e6741dc5add4c5030aa7362744dcdab29)) -- Allow wildcards in MIME type validations ([#18243](https://github.com/laravel/framework/pull/18243)) -- Only push existing jobs back into the queue using `queue:retry` ([#18279](https://github.com/laravel/framework/pull/18279), [e874a56](https://github.com/laravel/framework/commit/e874a56e5b75663861aab13ff8e13b82050de54e)) -- Support file uploads in nested array ([#18276](https://github.com/laravel/framework/pull/18276)) -- Don't use `config()` helper in Mail component ([#18290](https://github.com/laravel/framework/pull/18290)) -- Return the insert ID from `DatabaseJob::release()` ([#18288](https://github.com/laravel/framework/pull/18288), [#18291](https://github.com/laravel/framework/pull/18291)) -- Changed `id` in failed jobs migration stub to `bigIncrements()` ([#18300](https://github.com/laravel/framework/pull/18300)) -- Prevent `make:auth` from overwriting existing views ([#18319](https://github.com/laravel/framework/pull/18319), [bef8f35](https://github.com/laravel/framework/commit/bef8f35694b7c22516a27929dbfc4c49032f78c6)) -- Ensure Mailable view data is not overridden by order of operations ([#18322](https://github.com/laravel/framework/pull/18322)) -- Use `getAuthIdentifier()` method in broadcasters ([#18351](https://github.com/laravel/framework/pull/18351)) -- Use atomic cache operation when checking for event overlaps ([8ebb5b8](https://github.com/laravel/framework/commit/8ebb5b859ae8f2382a1836a83a47542de234d63a)) -- Return pretty JSON response from `HasInDatabase::failureDescription()` ([#18377](https://github.com/laravel/framework/pull/18377)) -- Allow Validator extension to use array-style callable ([#18399](https://github.com/laravel/framework/pull/18399)) -- Pass the condition value to query builder's `when()` method ([#18419](https://github.com/laravel/framework/pull/18419)) -- Don't require returning the query from `when()` method ([#18422](https://github.com/laravel/framework/pull/18422)) - -### Fixed -- Fixed an issue with slots when passed content equals `null` ([#18246](https://github.com/laravel/framework/pull/18246)) -- Do require `Closure` in `orWhereHas()` ([#18277](https://github.com/laravel/framework/pull/18277)) -- Let PHP parse `@includeWhen` directive ([#18285](https://github.com/laravel/framework/pull/18285)) -- Only include `.php` files when loading database factories ([#18336](https://github.com/laravel/framework/pull/18336)) -- Fixed PHP 5.6 issue in `FileFactory::generateImage()` ([#18345](https://github.com/laravel/framework/pull/18345)) -- Allow `ImplicitRouteBinding` to match camelcase method parameter names ([#18307](https://github.com/laravel/framework/pull/18307), [4ae31a1](https://github.com/laravel/framework/commit/4ae31a154f81c2d76c7397dbdebfcac0e74e4ccd)) -- Fixing weird behaviour of `Connection::getConfig()` when `null` was passed ([#18356](https://github.com/laravel/framework/pull/18356)) -- Attempt to solve an issue with using `required_*` rules while the `ConvertEmptyStringToNull` middleware is applied ([#18376](https://github.com/laravel/framework/pull/18376)) -- Fixed faking of model events ([d6cb75c](https://github.com/laravel/framework/commit/d6cb75c057009c6316d4efd865dccb3c4a5c7b36)) -- Prevent model event result from firing observable events ([#18401](https://github.com/laravel/framework/pull/18401), [0607db0](https://github.com/laravel/framework/commit/0607db02ba9eeab0a22abe1dabb19536f4aa1ff2)) -- Fix issue in `authorizeResource()` with compound names ([#18435](https://github.com/laravel/framework/pull/18435)) - - -## v5.4.15 (2017-03-02) - -### Added -- Added `any()` method to `ViewErrorBag` ([#18176](https://github.com/laravel/framework/pull/18176)) -- Added `Storage` and `File` fakes ([#18178](https://github.com/laravel/framework/pull/18178), [#18180](https://github.com/laravel/framework/pull/18180)) - -### Changed -- Made queue worker properties `$shouldQuit` and `$paused` public ([e40c0e7](https://github.com/laravel/framework/commit/e40c0e7cd885156caa402d6d016cc686479736f4)) - -### Fixed -- Proxy `isset()` checks on `TestResponse` ([#18182](https://github.com/laravel/framework/pull/18182)) - - -## v5.4.14 (2017-03-01) - -### Added -- Added `Str::kebab()` and `kebab_case()` helper ([#18084](https://github.com/laravel/framework/pull/18084)) -- Added `Route::getActionMethod()` ([#18105](https://github.com/laravel/framework/pull/18105)) -- Support granular `$tries` and `$timeout` on `Mailable` ([#18103](https://github.com/laravel/framework/pull/18103)) -- Added context to the `assertJson()` response ([#18166](https://github.com/laravel/framework/pull/18166), [da2c892](https://github.com/laravel/framework/commit/da2c8923328a3f852331fca5778214e05d8e6fde)) -- Add `whereNotIn()` and `whereNotInStrict()` to `Collection` ([#18157](https://github.com/laravel/framework/pull/18157)) - -### Changed -- Create `TestResponse` using composition instead of inheritance ([#18089](https://github.com/laravel/framework/pull/18089)) -- Changed visibility of `Pivot::$parent` from `protected` to `public` ([#18096](https://github.com/laravel/framework/pull/18096)) -- Catch Sqlite3 deadlocks in `DetectsDeadlocks` ([#18107](https://github.com/laravel/framework/pull/18107)) -- Use `fromRawAttributes()` when in `Model::newPivot()` ([#18127](https://github.com/laravel/framework/pull/18127), [063e5ae](https://github.com/laravel/framework/commit/063e5ae341c32220d4679d0215ab9b263d0c8a33)) -- Use default connection in `DatabaseManager::purge()` when no connection name is provided ([#18128](https://github.com/laravel/framework/pull/18128)) -- Convert rule objects only once to string ([#18141](https://github.com/laravel/framework/pull/18141)) -- Respect `ShouldQueue` contract in `Mailer::send()` ([#18144](https://github.com/laravel/framework/pull/18144), [717f1f6](https://github.com/laravel/framework/commit/717f1f67eb7bb2fac7c57311f0afaa637375407d), [#18160](https://github.com/laravel/framework/pull/18160)) - -### Fixed -- Don't use `value()` helper in `BoundMethod` class ([#18075](https://github.com/laravel/framework/pull/18075)) -- Don't require manifest file when running `npm run hot` ([#18088](https://github.com/laravel/framework/pull/18088)) -- Fixed injection placement of dependencies for routing method parameters ([#17973](https://github.com/laravel/framework/pull/17973)) -- Return `false` from `Model::fireModelEvent()` if custom model event returns `false` ([c5a6290](https://github.com/laravel/framework/commit/c5a62901589e313474376e241549ac31d9d3c695)) -- Fixed `firstOrFail()` on relation setting the wrong model on `ModelNotFoundException` ([#18138](https://github.com/laravel/framework/pull/18138)) -- Fixed `RateLimiter` setting initial attempts count to `2` ([#18139](https://github.com/laravel/framework/pull/18139)) -- Fixed compiled `DELETE` query when using `JOIN` with aliases ([#18156](https://github.com/laravel/framework/pull/18156), [e09b9eb](https://github.com/laravel/framework/commit/e09b9eb62715706a0368acf0af7911340e0a3298)) -- Fixed validating `present` in combination with `nullable` ([#18173](https://github.com/laravel/framework/pull/18173)) - - -## v5.4.13 (2017-02-22) - -### Added -- Add `$default` parameter to `Collection::when()` method ([#17941](https://github.com/laravel/framework/pull/17941)) -- Support `--resource` argument on `make:model` command ([#17955](https://github.com/laravel/framework/pull/17955)) -- Added `replaceDimensions()` for validator messages ([#17946](https://github.com/laravel/framework/pull/17946), [b219058](https://github.com/laravel/framework/commit/b219058063336dd9cc851349e287052d76bcc18e)) -- Allow Slack notifications to use image urls ([#18011](https://github.com/laravel/framework/pull/18011)) -- Added `@includeWhen($condition, $view, $data)` directive ([#18047](https://github.com/laravel/framework/pull/18047)) - -### Changed -- Prevent Blade from compiling statements inside comments ([#17952](https://github.com/laravel/framework/pull/17952)) -- Don't flash empty array to session, if `withInput()` is given empty array ([#17979](https://github.com/laravel/framework/pull/17979)) -- Use the pagination translation strings in paginator templates ([#18009](https://github.com/laravel/framework/pull/18009)) -- Use `getAuthPassword()` method in `AuthenticateSession` middleware ([#17965](https://github.com/laravel/framework/pull/17965)) -- Return `null` from `Gate::getPolicyFor()` if given class is not a string ([#17972](https://github.com/laravel/framework/pull/17972)) -- Add missing methods to the `Job` interface ([#18034](https://github.com/laravel/framework/pull/18034)) -- Improved PostgreSQL table existence check ([#18041](https://github.com/laravel/framework/pull/18041)) -- Allow `getActualClassNameForMorph()` used by `morphInstanceTo()` to be overridden ([#18058](https://github.com/laravel/framework/pull/18058)) - -### Fixed -- Fixed `@lang` directive when used with JSON file ([#17919](https://github.com/laravel/framework/pull/17919), [2bd35c1](https://github.com/laravel/framework/commit/2bd35c13678faae68ee0bbe95d46b12f77357c98)) -- Improved image `dimensions` validation rule ([#17943](https://github.com/laravel/framework/pull/17943), [#17944](https://github.com/laravel/framework/pull/17944), [#17963](https://github.com/laravel/framework/pull/17963), [#17980](https://github.com/laravel/framework/pull/17980)) -- Fixed `$willBeAvailableAt` having the wrong time if using `$retryAfter` in `MaintenanceModeException` ([#17991](https://github.com/laravel/framework/pull/17991)) -- Trim spaces while collecting section name ([#18012](https://github.com/laravel/framework/pull/18012)) -- Fixed implementation of `SqsQueue::size()` ([#18037](https://github.com/laravel/framework/pull/18037)) -- Fixed bug in `PasswordBroker::deleteToken()` ([#18045](https://github.com/laravel/framework/pull/18045)) -- Fixed route parameters binding ([#17973](https://github.com/laravel/framework/pull/17973)) - - -## v5.4.12 (2017-02-15) - -### Added -- Allow configuration of Faker locale through `app.faker_locale` config ([#17895](https://github.com/laravel/framework/pull/17895)) -- Added `when()` method to `Collection` class ([#17917](https://github.com/laravel/framework/pull/17917)) -- Check for files in `request()` helper ([e08714d](https://github.com/laravel/framework/commit/e08714d65a2f3ab503fd59061aa8ab2fc37e19a4), [18d1648](https://github.com/laravel/framework/commit/18d16486103292c681c29f503b27bf3affb5a2d3)) -- Added `TestResponse::assertSessionHasErrors()` method ([dbaf3b1](https://github.com/laravel/framework/commit/dbaf3b10f1daa483a1db840c60ec95337c9a1f6e)) - -### Changed -- Prevent duplication of embedded files in `Mail\Message` ([#17877](https://github.com/laravel/framework/pull/17877)) -- Only unserialize data if needed in `CallQueuedListener` ([964fb7f](https://github.com/laravel/framework/commit/964fb7fc1c80948beb521f1672d0b250eedea94d)) -- Made a couple of properties public ([614b94a](https://github.com/laravel/framework/commit/614b94a15564352f3775d3bc81097f89ba79e586)) -- Handle `Model` instances in `Authorize` middleware ([#17898](https://github.com/laravel/framework/pull/17898)) -- Use `asset()` helper in `app.stub` ([#17896](https://github.com/laravel/framework/pull/17896)) -- Test PhpRedis connection if extension is loaded ([#17882](https://github.com/laravel/framework/pull/17882), [#17910](https://github.com/laravel/framework/pull/17910)) -- Use `Carbon::setTestNow()` in all tests ([#17937](https://github.com/laravel/framework/pull/17937)) - -### Fixed -- Make sub select union queries work with SQLite ([#17890](https://github.com/laravel/framework/pull/17890)) -- Fix `zRangeByScore()` options syntax for PhpRedis ([#17912](https://github.com/laravel/framework/pull/17912)) - - -## v5.4.11 (2017-02-10) - -### Added -- Support `Encrypt` and `TrustServerCertificate` options on SqlServer connections ([#17841](https://github.com/laravel/framework/pull/17841)) -- Support custom pivot models in `MorphToMany::newPivot()` ([#17862](https://github.com/laravel/framework/pull/17862)) -- Support `Arrayable` objects in Eloquent's `whereKey()` method ([#17812](https://github.com/laravel/framework/pull/17812)) - -### Changed -- Use `app.locale` lang attribute in `app.stub` ([#17827](https://github.com/laravel/framework/pull/17827)) -- Throw `JsonEncodingException` when JSON encoder fails to encode eloquent attribute ([#17804](https://github.com/laravel/framework/pull/17804), [11e89f3](https://github.com/laravel/framework/commit/11e89f35b0f1fc1654d51bc31c865ab796da9f46)) -- Ensure file `hashName()` is unique ([#17879](https://github.com/laravel/framework/pull/17879), [830f194](https://github.com/laravel/framework/commit/830f194f9f72cd3de31151990c7aad6db52f1e86)) - -### Fixed -- Added missing `Str` class import to `TestResponse` ([#17835](https://github.com/laravel/framework/pull/17835)) -- Fixed PhpRedis’ `zadd()` method signature ([#17832](https://github.com/laravel/framework/pull/17832)) - - -## v5.4.10 (2017-02-08) - -### Added -- Added Blade `@prepend` directive ([#17696](https://github.com/laravel/framework/pull/17696)) -- Added `Collection::tap()` method ([#17756](https://github.com/laravel/framework/pull/17756)) -- Allow multiple manifest files for `mix()` helper ([#17759](https://github.com/laravel/framework/pull/17759)) -- Adding facility to `Log:useSyslog()` ([#17789](https://github.com/laravel/framework/pull/17789)) -- Added macros to Eloquent builder ([#17719](https://github.com/laravel/framework/pull/17719)) -- Added `TestResponse::assertJsonFragment()` method ([#17809](https://github.com/laravel/framework/pull/17809)) - -### Changed -- Use `route()` helper instead of `url()` in authentication component ([#17718](https://github.com/laravel/framework/pull/17718)) -- Ensure that the `map()` method exists before calling in `RouteServiceProvider::loadRoutes()` ([#17784](https://github.com/laravel/framework/pull/17784)) -- Clean up how events are dispatched ([8c90e7f](https://github.com/laravel/framework/commit/8c90e7fe31bee11bd496050a807c790da12cc519), [c9e8854](https://github.com/laravel/framework/commit/c9e8854f9a9954e29ee5cdb0ca757736a65cbe15)) -- Changed job `name` to `displayName` ([4e85a9a](https://github.com/laravel/framework/commit/4e85a9aaeb97a56a203a152ee7b114daaf07c6d8), [d033626](https://github.com/laravel/framework/commit/d0336261cdb63df6fff666490a6e9987cba5c0f0)) -- Made plain string job payloads more similar to object based payloads ([bd49288](https://github.com/laravel/framework/commit/bd49288c551c47f4d15cb371fabfd2b0670b903d)) -- Bring back pluralization rules for translations ([#17826](https://github.com/laravel/framework/pull/17826)) - -### Fixed -- Apply overrides in `factory()->raw()` method ([#17763](https://github.com/laravel/framework/pull/17763)) - - -## v5.4.9 (2017-02-03) - -### Added -- Added `Macroable` trait to `TestResponse` ([#17726](https://github.com/laravel/framework/pull/17726)) -- Added container alias for the Redis connection instance ([#17722](https://github.com/laravel/framework/pull/17722)) -- Added `raw()` method to `FactoryBuilder` ([#17734](https://github.com/laravel/framework/pull/17734)) -- Added `json()` as alias for `decodeResponseJson` method on `TestResponse` ([#17735](https://github.com/laravel/framework/pull/17735)) - -### Changed -- Use `route()` helper instead of `url()` in authentication component ([#17718](https://github.com/laravel/framework/pull/17718)) -- Added `Jedi` to uncountable list for pluralization ([#17729](https://github.com/laravel/framework/pull/17729)) -- Return relative URL from `mix()` helper ([#17727](https://github.com/laravel/framework/pull/17727)) -- Sort foreign keys on eloquent relations ([#17730](https://github.com/laravel/framework/pull/17730)) -- Properly set the JSON payload of `FormRequests` instead of re-building it ([#17760](https://github.com/laravel/framework/pull/17760), [2d725c2](https://github.com/laravel/framework/commit/2d725c205a7f700f0143670def471e0b5082a420)) -- Use `isset()` instead of `array_key_exists()` in `HasAttributes::getAttributeFromArray()` ([#17739](https://github.com/laravel/framework/pull/17739)) - -### Fixed -- Added missing `sleep` option to `queue:listen` ([59ef5bf](https://github.com/laravel/framework/commit/59ef5bff290195445925dc89a160782485bfc425)) -- Switched to strict comparison `TrimStrings` middleware ([#17741](https://github.com/laravel/framework/pull/17741)) - - -## v5.4.8 (2017-02-01) - -### Added -- Added `TestResponse::assertJsonStructure()` ([#17700](https://github.com/laravel/framework/pull/17700)) -- Added `Macroable` trait to Eloquent `Relation` class ([#17707](https://github.com/laravel/framework/pull/17707)) - -### Changed -- Move `shouldKill()` check from `daemon()` to `stopIfNecessary()` ([8403b34](https://github.com/laravel/framework/commit/8403b34a6de212e5cd98d40333fd84d112fbb9f7)) -- Removed `isset()` check from `validateSame()` ([#17708](https://github.com/laravel/framework/pull/17708)) - -### Fixed -- Added `force` option to `queue:listen` signature ([#17716](https://github.com/laravel/framework/pull/17716)) -- Fixed missing `return` in `HasManyThrough::find()` and `HasManyThrough::findMany()` ([#17717](https://github.com/laravel/framework/pull/17717)) - - -## v5.4.7 (2017-01-31) - -### Added -- Added `Illuminate\Support\Facades\Schema` to `notifications.stub` ([#17664](https://github.com/laravel/framework/pull/17664)) -- Added support for numeric arguments to `@break` and `@continue` ([#17603](https://github.com/laravel/framework/pull/17603)) - -### Changed -- Use `usesTimestamps()` in Eloquent traits ([#17612](https://github.com/laravel/framework/pull/17612)) -- Default to `null` if amount isn't set in `factory()` helper ([#17614](https://github.com/laravel/framework/pull/17614)) -- Normalize PhpRedis GET/MGET results ([#17196](https://github.com/laravel/framework/pull/17196)) -- Changed visibility of `Validator::addRules()` from `protected` to `public` ([#17654](https://github.com/laravel/framework/pull/17654)) -- Gracefully handle `SIGTERM` signal in queue worker ([b38ba01](https://github.com/laravel/framework/commit/b38ba016283c6491d6e525caeb6206b2b04321fc), [819888c](https://github.com/laravel/framework/commit/819888ca1776581225d57e00fdc4ba709cbcc5d0)) -- Support inspecting multiple events of same type using `Event` fake ([55be2ea](https://github.com/laravel/framework/commit/55be2ea35ccd2e450f9ffad23fd7ac446c035013)) -- Replaced hard-coded year in plain-text markdown emails ([#17684](https://github.com/laravel/framework/pull/17684)) -- Made button component in plain-text markdown emails easier to read ([#17683](https://github.com/laravel/framework/pull/17683)) - -### Fixed -- Set `Command::$name` in `Command::configureUsingFluentDefinition()` ([#17610](https://github.com/laravel/framework/pull/17610)) -- Support post size `0` (unlimited) in `ValidatePostSize` ([#17607](https://github.com/laravel/framework/pull/17607)) -- Fixed method signature issues in `PhpRedisConnection` ([#17627](https://github.com/laravel/framework/pull/17627)) -- Fixed `BelongsTo` not accepting id of `0` in foreign relations ([#17668](https://github.com/laravel/framework/pull/17668)) -- Support double quotes with `@section()` ([#17677](https://github.com/laravel/framework/pull/17677)) -- Fixed parsing explicit validator rules ([#17681](https://github.com/laravel/framework/pull/17681)) -- Fixed `SessionGuard::recaller()` when request is `null` ([#17688](https://github.com/laravel/framework/pull/17688), [565456d](https://github.com/laravel/framework/commit/565456d89e8d6378c213edb7e9d0724fa8a5f473)) -- Added missing `force` and `tries` options for `queue:listen` ([#17687](https://github.com/laravel/framework/pull/17687)) -- Fixed how reservation works when queue is paused ([9d348c5](https://github.com/laravel/framework/commit/9d348c5d57873bfcca86cff1987e22472d1f0e5b)) - - -## v5.4.6 (2017-01-27) - -### Added -- Generate non-existent models with `make:controller` ([#17587](https://github.com/laravel/framework/pull/17587), [382b78c](https://github.com/laravel/framework/commit/382b78ca12282c580ff801a00b2e52faf50c6d38)) -- Added `TestResponse::dump()` method ([#17600](https://github.com/laravel/framework/pull/17600)) - -### Changed -- Switch to `ViewFactory` contract in `Mail/Markdown` ([#17591](https://github.com/laravel/framework/pull/17591)) -- Use implicit binding when generating controllers with `make:model` ([#17588](https://github.com/laravel/framework/pull/17588)) -- Made PhpRedis method signatures compatibility with Predis ([#17488](https://github.com/laravel/framework/pull/17488)) -- Use `config('app.name')` in `markdown/message.blade.php` ([#17604](https://github.com/laravel/framework/pull/17604)) -- Use `getStatusCode()` instead of `status()` in `TestResponse::fromBaseResponse()` ([#17590](https://github.com/laravel/framework/pull/17590)) - -### Fixed -- Fixed loading of `.env.testing` when running PHPUnit ([#17596](https://github.com/laravel/framework/pull/17596)) - - -## v5.4.5 (2017-01-26) - -### Fixed -- Fixed database session data not persisting ([#17584](https://github.com/laravel/framework/pull/17584)) - - -## v5.4.4 (2017-01-26) - -### Added -- Add `hasMiddlewareGroup()` and `getMiddlewareGroups()` method to `Router` ([#17576](https://github.com/laravel/framework/pull/17576)) - -### Fixed -- Fixed `--database` option on `migrate` commands ([#17574](https://github.com/laravel/framework/pull/17574)) -- Fixed `$sequence` being always overwritten in `PostgresGrammar::compileInsertGetId()` ([#17570](https://github.com/laravel/framework/pull/17570)) - -### Removed -- Removed various unused parameters from view compilers ([#17554](https://github.com/laravel/framework/pull/17554)) -- Removed superfluous `ForceDelete` extension from `SoftDeletingScope` ([#17552](https://github.com/laravel/framework/pull/17552)) - - -## v5.4.3 (2017-01-25) - -### Added -- Mock `dispatch()` method in `MocksApplicationServices` ([#17543](https://github.com/laravel/framework/pull/17543), [d974a88](https://github.com/laravel/framework/commit/d974a8828221ba8673cc4f6d9124d1d33f3de447)) - -### Changed -- Moved `$forElseCounter` property from `BladeCompiler` to `CompilesLoops` ([#17538](https://github.com/laravel/framework/pull/17538)) - -### Fixed -- Fixed bug in `Router::pushMiddlewareToGroup()` ([1054fd2](https://github.com/laravel/framework/commit/1054fd2523913e59e980553b5411a22f16ecf817)) -- Fixed indentation in `Notifications/resources/views/email.blade.php` ([0435cfc](https://github.com/laravel/framework/commit/0435cfcf171908432d88e447fe4021998e515b9f)) - - -## v5.4.2 (2017-01-25) - -### Fixed -- Fixed removal of reset tokens after password reset ([#17524](https://github.com/laravel/framework/pull/17524)) - - -## v5.4.1 (2017-01-24) - -### Fixed -- Fixed view parent placeholding ([64f7e9c](https://github.com/laravel/framework/commit/64f7e9c4e37637df7b0820b11d5fcee1c1cca58d)) - -## v5.4.0 (2017-01-24) - -### General -- Added real-time facades 😈 ([feb52bf](https://github.com/laravel/framework/commit/feb52bf966c0ea517ec0cf688b5a2534b50a8268)) -- Added `retry()` helper ([e3bd359](https://github.com/laravel/framework/commit/e3bd359d52cee0ba8db9673e45a8221c1c1d95d6), [52e9381](https://github.com/laravel/framework/commit/52e9381d3d64631f2842c1d86fee2aa64a6c73ac)) -- Added `array_wrap()` helper function ([0f76617](https://github.com/laravel/framework/commit/0f766177e4ac42eceb00aa691634b00a77b18b59)) -- Added default 503 error page into framework ([855a8aa](https://github.com/laravel/framework/commit/855a8aaca2903015e3fe26f756e73af9f1b98374), [#16848](https://github.com/laravel/framework/pull/16848)) -- Added `Encrypter::encryptString()` to bypass serialization ([9725a8e](https://github.com/laravel/framework/commit/9725a8e7d0555474114f5cad9249fe8fe556836c)) -- Removed compiled class file generation and deprecated `ServiceProvider::compiles()` ([#17003](https://github.com/laravel/framework/pull/17003), [733d829](https://github.com/laravel/framework/commit/733d829d6551dde2f290b6c26543dd08956e82e7)) -- Renamed `DetectEnvironment` to `LoadEnvironmentVariables` ([c36874d](https://github.com/laravel/framework/commit/c36874dda29d8eb9f9364c4bd308c7ee10060c25)) -- Switched to `::class` notation across the codebase ([#17357](https://github.com/laravel/framework/pull/17357)) - -### Authentication -- Secured password reset tokens against timing attacks and compromised databases ([#16850](https://github.com/laravel/framework/pull/16850), [9d674b0](https://github.com/laravel/framework/commit/9d674b053145968ff9060b930a644ddd7851d66f)) -- Refactored authentication component ([7b48bfc](https://github.com/laravel/framework/commit/7b48bfccf9ed12c71461651bbf52a3214b58d82e), [5c4541b](https://github.com/laravel/framework/commit/5c4541bc43f22b0d99c5cc6db38781060bff836f)) -- Added names to password reset routes ([#16988](https://github.com/laravel/framework/pull/16988)) -- Stopped touching the user timestamp when updating the `remember_token` ([#17135](https://github.com/laravel/framework/pull/17135)) - -### Authorization -- Consider interfaces and extended classes in `Gate::resolvePolicyCallback()` ([#15757](https://github.com/laravel/framework/pull/15757)) - -### Blade -- Added Blade components and slots ([e8d2a45](https://github.com/laravel/framework/commit/e8d2a45479abd2ba6b524293ce5cfb599c8bf910), [a00a201](https://github.com/laravel/framework/commit/a00a2016a4ff6518b60845745fc0533058f6adc6)) -- Refactored Blade component ([7cdb6a6](https://github.com/laravel/framework/commit/7cdb6a6f6b77c91906c4ad0c6110b30042a43277), [5e394bb](https://github.com/laravel/framework/commit/5e394bb2c4b20833ea07b052823fe744491bdbd5)) -- Refactored View component ([#17018](https://github.com/laravel/framework/pull/17018), [bb998dc](https://github.com/laravel/framework/commit/bb998dc23e7f4da5820b61fb5eb606fe4a654a2a)) -- Refactored Blade `@parent` compilation ([#16033](https://github.com/laravel/framework/pull/16033), [16f72a5](https://github.com/laravel/framework/commit/16f72a5a580b593ac804bc0b2fdcc6eb278e55b2)) -- Added support for translation blocks in Blade templates ([7179935](https://github.com/laravel/framework/commit/71799359b7e74995be862e498d1b21841ff55fbc)) -- Don't reverse the order of `@push`ed data ([#16325](https://github.com/laravel/framework/pull/16325)) -- Allow view data to be passed Paginator methods ([#17331](https://github.com/laravel/framework/pull/17331)) -- Add `mix()` helper method ([6ea4997](https://github.com/laravel/framework/commit/6ea4997fcf7cf0ae4c18bce9418817ff00e4727f)) -- Escape inline sections content ([#17453](https://github.com/laravel/framework/pull/17453)) - -### Broadcasting -- Added model binding in broadcasting channel definitions ([#16120](https://github.com/laravel/framework/pull/16120), [515d97c](https://github.com/laravel/framework/commit/515d97c1f3ad4797876979d450304684012142d6)) -- Added `Dispatchable::broadcast()` [0fd8f8d](https://github.com/laravel/framework/commit/0fd8f8de75545b5701e59f51c88d02c12528800a) -- Switched to broadcasting events using new style jobs ([#17433](https://github.com/laravel/framework/pull/17433)) - -### Cache -- Added `RedisStore::add()` to store an item in the cache if the key doesn't exist ([#15877](https://github.com/laravel/framework/pull/15877)) -- Added `cache:forget` command ([#16201](https://github.com/laravel/framework/pull/16201), [7644977](https://github.com/laravel/framework/commit/76449777741fa1d7669028973958a7e4a5e64f71)) -- Refactored cache events ([b7454f0](https://github.com/laravel/framework/commit/b7454f0e67720c702d8f201fd6ca81db6837d461), [#17120](https://github.com/laravel/framework/pull/17120)) -- `Cache::flush()` now returns boolean ([#15831](https://github.com/laravel/framework/pull/15831), [057492d](https://github.com/laravel/framework/commit/057492d31c569e96a3ba2f99722112a9762c6071)) - -### Collections -- Added higher-order messages for the collections ([#16267](https://github.com/laravel/framework/pull/16267), [e276b3d](https://github.com/laravel/framework/commit/e276b3d4bf2a124c4eb5975a8a2724b8c806139a), [2b7ab30](https://github.com/laravel/framework/commit/2b7ab30e0ec56ac4e4093d7f2775da98086c8000), [#16274](https://github.com/laravel/framework/pull/16274), [724950a](https://github.com/laravel/framework/commit/724950a42c225c7b53c56283c01576b050fea37a), [#17000](https://github.com/laravel/framework/pull/17000)) -- Allow collection macros to be proxied ([#16749](https://github.com/laravel/framework/pull/16749)) -- Added operator support to `Collection::contains()` method ([#16791](https://github.com/laravel/framework/pull/16791)) -- Renamed `every()` method to `nth()` and added new `every()` to determine if all items pass the given test ([#16777](https://github.com/laravel/framework/pull/16777)) -- Allow passing an array to `Collection::find()` ([#16849](https://github.com/laravel/framework/pull/16849)) -- Always return a collection when calling `Collection::random()` with a parameter ([#16865](https://github.com/laravel/framework/pull/16865)) -- Don't renumber the keys and keep the input array order in `mapWithKeys()` ([#16564](https://github.com/laravel/framework/pull/16564)) - -### Console -- Added `--model` to `make:controller` command to generate resource controller with type-hinted model ([#16787](https://github.com/laravel/framework/pull/16787)) -- Require confirmation for `key:generate` command in production ([#16804](https://github.com/laravel/framework/pull/16804)) -- Added `ManagesFrequencies` trait ([e238299](https://github.com/laravel/framework/commit/e238299f12ee91a65ac021feca29b870b05f5dd7)) -- Added `Queueable` to queued listener stub ([dcd64b6](https://github.com/laravel/framework/commit/dcd64b6c36d1e545c1c2612764ec280c47fdea97)) -- Switched from file to cache based Schedule overlap locking ([#16196](https://github.com/laravel/framework/pull/16196), [5973f6c](https://github.com/laravel/framework/commit/5973f6c54ccd0d99e15f055c5a16b19b8c45db91)) -- Changed namespace generation in `GeneratorCommand` ([de9e03d](https://github.com/laravel/framework/commit/de9e03d5bd80d32a936d30ab133d2df0a3fa1d8d)) -- Added `Command::$hidden` and `ScheduleFinishCommand` ([#16806](https://github.com/laravel/framework/pull/16806)) -- Moved all framework command registrations into `ArtisanServiceProvider` ([954a333](https://github.com/laravel/framework/commit/954a33371bd7f7597eae6fce2ed1d391a2268099), [baa6054](https://github.com/laravel/framework/commit/baa605424a4448ab4f1c6068d8755ecf83bde665), [87bd2a9](https://github.com/laravel/framework/commit/87bd2a9e6c79715a9c73ca6134074919ede1a0e7)) -- Support passing output buffer to `Artisan::call()` ([#16930](https://github.com/laravel/framework/pull/16930)) -- Moved `tinker` into an external package ([#17002](https://github.com/laravel/framework/pull/17002)) -- Refactored queue commands ([07a9402](https://github.com/laravel/framework/commit/07a9402f5d1b2fb5dedc22751a59914ebcf41562), [a82a25f](https://github.com/laravel/framework/commit/a82a25f58252eab6831a0efde35a17403710abdc), [f2beb2b](https://github.com/laravel/framework/commit/f2beb2bbce11433283ba52744dbe7134aa55cbfa)) -- Allow tasks to be scheduled on weekends ([#17085](https://github.com/laravel/framework/pull/17085)) -- Allow console events to be macroable ([#17107](https://github.com/laravel/framework/pull/17107)) - -### Container -- Added `Container::factory()` method to the Container contract ([#15430](https://github.com/laravel/framework/pull/15430)) -- Added support for binding methods to the container ([#16800](https://github.com/laravel/framework/pull/16800), [1fa8ea0](https://github.com/laravel/framework/commit/1fa8ea02c096d09bea909b7bffa24b861dc76240)) -- Trigger callback when binding an extension or resolving callback to an alias ([c99098f](https://github.com/laravel/framework/commit/c99098fc85c9633db578f70fba454184609c515d)) -- Support contextual binding with aliases ([c99098f](https://github.com/laravel/framework/commit/c99098fc85c9633db578f70fba454184609c515d)) -- Removed `$parameters` from `Application::make()` and `app()`/`resolve()` helpers ([#17071](https://github.com/laravel/framework/pull/17071), [#17060](https://github.com/laravel/framework/pull/17060)) -- Removed `Container::share()` ([1a1969b](https://github.com/laravel/framework/commit/1a1969b6e6f793c3b2a479362641487ee9cbf736)) -- Removed `Container::normalize()` ([ff993b8](https://github.com/laravel/framework/commit/ff993b806dcb21ba8a5367594e87d113338c1670)) - -### DB -- Refactored all database components (_too many commits, sorry_) -- Allow rolling back to a given transaction save-point ([#15876](https://github.com/laravel/framework/pull/15876)) -- Added `$values` parameter to `Builder::firstOrNew()` ([#15567](https://github.com/laravel/framework/pull/15567)) -- Allow dependency injection on database seeders `run()` method ([#15959](https://github.com/laravel/framework/pull/15959)) -- Added support for joins when deleting deleting records using SqlServer ([#16618](https://github.com/laravel/framework/pull/16618)) -- Added collation support to `SQLServerGrammar` ([#16227](https://github.com/laravel/framework/pull/16227)) -- Don't rollback to save-points on deadlock (nested transaction) ([#15932](https://github.com/laravel/framework/pull/15932)) -- Improve `Connection::selectOne()` performance by switching to `array_shift()` ([#16188](https://github.com/laravel/framework/pull/16188)) -- Added `having()` shortcut ([#17160](https://github.com/laravel/framework/pull/17160)) -- Added customer connection resolver ([#17248](https://github.com/laravel/framework/pull/17248)) -- Support aliasing database names with spaces ([#17312](https://github.com/laravel/framework/pull/17312)) -- Support column aliases using `chunkById()` ([#17034](https://github.com/laravel/framework/pull/17034)) -- Execute queries with locks only on write connection ([#17386](https://github.com/laravel/framework/pull/17386)) -- Added `compileLock()` method to `SqlServerGrammar` ([#17424](https://github.com/laravel/framework/pull/17424)) - -### Eloquent -- Refactored Eloquent (_too many commits, sorry_) -- Added support for object-based events for native Eloquent events ([e7a724d](https://github.com/laravel/framework/commit/e7a724d3895f2b24b98c0cafb1650f2193351d83), [9770d1a](https://github.com/laravel/framework/commit/9770d1a64c1010daf845fcebfcc4695a30d8df2d)) -- Added custom class support for pivot models ([#14293](https://github.com/laravel/framework/pull/14293), [5459777](https://github.com/laravel/framework/commit/5459777c90ff6d0888bd821027c417d57cc89981)) -- Use the model's primary key instead of `id` in `Model::getForeignKey()` ([#16396](https://github.com/laravel/framework/pull/16396)) -- Made `date` and `datetime` cast difference more explicit ([#16799](https://github.com/laravel/framework/pull/16799)) -- Use `getKeyType()` instead of `$keyType` in `Model` ([#16608](https://github.com/laravel/framework/pull/16608)) -- Only detach all associations if no parameter is passed to `BelongsToMany::detach()` ([#16144](https://github.com/laravel/framework/pull/16144)) -- Return a database collection from `HasOneOrMany::createMany()` ([#15944](https://github.com/laravel/framework/pull/15944)) -- Throw `JsonEncodingException` when `Model::toJson()` fails ([#16159](https://github.com/laravel/framework/pull/16159), [0bda866](https://github.com/laravel/framework/commit/0bda866a475de524eeff3e7f7471031dd64cf2d3)) -- Default foreign key for `belongsTo()` relationship is now dynamic ([#16847](https://github.com/laravel/framework/pull/16847)) -- Added `whereKey()` method ([#16558](https://github.com/laravel/framework/pull/16558)) -- Use parent connection if related model doesn't specify one ([#16103](https://github.com/laravel/framework/pull/16103)) -- Enforce an `orderBy` clause for `chunk()` ([#16283](https://github.com/laravel/framework/pull/16283), [#16513](https://github.com/laravel/framework/pull/16513)) -- Added `$connection` parameter to `create()` and `forceCreate()` ([#17392](https://github.com/laravel/framework/pull/17392)) - -### Events -- Removed event priorities ([dbbfc62](https://github.com/laravel/framework/commit/dbbfc62beff1625b0d45bbf39650d047555cf4fa), [#17245](https://github.com/laravel/framework/pull/17245), [f83edc1](https://github.com/laravel/framework/commit/f83edc1cb820523fd933c3d3c0430a1f63a073ec)) -- Allow queued handlers to specify their queue and connection ([fedd4cd](https://github.com/laravel/framework/commit/fedd4cd4d900656071d44fc1ee9c83e6de986fa8)) -- Converted `locale.changed` event into `LocaleUpdated` class ([3385fdc](https://github.com/laravel/framework/commit/3385fdc0f8e4890ab57261755bcbbf79f9ec828d)) -- Unified wording ([2dcde69](https://github.com/laravel/framework/commit/2dcde6983ffbb4faf1c238544b51831b33c3a857)) -- Allow chaining queueable methods onto trait dispatch ([9fde549](https://github.com/laravel/framework/commit/9fde54954c326b9021476aa87c96bf43a7885bcc)) -- Removed `Queueable` trait from event listeners subs ([2a90ef4](https://github.com/laravel/framework/commit/2a90ef46a2121783f8c5c8f20274634cde115612)) - -### Filesystem -- Use UUID instead of `md5()` for generating file names in `FileHelpers` ([#16193](https://github.com/laravel/framework/pull/16193)) -- Allow array of options on `Filesystem` operations ([481f760](https://github.com/laravel/framework/commit/481f76000c861e3e2540dcdda986fb44622ccbbe)) - -### HTTP -- Refactored session component ([66976ba](https://github.com/laravel/framework/commit/66976ba3f559ee6ede4cc865ea995996cd42ee1b), [d9e0a6a](https://github.com/laravel/framework/commit/d9e0a6a03891d16ed6a71151354445fbdc9e6f50)) -- Added `Illuminate\Http\Request\Concerns` traits ([4810e9d](https://github.com/laravel/framework/commit/4810e9d1bc118367f3d70cd6f64f1d4c4acf85ca)) -- Use variable-length method signature for `CookieJar::queue()` ([#16290](https://github.com/laravel/framework/pull/16290), [ddabaaa](https://github.com/laravel/framework/commit/ddabaaa6a8ce16876ddec36be1391eae14649aea)) -- Added `FormRequestServiceProvider` ([b892805](https://github.com/laravel/framework/commit/b892805124ecdf4821c2dac7aea4f829ce2248bc)) -- Renamed `Http/Exception` namespace to `Http/Exceptions` ([#17398](https://github.com/laravel/framework/pull/17398)) -- Renamed `getJsonOptions()` to `getEncodingOptions()` on `JsonResponse` ([e689b2a](https://github.com/laravel/framework/commit/e689b2aa06d1d35d2593ffa77f8a56df314f7e49)) -- Renamed `VerifyPostSize` middleware to `ValidatePostSize` ([893a044](https://github.com/laravel/framework/commit/893a044fb10c87095e99081de4d1668bc1e19997)) -- Converted `kernel.handled` event into `RequestHandled` class ([43a5e5f](https://github.com/laravel/framework/commit/43a5e5f341cc8affd52e77019f50e2d96feb94a5)) -- Throw `AuthorizationException` in `FormRequest` ([1a75409](https://github.com/laravel/framework/commit/1a7540967ca36f875a262a22b76c2a094b9ba3b4)) -- Use `Str::random` instead of UUID in `FileHelpers` ([#17046](https://github.com/laravel/framework/pull/17046)) -- Moved `getOriginalContent()` to `ResponseTrait` ([#17137](https://github.com/laravel/framework/pull/17137)) -- Added JSON responses to the `AuthenticatesUsers` and `ThrottlesLogins` ([#17369](https://github.com/laravel/framework/pull/17369)) -- Added middleware to trim strings and convert empty strings to null ([f578bbc](https://github.com/laravel/framework/commit/f578bbce25843492fc996ac96797e0395e16cf2e)) - -### Logging -- Added `LogServiceProvider` to defer loading of logging code ([#15451](https://github.com/laravel/framework/pull/15451), [6550153](https://github.com/laravel/framework/commit/6550153162b4d54d03d37dd9adfd0c95ca0383a9), [#15794](https://github.com/laravel/framework/pull/15794)) -- The `Log` facade now uses `LoggerInterface` instead of the log writer ([#15855](https://github.com/laravel/framework/pull/15855)) -- Converted `illuminate.log` event into `MessageLogged` class ([57c82d0](https://github.com/laravel/framework/commit/57c82d095c356a0fe0f9381536afec768cdcc072)) - -### Mail -- Added support for Markdown emails and notifications ([#16768](https://github.com/laravel/framework/pull/16768), [b876759](https://github.com/laravel/framework/commit/b8767595e762d241a52607123da5922899bf65e1), [cd569f0](https://github.com/laravel/framework/commit/cd569f074fd566f30d3eb760c3c9027203da3850), [5325385](https://github.com/laravel/framework/commit/5325385f32331c44c5050cdd790dfbdfe943357b)) -- Refactored Mail component and removed `SuperClosure` dependency ([50ab994](https://github.com/laravel/framework/commit/50ab994b5b9c2675eb6cc24412672df5aefd248c), [5dace8f](https://github.com/laravel/framework/commit/5dace8f0d6f6e67b4862abbbae376dcd8a641f00)) -- Allow `Mailer` to email `HtmlString` objects ([882ea28](https://github.com/laravel/framework/commit/882ea283045a7a231ca86c75058ebdea1d160fda)) -- Added `hasTo()`, `hasCc()` and `hasBcc()` to `Mailable` ([fb29b38](https://github.com/laravel/framework/commit/fb29b38d7c04c59e1f442b0d89fc6108c8671a08)) - -### Notifications -- Added `NotificationSender` class ([5f93133](https://github.com/laravel/framework/commit/5f93133170c40b203f0922fd29eb22e1ee20be21)) -- Removed `to` and `cc` from mail `MailMessage` ([ff68549](https://github.com/laravel/framework/commit/ff685491f4739b899dbe91e5fb1683c28e2dc5e1)) -- Add salutation option to `SimpleMessage` notification ([#17429](https://github.com/laravel/framework/pull/17429)) - -### Queue -- Support job-based queue options ([#16257](https://github.com/laravel/framework/pull/16257), [2382dc3](https://github.com/laravel/framework/commit/2382dc3f374bee7ad966d11ecb35a1429d9a09e8), [ee385fa](https://github.com/laravel/framework/commit/ee385fa5eab0c4642f47636f0e033e982d402bb9)) -- Fixed manually failing jobs and added `FailingJob` class ([707a3bc](https://github.com/laravel/framework/commit/707a3bc84ce82bbe44e2c722ede24b5edb194b6b), [55afe12](https://github.com/laravel/framework/commit/55afe12977b55dbafda940e18102bb52276ca569)) -- Converted `illuminate.queue.looping` event into `Looping` class ([57c82d0](https://github.com/laravel/framework/commit/57c82d095c356a0fe0f9381536afec768cdcc072)) -- Refactored Queue component ([9bc8ca5](https://github.com/laravel/framework/commit/9bc8ca502687f29761b9eb78f70db6e3c3f0a09e), [e030231](https://github.com/laravel/framework/commit/e030231604479d0326ad9bfb56a2a36229d78ff4), [a041fb5](https://github.com/laravel/framework/commit/a041fb5ec9fc775d1a3efb6b647604da2b02b866), [7bb15cf](https://github.com/laravel/framework/commit/7bb15cf40a182bed3d00bc55de55798e58bf1ed0), [5505728](https://github.com/laravel/framework/commit/55057285b321b4b668d12fade330b0d196f9514a), [fed36bd](https://github.com/laravel/framework/commit/fed36bd7e09658009d36d9dd568f19ddcb75172e)) -- Refactored how queue connection names are set ([4c600fb](https://github.com/laravel/framework/commit/4c600fb7af855747b6b44a194a5d0061d6294488)) -- Let queue worker exit ungracefully on `memoryExceeded()` ([#17302](https://github.com/laravel/framework/pull/17302)) -- Support pause and continue signals in queue worker ([827d075](https://github.com/laravel/framework/commit/827d075fb06b516eea992393279fc5ec2adabcf8)) - -### Redis -- Added support for [PhpRedis](https://github.com/phpredis/phpredis) ([#15160](https://github.com/laravel/framework/pull/15160), [01ed1c8](https://github.com/laravel/framework/commit/01ed1c8348a8e69ad213c95dd8d24e652154e6f0), [1ef8b9c](https://github.com/laravel/framework/commit/1ef8b9c3f156c7d4debc6c6f67b73b032d8337d5)) -- Added support for multiple Redis clusters ([#16696](https://github.com/laravel/framework/pull/16696), [464075d](https://github.com/laravel/framework/commit/464075d3c5f152dfc4fc9287595d62dbdc3c6347)) -- Added `RedisQueue::laterRaw()` method ([7fbac1c](https://github.com/laravel/framework/commit/7fbac1c6c09080da698f4c3256356cb896465692)) -- Return migrated jobs from `RedisQueue::migrateExpiredJobs()` ([f21e942](https://github.com/laravel/framework/commit/f21e942ae8a4104ffdf42c231601efe8759c4c10)) -- Send full job back into `RedisQueue` ([16e862c](https://github.com/laravel/framework/commit/16e862c1e22795acab869fa01ec5f8bcd7d400b3)) - -### Routing -- Added support for fluent routes ([#16647](https://github.com/laravel/framework/pull/16647), [#16748](https://github.com/laravel/framework/pull/16748)) -- Removed `RouteServiceProvider::loadRoutesFrom()` ([0f2b3be](https://github.com/laravel/framework/commit/0f2b3be9b8753ba2813595f9191aa8d8c31886b1)) -- Allow route groups to be loaded directly from a file ([#16707](https://github.com/laravel/framework/pull/16707), [#16792](https://github.com/laravel/framework/pull/16792)) -- Added named parameters to `UrlGenerator` ([#16736](https://github.com/laravel/framework/pull/16736), [ce4d86b](https://github.com/laravel/framework/commit/ce4d86b48732a707e3909dbc553a2c349c8ecae7)) -- Refactored Route component ([b75aca6](https://github.com/laravel/framework/commit/b75aca6a203590068161835945213fd1a39c7080), [9d3ff16](https://github.com/laravel/framework/commit/9d3ff161fd3929f9a106f007ce63fffdd118d490), [c906ed9](https://github.com/laravel/framework/commit/c906ed933713df22e4356cf4ea274f19b15d1ab7), [0f7985c](https://github.com/laravel/framework/commit/0f7985c888abb0a1824e87b32ab3d8feaca5fecf), [0f7985c](https://github.com/laravel/framework/commit/0f7985c888abb0a1824e87b32ab3d8feaca5fecf), [3f4221f](https://github.com/laravel/framework/commit/3f4221fe07c3e9d12eb814c144c1ffca09b577da)) -- Refactored Router component ([eecf6ec](https://github.com/laravel/framework/commit/eecf6eca8b4a0cfdf8ec2b0148ee726b8b67c6bb), [b208a4f](https://github.com/laravel/framework/commit/b208a4fc3b35da167a2dcb9b581d9e072d20ec92), [21de409](https://github.com/laravel/framework/commit/21de40971cd81712b398ef3895357843fd34250d), [e75730e](https://github.com/laravel/framework/commit/e75730ec192bb2927a46f37ef854ba8c7372cac6)) -- Refactored Router URL generator component ([39e8c83](https://github.com/laravel/framework/commit/39e8c83af778d8086b0b5e8f4f2e21331b015b39), [098da0d](https://github.com/laravel/framework/commit/098da0d6b4c20104c60b969b9a7f10ac5ff50c8e)) -- Removed `RouteDependencyResolverTrait::callWithDependencies()` ([f7f13fa](https://github.com/laravel/framework/commit/f7f13fab9a451bc2249fc0709b6cf1fa6b7c795a)) -- `UrlGenerator` improvements ([f0b9858](https://github.com/laravel/framework/commit/f0b985831f72a896735d02bf14b1c6680e3d7092), [4f96f42](https://github.com/laravel/framework/commit/4f96f429b22b1b09de6a263bd7d50eda18075b52)) -- Compile routes only once ([c8ed0c3](https://github.com/laravel/framework/commit/c8ed0c3a11bf7d8180982a3d32a60364594bbfe1), [b11fbcc](https://github.com/laravel/framework/commit/b11fbcc209b8a57501bac6221728e7ed6c7a82a2)) - -### Testing -- Simplified built-in testing for Dusk ([#16667](https://github.com/laravel/framework/pull/16667), [126adb7](https://github.com/laravel/framework/commit/126adb781c204129600363f243b9d73e202d229e), [b6dec26](https://github.com/laravel/framework/commit/b6dec2602d4a7aa1e61667c02c301c8011267a19), [939264f](https://github.com/laravel/framework/commit/939264f91edc5d33da5ce6cf95a271a6f4a2e1f2)) -- Improve database testing methods ([#16679](https://github.com/laravel/framework/pull/16679), [14e9dad](https://github.com/laravel/framework/commit/14e9dad05d09429fab244e2d8f6c49e679a3a975), [f23ac64](https://github.com/laravel/framework/commit/f23ac640fa403ca8d4131c36367b53e123b6b852)) -- Refactored `MailFake` ([b1d8f81](https://github.com/laravel/framework/commit/b1d8f813d13960096493f3adc3bc32ace66ba2e6)) -- Namespaced all tests ([#17058](https://github.com/laravel/framework/pull/17058), [#17148](https://github.com/laravel/framework/pull/17148)) -- Allow chaining of response assertions ([#17330](https://github.com/laravel/framework/pull/17330)) -- Return `TestResponse` from `MakesHttpRequests::json()` ([#17341](https://github.com/laravel/framework/pull/17341)) -- Always return collection from factory when `$amount` is set ([#17493](https://github.com/laravel/framework/pull/17493)) - -### Translations -- Added JSON loader for translations and `__()` helper ([#16424](https://github.com/laravel/framework/pull/16424), [#16470](https://github.com/laravel/framework/pull/16470), [9437244](https://github.com/laravel/framework/commit/94372447b9de48f5c174db2cf7c81dffb3c0c692)) -- Replaced Symfony's translator ([#15563](https://github.com/laravel/framework/pull/15563)) -- Added `namespaces()` method to translation loaders ([#16664](https://github.com/laravel/framework/pull/16664), [fe7bbf7](https://github.com/laravel/framework/commit/fe7bbf727834a748b04fcf5145b1137dd45ac4b7)) -- Switched to `trans()` helper in `AuthenticatesUsers` ([#17202](https://github.com/laravel/framework/pull/17202)) - -### Validation -- Refactored Validation component ([#17005](https://github.com/laravel/framework/pull/17005), [9e98e7a](https://github.com/laravel/framework/commit/9e98e7a5120f14e942bd00a1439e1a049440eea8), [9b817f1](https://github.com/laravel/framework/commit/9b817f1d03b3a7b3379723a32ab818aa3860060a)) -- Removed files hydration in `Validator` ([#16017](https://github.com/laravel/framework/pull/16017)) -- Added IPv4 and IPv6 validators ([#16545](https://github.com/laravel/framework/pull/16545)) -- Made `date_format` validation more precise ([#16858](https://github.com/laravel/framework/pull/16858)) -- Add place-holder replacers for `*_or_equal` rules ([#17030](https://github.com/laravel/framework/pull/17030)) -- Made `sometimes()` chainable ([#17241](https://github.com/laravel/framework/pull/17241)) -- Support wildcards in `MessageBag::first()` ([#15217](https://github.com/laravel/framework/pull/15217)) -- Support implicit keys in `MessageBag::first()` and `MessageBag::first()` ([#17001](https://github.com/laravel/framework/pull/17001)) -- Support arrays with empty string as key ([#17427](https://github.com/laravel/framework/pull/17427)) -- Add type check to `validateUrl()` ([#17504](https://github.com/laravel/framework/pull/17504))
true
Other
laravel
framework
740cc6133277299b4bcd70f9c2913a42df1429a3.json
Allow customization of email body and attachments
src/Illuminate/Mail/Mailable.php
@@ -128,8 +128,8 @@ public function send(MailerContract $mailer) $this->buildFrom($message) ->buildRecipients($message) ->buildSubject($message) - ->buildAttachments($message) - ->runCallbacks($message); + ->runCallbacks($message) + ->buildAttachments($message); }); }
false
Other
laravel
framework
aad6089702a2bbe89b6971b3feb3e202fea9f4d9.json
add extension. fix stub
src/Illuminate/Foundation/Console/stubs/resource.stub
@@ -2,9 +2,9 @@ namespace DummyNamespace; -use Illuminate\Http\Resources\Json\Resource; +use Illuminate\Http\Resources\Json\JsonResource; -class DummyClass extends Resource +class DummyClass extends JsonResource { /** * Transform the resource into an array.
true
Other
laravel
framework
aad6089702a2bbe89b6971b3feb3e202fea9f4d9.json
add extension. fix stub
src/Illuminate/Http/Resources/Json/Resource.php
@@ -0,0 +1,8 @@ +<?php + +namespace Illuminate\Http\Resources\Json; + +class Resource extends JsonResource +{ + // +}
true
Other
laravel
framework
6a5ab45714f928484dd09aa3330d32312f2cdb61.json
Resolve incorrect doesntExist method name (#22987) The function name was renamed from the original pull request prior to release
CHANGELOG-5.5.md
@@ -3,7 +3,7 @@ ## v5.5.33 (2018-01-30) ### Added -- Added `notExists()` method to query builder ([#22836](https://github.com/laravel/framework/pull/22836), [9d2a7ca](https://github.com/laravel/framework/commit/9d2a7ca049e71d39e453ba8c34addb657b71b237)) +- Added `doesntExist()` method to query builder ([#22836](https://github.com/laravel/framework/pull/22836), [9d2a7ca](https://github.com/laravel/framework/commit/9d2a7ca049e71d39e453ba8c34addb657b71b237)) - Added `assertHeaderMissing()` assertion ([#22849](https://github.com/laravel/framework/pull/22849), [#22866](https://github.com/laravel/framework/pull/22866)) - Added support for higher order unique ([#22851](https://github.com/laravel/framework/pull/22851)) - Added boolean toggle to `withTrashed()` ([#22888](https://github.com/laravel/framework/pull/22888))
false
Other
laravel
framework
d14395fd92253586627890c3c510d47f12a0240d.json
use path helpers for console commands (#22971)
src/Illuminate/Foundation/Console/AppNameCommand.php
@@ -224,7 +224,7 @@ protected function setComposerNamespace() protected function setDatabaseFactoryNamespaces() { $files = Finder::create() - ->in($this->laravel->databasePath().'/factories') + ->in(database_path('factories')) ->contains($this->currentRoot) ->name('*.php'); @@ -268,7 +268,7 @@ protected function getBootstrapPath() */ protected function getComposerPath() { - return $this->laravel->basePath().'/composer.json'; + return base_path('composer.json'); } /**
true
Other
laravel
framework
d14395fd92253586627890c3c510d47f12a0240d.json
use path helpers for console commands (#22971)
src/Illuminate/Foundation/Console/DownCommand.php
@@ -32,7 +32,7 @@ class DownCommand extends Command public function handle() { file_put_contents( - $this->laravel->storagePath().'/framework/down', + storage_path('framework/down'), json_encode($this->getDownFilePayload(), JSON_PRETTY_PRINT) );
true
Other
laravel
framework
d14395fd92253586627890c3c510d47f12a0240d.json
use path helpers for console commands (#22971)
src/Illuminate/Foundation/Console/ServeCommand.php
@@ -32,7 +32,7 @@ class ServeCommand extends Command */ public function handle() { - chdir($this->laravel->publicPath()); + chdir(public_path()); $this->line("<info>Laravel development server started:</info> <http://{$this->host()}:{$this->port()}>"); @@ -50,7 +50,7 @@ protected function serverCommand() ProcessUtils::escapeArgument((new PhpExecutableFinder)->find(false)), $this->host(), $this->port(), - ProcessUtils::escapeArgument($this->laravel->basePath()) + ProcessUtils::escapeArgument(base_path()) ); }
true
Other
laravel
framework
d14395fd92253586627890c3c510d47f12a0240d.json
use path helpers for console commands (#22971)
src/Illuminate/Foundation/Console/TestMakeCommand.php
@@ -52,7 +52,7 @@ protected function getPath($name) { $name = Str::replaceFirst($this->rootNamespace(), '', $name); - return $this->laravel->basePath().'/tests'.str_replace('\\', '/', $name).'.php'; + return base_path('tests').str_replace('\\', '/', $name).'.php'; } /**
true
Other
laravel
framework
d14395fd92253586627890c3c510d47f12a0240d.json
use path helpers for console commands (#22971)
src/Illuminate/Foundation/Console/UpCommand.php
@@ -27,7 +27,7 @@ class UpCommand extends Command */ public function handle() { - @unlink($this->laravel->storagePath().'/framework/down'); + @unlink(storage_path('framework/down')); $this->info('Application is now live.'); }
true
Other
laravel
framework
6d8e53082c188c89f765bf016d1e4bca7802b025.json
add a method to retreive the policies
src/Illuminate/Foundation/Support/Providers/AuthServiceProvider.php
@@ -33,4 +33,14 @@ public function register() { // } + + /** + * Get the policies defined on the provider. + * + * @return array + */ + public function policies() + { + return $this->policies; + } }
false
Other
laravel
framework
4224d0d878a5dee7a7ecae2c1728a6e79c8cfce8.json
Fix typo in docblock
src/Illuminate/Routing/RouteCollection.php
@@ -183,7 +183,7 @@ public function match(Request $request) * Determine if a route in the array matches the request. * * @param array $routes - * @param \Illuminate\http\Request $request + * @param \Illuminate\Http\Request $request * @param bool $includingMethod * @return \Illuminate\Routing\Route|null */
false
Other
laravel
framework
497a90749312b0b75fc185246c94e6150a502773.json
add forceDeleted event
src/Illuminate/Database/Eloquent/Concerns/HasEvents.php
@@ -55,9 +55,9 @@ public function getObservableEvents() { return array_merge( [ - 'retrieved', 'creating', 'created', 'updating', - 'updated', 'deleting', 'deleted', 'saving', - 'saved', 'restoring', 'restored', + 'retrieved', 'creating', 'created', 'updating', 'updated', + 'saving', 'saved', 'restoring', 'restored', + 'deleting', 'deleted', 'forceDeleted', ], $this->observables );
true
Other
laravel
framework
497a90749312b0b75fc185246c94e6150a502773.json
add forceDeleted event
src/Illuminate/Database/Eloquent/SoftDeletes.php
@@ -30,11 +30,13 @@ public function forceDelete() { $this->forceDeleting = true; - $deleted = $this->delete(); + return tap($this->delete(), function ($deleted) { + $this->forceDeleting = false; - $this->forceDeleting = false; - - return $deleted; + if ($deleted) { + $this->fireModelEvent('forceDeleted', false); + } + }); } /**
true
Other
laravel
framework
497a90749312b0b75fc185246c94e6150a502773.json
add forceDeleted event
tests/Integration/Database/EloquentDeleteTest.php
@@ -5,6 +5,7 @@ use Orchestra\Testbench\TestCase; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\SoftDeletes; /** * @group integration @@ -40,6 +41,12 @@ public function setUp() $table->integer('post_id'); $table->timestamps(); }); + + Schema::create('roles', function ($table) { + $table->increments('id'); + $table->timestamps(); + $table->softDeletes(); + }); } public function testOnlyDeleteWhatGiven() @@ -56,6 +63,20 @@ public function testOnlyDeleteWhatGiven() Post::join('comments', 'comments.post_id', '=', 'posts.id')->where('posts.id', '>', 1)->orderBy('posts.id')->limit(1)->delete(); $this->assertEquals(8, Post::all()->count()); } + + public function testForceDeletedEventIsFired() + { + $role = Role::create([]); + $this->assertInstanceOf(Role::class, $role); + Role::observe(new RoleObserver); + + $role->delete(); + $this->assertNull(RoleObserver::$model); + + $role->forceDelete(); + + $this->assertEquals($role->id, RoleObserver::$model->id); + } } class Post extends Model @@ -68,3 +89,20 @@ class Comment extends Model public $table = 'comments'; protected $fillable = ['post_id']; } + +class Role extends Model +{ + use SoftDeletes; + public $table = 'roles'; + protected $guarded = []; +} + +class RoleObserver +{ + public static $model; + + public function forceDeleted($model) + { + static::$model = $model; + } +}
true
Other
laravel
framework
c919402d5847830c1b2a39529cac90251f838709.json
add helper for bootstrap 3
src/Illuminate/Pagination/AbstractPaginator.php
@@ -447,6 +447,17 @@ public static function defaultSimpleView($view) static::$defaultSimpleView = $view; } + /** + * Indicate that Bootstrap 3 styling should be used for generated links. + * + * @return void + */ + public static function useBootstrapThree() + { + static::defaultView('pagination::default'); + static::defaultSimpleView('pagination::simple-default'); + } + /** * Get an iterator for the items. *
false
Other
laravel
framework
796ed1ed7ce5622c2ff9437d2cecf096201d7efb.json
use name variable
src/Illuminate/Log/LogManager.php
@@ -359,11 +359,11 @@ protected function formatter() */ protected function parseChannel(array $config) { - if (! isset($config['channel'])) { + if (! isset($config['name'])) { return $this->app->bound('env') ? $this->app->environment() : 'production'; } - return $config['channel']; + return $config['name']; } /**
false
Other
laravel
framework
dbad05599b2d2059e45c480fac8817d1135d5da1.json
allow 0 block time
src/Illuminate/Queue/RedisQueue.php
@@ -40,9 +40,9 @@ class RedisQueue extends Queue implements QueueContract /** * The maximum number of seconds to block for a job. * - * @var int + * @var int|null */ - private $blockFor = 0; + protected $blockFor = null; /** * Create a new Redis queue instance. @@ -51,10 +51,10 @@ class RedisQueue extends Queue implements QueueContract * @param string $default * @param string $connection * @param int $retryAfter - * @param int $blockFor + * @param int|null $blockFor * @return void */ - public function __construct(Redis $redis, $default = 'default', $connection = null, $retryAfter = 60, $blockFor = 0) + public function __construct(Redis $redis, $default = 'default', $connection = null, $retryAfter = 60, $blockFor = null) { $this->redis = $redis; $this->default = $default; @@ -209,7 +209,7 @@ public function migrateExpiredJobs($from, $to) */ protected function retrieveNextJob($queue) { - if ($this->blockFor >= 1) { + if (! is_null($this->blockFor)) { return $this->blockingPop($queue); }
false
Other
laravel
framework
75d7e077905f7ebba7a0b957934442d680699bda.json
add order assertions and test coverage (#22915)
src/Illuminate/Foundation/Testing/TestResponse.php
@@ -253,6 +253,32 @@ public function assertSee($value) return $this; } + /** + * Assert that the given strings are contained in order within the response. + * + * @param array $values + * @return $this + */ + public function assertSeeInOrder(array $values) + { + $position = -1; + + foreach ($values as $value) { + $valuePosition = mb_strpos($this->getContent(), $value); + + if ($valuePosition === false || $valuePosition < $position) { + PHPUnit::fail( + 'Failed asserting that \''.$this->getContent(). + '\' contains "'.$value.'" in specified order.' + ); + } + + $position = $valuePosition; + } + + return $this; + } + /** * Assert that the given string is contained within the response text. * @@ -266,6 +292,32 @@ public function assertSeeText($value) return $this; } + /** + * Assert that the given strings are contained in order within the response text. + * + * @param array $values + * @return $this + */ + public function assertSeeTextInOrder(array $values) + { + $position = -1; + + foreach ($values as $value) { + $valuePosition = mb_strpos(strip_tags($this->getContent()), $value); + + if ($valuePosition === false || $valuePosition < $position) { + PHPUnit::fail( + 'Failed asserting that \''.strip_tags($this->getContent()). + '\' contains "'.$value.'" in specified order.' + ); + } + + $position = $valuePosition; + } + + return $this; + } + /** * Assert that the given string is not contained within the response. *
true
Other
laravel
framework
75d7e077905f7ebba7a0b957934442d680699bda.json
add order assertions and test coverage (#22915)
tests/Foundation/FoundationTestResponseTest.php
@@ -41,6 +41,28 @@ public function testAssertViewHas() $response->assertViewHas('foo'); } + public function testAssertSeeInOrder() + { + $baseResponse = tap(new Response, function ($response) { + $response->setContent(\Mockery::mock(View::class, [ + 'render' => '<ul><li>foo</li><li>bar</li><li>baz</li></ul>', + ])); + }); + + $response = TestResponse::fromBaseResponse($baseResponse); + + $response->assertSeeInOrder(['foo', 'bar', 'baz']); + + try { + $response->assertSeeInOrder(['baz', 'bar', 'foo']); + $response->assertSeeInOrder(['foo', 'qux', 'bar', 'baz']); + } catch (\PHPUnit\Framework\AssertionFailedError $e) { + return; + } + + TestCase::fail('Assertion was expected to fail.'); + } + public function testAssertSeeText() { $baseResponse = tap(new Response, function ($response) { @@ -54,6 +76,28 @@ public function testAssertSeeText() $response->assertSeeText('foobar'); } + public function testAssertSeeTextInOrder() + { + $baseResponse = tap(new Response, function ($response) { + $response->setContent(\Mockery::mock(View::class, [ + 'render' => 'foo<strong>bar</strong> baz', + ])); + }); + + $response = TestResponse::fromBaseResponse($baseResponse); + + $response->assertSeeTextInOrder(['foobar', 'baz']); + + try { + $response->assertSeeTextInOrder(['baz', 'foobar']); + $response->assertSeeTextInOrder(['foobar', 'qux', 'baz']); + } catch (\PHPUnit\Framework\AssertionFailedError $e) { + return; + } + + TestCase::fail('Assertion was expected to fail.'); + } + public function testAssertHeader() { $baseResponse = tap(new Response, function ($response) {
true
Other
laravel
framework
4bd2251385ba49b0886830a8e1e27833ed34c1fb.json
Improve test coverage (#22894)
tests/Support/SupportCollectionTest.php
@@ -988,6 +988,12 @@ public function testExcept() $this->assertEquals(['first' => 'Taylor', 'email' => 'taylorotwell@gmail.com'], $data->except('last')->all()); } + public function testExceptSelf() + { + $data = new Collection(['first' => 'Taylor', 'last' => 'Otwell']); + $this->assertEquals(['first' => 'Taylor', 'last' => 'Otwell'], $data->except($data)->all()); + } + public function testPluckWithArrayAndObjectValues() { $data = new Collection([(object) ['name' => 'taylor', 'email' => 'foo'], ['name' => 'dayle', 'email' => 'bar']]); @@ -1033,6 +1039,20 @@ public function testTake() $this->assertEquals(['taylor', 'dayle'], $data->all()); } + public function testPut() + { + $data = new Collection(['name' => 'taylor', 'email' => 'foo']); + $data = $data->put('name', 'dayle'); + $this->assertEquals(['name' => 'dayle', 'email' => 'foo'], $data->all()); + } + + public function testPutWithNoKey() + { + $data = new Collection(['taylor', 'shawn']); + $data = $data->put(null, 'dayle'); + $this->assertEquals(['taylor', 'shawn', 'dayle'], $data->all()); + } + public function testRandom() { $data = new Collection([1, 2, 3, 4, 5, 6]);
true
Other
laravel
framework
4bd2251385ba49b0886830a8e1e27833ed34c1fb.json
Improve test coverage (#22894)
tests/Support/SupportMessageBagTest.php
@@ -35,6 +35,16 @@ public function testMessagesAreAdded() $this->assertEquals(['bust'], $messages['boom']); } + public function testKeys() + { + $container = new MessageBag; + $container->setFormat(':message'); + $container->add('foo', 'bar'); + $container->add('foo', 'baz'); + $container->add('boom', 'bust'); + $this->assertEquals(['foo', 'boom'], $container->keys()); + } + public function testMessagesMayBeMerged() { $container = new MessageBag(['username' => ['foo']]); @@ -114,6 +124,14 @@ public function testHasIndicatesExistence() $this->assertFalse($container->has('bar')); } + public function testHasWithKeyNull() + { + $container = new MessageBag; + $container->setFormat(':message'); + $container->add('foo', 'bar'); + $this->assertTrue($container->has(null)); + } + public function testHasAnyIndicatesExistence() { $container = new MessageBag; @@ -176,6 +194,16 @@ public function testFormatIsRespected() $this->assertEquals('foo bar', $container->first('foo')); } + public function testUnique() + { + $container = new MessageBag; + $container->setFormat(':message'); + $container->add('foo', 'bar'); + $container->add('foo2', 'bar'); + $container->add('boom', 'baz'); + $this->assertEquals([0 => 'bar', 2 => 'baz'], $container->unique()); + } + public function testMessageBagReturnsCorrectArray() { $container = new MessageBag; @@ -211,7 +239,6 @@ public function testCountReturnsCorrectValue() public function testCountable() { $container = new MessageBag; - $container->add('foo', 'bar'); $container->add('boom', 'baz'); @@ -229,7 +256,46 @@ public function testFirstFindsMessageForWildcardKey() $container = new MessageBag; $container->setFormat(':message'); $container->add('foo.bar', 'baz'); - $messages = $container->getMessages(); $this->assertEquals('baz', $container->first('foo.*')); } + + public function testIsEmptyTrue() + { + $container = new MessageBag; + $this->assertTrue($container->isEmpty()); + } + + public function testIsEmptyFalse() + { + $container = new MessageBag; + $container->add('foo.bar', 'baz'); + $this->assertFalse($container->isEmpty()); + } + + public function testIsNotEmptyTrue() + { + $container = new MessageBag; + $container->add('foo.bar', 'baz'); + $this->assertTrue($container->isNotEmpty()); + } + + public function testIsNotEmptyFalse() + { + $container = new MessageBag; + $this->assertFalse($container->isNotEmpty()); + } + + public function testToString() + { + $container = new MessageBag; + $container->add('foo.bar', 'baz'); + $this->assertEquals('{"foo.bar":["baz"]}', (string) $container); + } + + public function testGetFormat() + { + $container = new MessageBag; + $container->setFormat(':message'); + $this->assertEquals(':message', $container->getFormat()); + } }
true
Other
laravel
framework
4bd2251385ba49b0886830a8e1e27833ed34c1fb.json
Improve test coverage (#22894)
tests/Support/SupportViewErrorBagTest.php
@@ -0,0 +1,128 @@ +<?php + +namespace Illuminate\Tests\Support; + +use PHPUnit\Framework\TestCase; +use Illuminate\Support\MessageBag; +use Illuminate\Support\ViewErrorBag; + +class SupportViewErrorBagTest extends TestCase +{ + public function testHasBagTrue() + { + $viewErrorBag = new ViewErrorBag(); + $viewErrorBag->put('default', new MessageBag(['msg1', 'msg2'])); + $this->assertTrue($viewErrorBag->hasBag()); + } + + public function testHasBagFalse() + { + $viewErrorBag = new ViewErrorBag(); + $this->assertFalse($viewErrorBag->hasBag()); + } + + public function testGet() + { + $messageBag = new MessageBag(); + $viewErrorBag = new ViewErrorBag(); + $viewErrorBag = $viewErrorBag->put('default', $messageBag); + $this->assertEquals($messageBag, $viewErrorBag->getBag('default')); + } + + public function testGetBagWithNew() + { + $viewErrorBag = new ViewErrorBag(); + $this->assertInstanceOf(MessageBag::class, $viewErrorBag->getBag('default')); + } + + public function testGetBags() + { + $messageBag1 = new MessageBag(); + $messageBag2 = new MessageBag(); + $viewErrorBag = new ViewErrorBag(); + $viewErrorBag->put('default', $messageBag1); + $viewErrorBag->put('default2', $messageBag2); + $this->assertEquals([ + 'default' => $messageBag1, + 'default2' => $messageBag2, + ], $viewErrorBag->getBags()); + } + + public function testPut() + { + $messageBag = new MessageBag(); + $viewErrorBag = new ViewErrorBag(); + $viewErrorBag = $viewErrorBag->put('default', $messageBag); + $this->assertEquals(['default' => $messageBag], $viewErrorBag->getBags()); + } + + public function testAnyTrue() + { + $viewErrorBag = new ViewErrorBag(); + $viewErrorBag->put('default', new MessageBag(['message'])); + $this->assertTrue($viewErrorBag->any()); + } + + public function testAnyFalse() + { + $viewErrorBag = new ViewErrorBag(); + $viewErrorBag->put('default', new MessageBag()); + $this->assertFalse($viewErrorBag->any()); + } + + public function testAnyFalseWithEmptyErrorBag() + { + $viewErrorBag = new ViewErrorBag(); + $this->assertFalse($viewErrorBag->any()); + } + + public function testCount() + { + $viewErrorBag = new ViewErrorBag(); + $viewErrorBag->put('default', new MessageBag(['message', 'second'])); + $this->assertEquals(2, $viewErrorBag->count()); + } + + public function testCountWithNoMessagesInMessageBag() + { + $viewErrorBag = new ViewErrorBag(); + $viewErrorBag->put('default', new MessageBag()); + $this->assertEquals(0, $viewErrorBag->count()); + } + + public function testCountWithNoMessageBags() + { + $viewErrorBag = new ViewErrorBag(); + $this->assertEquals(0, $viewErrorBag->count()); + } + + public function testDynamicCallToDefaultMessageBag() + { + $viewErrorBag = new ViewErrorBag(); + $viewErrorBag->put('default', new MessageBag(['message', 'second'])); + $this->assertEquals(['message', 'second'], $viewErrorBag->all()); + } + + public function testDynamicallyGetBag() + { + $messageBag = new MessageBag(); + $viewErrorBag = new ViewErrorBag(); + $viewErrorBag = $viewErrorBag->put('default', $messageBag); + $this->assertEquals($messageBag, $viewErrorBag->default); + } + + public function testDynamicallyPutBag() + { + $messageBag = new MessageBag(); + $viewErrorBag = new ViewErrorBag(); + $viewErrorBag->default2 = $messageBag; + $this->assertEquals(['default2' => $messageBag], $viewErrorBag->getBags()); + } + + public function testToString() + { + $viewErrorBag = new ViewErrorBag(); + $viewErrorBag = $viewErrorBag->put('default', new MessageBag(['message' => 'content'])); + $this->assertEquals('{"message":["content"]}', (string) $viewErrorBag); + } +}
true
Other
laravel
framework
351e3b7694a804e8d6a613288419ccabd22bc012.json
use array values
src/Illuminate/Queue/SerializesModels.php
@@ -24,9 +24,9 @@ public function __sleep() )); } - return array_filter(array_map(function ($p) { + return array_values(array_filter(array_map(function ($p) { return $p->isStatic() ? null : $p->getName(); - }, $properties)); + }, $properties))); } /**
false
Other
laravel
framework
8fad785de66ffaa18e7d8b9e9cd7c4465e60daac.json
ignore static properties in serializes model
src/Illuminate/Queue/SerializesModels.php
@@ -24,9 +24,9 @@ public function __sleep() )); } - return array_map(function ($p) { - return $p->getName(); - }, $properties); + return array_filter(array_map(function ($p) { + return $p->isStatic() ? null : $p->getName(); + }, $properties)); } /** @@ -37,6 +37,10 @@ public function __sleep() public function __wakeup() { foreach ((new ReflectionClass($this))->getProperties() as $property) { + if ($property->isStatic()) { + continue; + } + $property->setValue($this, $this->getRestoredPropertyValue( $this->getPropertyValue($property) ));
false
Other
laravel
framework
fc3c5984d1751975b0e2c59f4cb7a4edf0a1e6d1.json
Improve test coverage (#22886)
tests/Filesystem/FilesystemAdapterTest.php
@@ -11,6 +11,7 @@ class FilesystemAdapterTest extends TestCase { + private $tempDir; private $filesystem; public function setUp() @@ -99,4 +100,49 @@ public function testAppend() $filesystemAdapter->append('file.txt', 'Moon'); $this->assertStringEqualsFile($this->tempDir.'/file.txt', "Hello \nMoon"); } + + public function testDelete() + { + file_put_contents($this->tempDir.'/file.txt', 'Hello World'); + $filesystemAdapter = new FilesystemAdapter($this->filesystem); + $this->assertTrue($filesystemAdapter->delete('file.txt')); + $this->assertFalse(file_exists($this->tempDir.'/file.txt')); + } + + public function testDeleteReturnsFalseWhenFileNotFound() + { + $filesystemAdapter = new FilesystemAdapter($this->filesystem); + $this->assertFalse($filesystemAdapter->delete('file.txt')); + } + + public function testCopy() + { + $data = '33232'; + mkdir($this->tempDir.'/foo'); + file_put_contents($this->tempDir.'/foo/foo.txt', $data); + + $filesystemAdapter = new FilesystemAdapter($this->filesystem); + $filesystemAdapter->copy('/foo/foo.txt', '/foo/foo2.txt'); + + $this->assertFileExists($this->tempDir.'/foo/foo.txt'); + $this->assertEquals($data, file_get_contents($this->tempDir.'/foo/foo.txt')); + + $this->assertFileExists($this->tempDir.'/foo/foo2.txt'); + $this->assertEquals($data, file_get_contents($this->tempDir.'/foo/foo2.txt')); + } + + public function testMove() + { + $data = '33232'; + mkdir($this->tempDir.'/foo'); + file_put_contents($this->tempDir.'/foo/foo.txt', $data); + + $filesystemAdapter = new FilesystemAdapter($this->filesystem); + $filesystemAdapter->move('/foo/foo.txt', '/foo/foo2.txt'); + + $this->assertFileNotExists($this->tempDir.'/foo/foo.txt'); + + $this->assertFileExists($this->tempDir.'/foo/foo2.txt'); + $this->assertEquals($data, file_get_contents($this->tempDir.'/foo/foo2.txt')); + } }
true
Other
laravel
framework
fc3c5984d1751975b0e2c59f4cb7a4edf0a1e6d1.json
Improve test coverage (#22886)
tests/Support/SupportCollectionTest.php
@@ -1006,6 +1006,15 @@ public function testPluckWithArrayAccessValues() $this->assertEquals(['foo', 'bar'], $data->pluck('email')->all()); } + public function testHas() + { + $data = new Collection(['id' => 1, 'first' => 'Hello', 'second' => 'World']); + $this->assertTrue($data->has('first')); + $this->assertFalse($data->has('third')); + $this->assertTrue($data->has(['first', 'second'])); + $this->assertFalse($data->has(['third', 'first'])); + } + public function testImplode() { $data = new Collection([['name' => 'taylor', 'email' => 'foo'], ['name' => 'dayle', 'email' => 'bar']]);
true
Other
laravel
framework
4ab34a2b39d47053816c757c331b8100764cdbd8.json
Add tests to FilesystemAdapter (#22875)
tests/Filesystem/FilesystemAdapterTest.php
@@ -7,20 +7,22 @@ use League\Flysystem\Adapter\Local; use Illuminate\Filesystem\FilesystemAdapter; use Symfony\Component\HttpFoundation\StreamedResponse; +use Illuminate\Contracts\Filesystem\FileNotFoundException; class FilesystemAdapterTest extends TestCase { private $filesystem; public function setUp() { - $this->filesystem = new Filesystem(new Local(__DIR__.'/tmp')); + $this->tempDir = __DIR__.'/tmp'; + $this->filesystem = new Filesystem(new Local($this->tempDir)); } public function tearDown() { - $filesystem = new Filesystem(new Local(__DIR__)); - $filesystem->deleteDir('tmp'); + $filesystem = new Filesystem(new Local(dirname($this->tempDir))); + $filesystem->deleteDir(basename($this->tempDir)); } public function testResponse() @@ -46,4 +48,55 @@ public function testDownload() $this->assertInstanceOf(StreamedResponse::class, $response); $this->assertEquals('attachment; filename="hello.txt"', $response->headers->get('content-disposition')); } + + public function testExists() + { + $this->filesystem->write('file.txt', 'Hello World'); + $filesystemAdapter = new FilesystemAdapter($this->filesystem); + $this->assertTrue($filesystemAdapter->exists('file.txt')); + } + + public function testPath() + { + $this->filesystem->write('file.txt', 'Hello World'); + $filesystemAdapter = new FilesystemAdapter($this->filesystem); + $this->assertEquals($this->tempDir.'/file.txt', $filesystemAdapter->path('file.txt')); + } + + public function testGet() + { + $this->filesystem->write('file.txt', 'Hello World'); + $filesystemAdapter = new FilesystemAdapter($this->filesystem); + $this->assertEquals('Hello World', $filesystemAdapter->get('file.txt')); + } + + public function testGetFileNotFound() + { + $filesystemAdapter = new FilesystemAdapter($this->filesystem); + $this->expectException(FileNotFoundException::class); + $filesystemAdapter->get('file.txt'); + } + + public function testPut() + { + $filesystemAdapter = new FilesystemAdapter($this->filesystem); + $filesystemAdapter->put('file.txt', 'Something inside'); + $this->assertStringEqualsFile($this->tempDir.'/file.txt', 'Something inside'); + } + + public function testPrepend() + { + file_put_contents($this->tempDir.'/file.txt', 'World'); + $filesystemAdapter = new FilesystemAdapter($this->filesystem); + $filesystemAdapter->prepend('file.txt', 'Hello '); + $this->assertStringEqualsFile($this->tempDir.'/file.txt', "Hello \nWorld"); + } + + public function testAppend() + { + file_put_contents($this->tempDir.'/file.txt', 'Hello '); + $filesystemAdapter = new FilesystemAdapter($this->filesystem); + $filesystemAdapter->append('file.txt', 'Moon'); + $this->assertStringEqualsFile($this->tempDir.'/file.txt', "Hello \nMoon"); + } }
false
Other
laravel
framework
c3eb81c341d5be7df1df22acd03e5ba748c07044.json
Add some Filesystem tests (#22874)
tests/Filesystem/FilesystemTest.php
@@ -2,6 +2,7 @@ namespace Illuminate\Tests\Filesystem; +use Mockery as m; use PHPUnit\Framework\TestCase; use League\Flysystem\Adapter\Ftp; use Illuminate\Filesystem\Filesystem; @@ -20,6 +21,8 @@ public function setUp() public function tearDown() { + m::close(); + $files = new Filesystem; $files->deleteDirectory($this->tempDir); } @@ -97,6 +100,14 @@ public function testDeleteDirectory() $this->assertFileNotExists($this->tempDir.'/foo/file.txt'); } + public function testDeleteDirectoryReturnFalseWhenNotADirectory() + { + mkdir($this->tempDir.'/foo'); + file_put_contents($this->tempDir.'/foo/file.txt', 'Hello World'); + $files = new Filesystem; + $this->assertFalse($files->deleteDirectory($this->tempDir.'/foo/file.txt')); + } + public function testCleanDirectory() { mkdir($this->tempDir.'/foo'); @@ -195,6 +206,17 @@ public function testMoveDirectoryMovesEntireDirectoryAndOverwrites() $this->assertFalse(is_dir($this->tempDir.'/tmp')); } + public function testMoveDirectoryReturnsFalseWhileOverwritingAndUnableToDeleteDestinationDirectory() + { + mkdir($this->tempDir.'/tmp', 0777, true); + file_put_contents($this->tempDir.'/tmp/foo.txt', ''); + mkdir($this->tempDir.'/tmp2', 0777, true); + + $files = m::mock(Filesystem::class)->makePartial(); + $files->shouldReceive('deleteDirectory')->andReturn(false); + $this->assertFalse($files->moveDirectory($this->tempDir.'/tmp', $this->tempDir.'/tmp2', true)); + } + /** * @expectedException \Illuminate\Contracts\Filesystem\FileNotFoundException */ @@ -239,6 +261,13 @@ public function testMoveMovesFiles() $this->assertFileNotExists($this->tempDir.'/foo.txt'); } + public function testNameReturnsName() + { + file_put_contents($this->tempDir.'/foobar.txt', 'foo'); + $filesystem = new Filesystem; + $this->assertEquals('foobar', $filesystem->name($this->tempDir.'/foobar.txt')); + } + public function testExtensionReturnsExtension() { file_put_contents($this->tempDir.'/foo.txt', 'foo'); @@ -462,4 +491,11 @@ public function testCreateFtpDriver() $this->assertEquals('ftp.example.com', $adapter->getHost()); $this->assertEquals('admin', $adapter->getUsername()); } + + public function testHash() + { + file_put_contents($this->tempDir.'/foo.txt', 'foo'); + $filesystem = new Filesystem; + $this->assertEquals('acbd18db4cc2f85cedef654fccc4a4d8', $filesystem->hash($this->tempDir.'/foo.txt')); + } }
false
Other
laravel
framework
8f259fcc6027760c0554ca444fbf07455da9d299.json
Fix json docblocks in Request (#22860)
src/Illuminate/Http/Request.php
@@ -22,7 +22,7 @@ class Request extends SymfonyRequest implements Arrayable, ArrayAccess /** * The decoded JSON content for the request. * - * @var string + * @var \Symfony\Component\HttpFoundation\ParameterBag|null */ protected $json; @@ -314,7 +314,7 @@ public function replace(array $input) * * @param string $key * @param mixed $default - * @return mixed + * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed */ public function json($key = null, $default = null) { @@ -479,7 +479,7 @@ public function fingerprint() /** * Set the JSON payload for the request. * - * @param array $json + * @param \Symfony\Component\HttpFoundation\ParameterBag $json * @return $this */ public function setJson($json)
false
Other
laravel
framework
12d789de8472dbbd763cb680e896b3d419f954c0.json
use bootstrap 4 by default
src/Illuminate/Pagination/AbstractPaginator.php
@@ -87,14 +87,14 @@ abstract class AbstractPaginator implements Htmlable * * @var string */ - public static $defaultView = 'pagination::default'; + public static $defaultView = 'pagination::bootstrap-4'; /** * The default "simple" pagination view. * * @var string */ - public static $defaultSimpleView = 'pagination::simple-default'; + public static $defaultSimpleView = 'pagination::simple-bootstrap-4'; /** * Determine if the given value is a valid page number.
false
Other
laravel
framework
25559cdc14066566658d6c9a7efd8a0e1d0ffccd.json
update bootstrap version
src/Illuminate/Foundation/Console/Presets/Bootstrap.php
@@ -25,7 +25,7 @@ public static function install() protected static function updatePackageArray(array $packages) { return [ - 'bootstrap' => '^4.0.0-beta.3', + 'bootstrap' => '^4.0.0', 'jquery' => '^3.2', 'popper.js' => '^1.12', ] + $packages;
false
Other
laravel
framework
fc3deb532e558abdcec6f6f91e43e5e743e400ad.json
Remove unused import. Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
tests/Integration/Database/MigrateWithRealpathTest.php
@@ -2,9 +2,7 @@ namespace Illuminate\Tests\Integration\Database; -use Orchestra\Testbench\TestCase; use Illuminate\Support\Facades\Schema; -use Illuminate\Contracts\Console\Kernel as ConsoleKernel; class MigrateWithRealpathTest extends DatabaseTestCase {
false
Other
laravel
framework
e2aa73ade2a09bca807cb0be4bcd0acfbd58216d.json
Add fixed section (#22848)
CHANGELOG-5.5.md
@@ -2,6 +2,7 @@ ## v5.5.32 (2018-01-18) +### Fixed - Reverted `Collection::get()` changes [#22554](https://github.com/laravel/framework/pull/22554) ([6197e56](https://github.com/laravel/framework/commit/6197e563fab8511ce8bf9a006444fee26f015d3a), [af36f26](https://github.com/laravel/framework/commit/af36f26dad805a8d866555c979e92a9e0e1fa8ea))
false
Other
laravel
framework
9d2a7ca049e71d39e453ba8c34addb657b71b237.json
fix broken case. add test
src/Illuminate/Database/Eloquent/Builder.php
@@ -68,7 +68,7 @@ class Builder */ protected $passthru = [ 'insert', 'insertGetId', 'getBindings', 'toSql', - 'exists', 'count', 'min', 'max', 'avg', 'sum', 'getConnection', + 'exists', 'doesntExist', 'count', 'min', 'max', 'avg', 'sum', 'getConnection', ]; /**
true
Other
laravel
framework
9d2a7ca049e71d39e453ba8c34addb657b71b237.json
fix broken case. add test
src/Illuminate/Database/Query/Builder.php
@@ -1951,7 +1951,7 @@ public function exists() * * @return bool */ - public function notExists() + public function doesntExist() { return ! $this->exists(); }
true
Other
laravel
framework
9d2a7ca049e71d39e453ba8c34addb657b71b237.json
fix broken case. add test
tests/Database/DatabaseEloquentIntegrationTest.php
@@ -138,6 +138,9 @@ public function testBasicModelRetrieval() $this->assertEquals(2, EloquentTestUser::count()); + $this->assertFalse(EloquentTestUser::where('email', 'taylorotwell@gmail.com')->doesntExist()); + $this->assertTrue(EloquentTestUser::where('email', 'mohamed@laravel.com')->doesntExist()); + $model = EloquentTestUser::where('email', 'taylorotwell@gmail.com')->first(); $this->assertEquals('taylorotwell@gmail.com', $model->email); $this->assertTrue(isset($model->email));
true
Other
laravel
framework
9d2a7ca049e71d39e453ba8c34addb657b71b237.json
fix broken case. add test
tests/Database/DatabaseQueryBuilderTest.php
@@ -1269,7 +1269,7 @@ public function testAggregateFunctions() $builder = $this->getBuilder(); $builder->getConnection()->shouldReceive('select')->once()->with('select exists(select * from "users") as "exists"', [], true)->andReturn([['exists' => 0]]); - $results = $builder->from('users')->notExists(); + $results = $builder->from('users')->doesntExist(); $this->assertTrue($results); $builder = $this->getBuilder();
true
Other
laravel
framework
03f870cb0b0eefde363b8985843aba68446a407c.json
add stack method
src/Illuminate/Log/LogManager.php
@@ -65,6 +65,21 @@ public function __construct($app) $this->app = $app; } + /** + * Create a new, on-demand aggregate logger instance. + * + * @param array $channels + * @param string|null $channel + * @return \Psr\Log\LoggerInterface + */ + public function stack(array $channels, $channel = null) + { + return new Logger( + $this->createAggregateDriver(compact('channels', 'channel')), + $this->app['events'] + ); + } + /** * Get a log channel instance. *
false
Other
laravel
framework
434a82cfecb82453ebccd1f0160b56dd704a6c4c.json
Remove wrong reference in changelog (#22838)
CHANGELOG-5.5.md
@@ -3,7 +3,7 @@ ## v5.5.31 (2018-01-16) ### Fixed -- Reverted [#22804](https://github.com/laravel/framework/pull/22804) ([d8a8368](https://github.com/laravel/framework/commit/d8a8368e15e73de50b91b903f6b933c7d05b0e28), [f34926c](https://github.com/laravel/framework/commit/f34926c52ba282ff67f4be3e9afc8d0ddc885c3f), [#22817](https://github.com/laravel/framework/pull/22817)) +- Reverted [#22804](https://github.com/laravel/framework/pull/22804) ([d8a8368](https://github.com/laravel/framework/commit/d8a8368e15e73de50b91b903f6b933c7d05b0e28), [f34926c](https://github.com/laravel/framework/commit/f34926c52ba282ff67f4be3e9afc8d0ddc885c3f)) ## v5.5.30 (2018-01-16)
false
Other
laravel
framework
af4eebebc748f3f7e969d64b3e5342a16f0b6eaf.json
Add "notExists" method to query builder
src/Illuminate/Database/Query/Builder.php
@@ -1946,6 +1946,16 @@ public function exists() return false; } + /** + * Determine if no rows exist for the current query. + * + * @return bool + */ + public function notExists() + { + return ! $this->exists(); + } + /** * Retrieve the "count" result of the query. *
true
Other
laravel
framework
af4eebebc748f3f7e969d64b3e5342a16f0b6eaf.json
Add "notExists" method to query builder
tests/Database/DatabaseQueryBuilderTest.php
@@ -1267,6 +1267,11 @@ public function testAggregateFunctions() $results = $builder->from('users')->exists(); $this->assertTrue($results); + $builder = $this->getBuilder(); + $builder->getConnection()->shouldReceive('select')->once()->with('select exists(select * from "users") as "exists"', [], true)->andReturn([['exists' => 0]]); + $results = $builder->from('users')->notExists(); + $this->assertTrue($results); + $builder = $this->getBuilder(); $builder->getConnection()->shouldReceive('select')->once()->with('select max("id") as aggregate from "users"', [], true)->andReturn([['aggregate' => 1]]); $builder->getProcessor()->shouldReceive('processSelect')->once()->andReturnUsing(function ($builder, $results) {
true
Other
laravel
framework
7ba0c22133da7ca99d1ec1459630de01f95130c1.json
support aggregate drivers
src/Illuminate/Log/LogManager.php
@@ -96,8 +96,8 @@ public function driver($driver = null) protected function get($name) { try { - return $this->stores[$name] ?? with($this->resolve($name), function ($monolog) use ($name) { - return $this->tap($name, new Logger($monolog, $this->app['events'])); + return $this->stores[$name] ?? with($this->resolve($name), function ($logger) use ($name) { + return $this->tap($name, new Logger($logger, $this->app['events'])); }); } catch (Throwable $e) { return tap($this->createEmergencyLogger(), function ($logger) use ($e) { @@ -200,6 +200,21 @@ protected function createCustomDriver(array $config) return $this->app->make($config['via'])->__invoke($config); } + /** + * Create a aggregate log driver instance. + * + * @param array $config + * @return \Psr\Log\LoggerInterface + */ + protected function createAggregateDriver(array $config) + { + $handlers = collect($config['channels'])->flatMap(function ($channel) { + return $this->channel($channel)->getHandlers(); + })->all(); + + return new Monolog($this->parseChannel($config), $handlers); + } + /** * Create an instance of the single file log driver. *
false
Other
laravel
framework
e09149aaeb5d58b1fabde3a932578479f7ba86fe.json
Apply fixes from StyleCI (#22818)
tests/Integration/Foundation/Testing/Concerns/InteractsWithAuthenticationTest.php
@@ -7,7 +7,6 @@ use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Schema; -use Illuminate\Auth\EloquentUserProvider; use Illuminate\Foundation\Auth\User as Authenticatable; class InteractsWithAuthenticationTest extends TestCase
false
Other
laravel
framework
80ef2d0ea836b15c7a45e611d17e9bc24d4bd235.json
Add actingAs() tests. (#22817) * Add actingAs() tests. Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * Add test for session auth as well. Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
tests/Integration/Foundation/Testing/Concerns/InteractsWithAuthenticationTest.php
@@ -0,0 +1,101 @@ +<?php + +namespace Illuminate\Tests\Integration\Foundation\Testing\Concerns; + +use Illuminate\Http\Request; +use Orchestra\Testbench\TestCase; +use Illuminate\Support\Facades\Auth; +use Illuminate\Support\Facades\Route; +use Illuminate\Support\Facades\Schema; +use Illuminate\Auth\EloquentUserProvider; +use Illuminate\Foundation\Auth\User as Authenticatable; + +class InteractsWithAuthenticationTest extends TestCase +{ + protected function getEnvironmentSetUp($app) + { + $app['config']->set('auth.providers.users.model', AuthenticationTestUser::class); + + $app['config']->set('database.default', 'testbench'); + $app['config']->set('database.connections.testbench', [ + 'driver' => 'sqlite', + 'database' => ':memory:', + 'prefix' => '', + ]); + } + + public function setUp() + { + parent::setUp(); + + Schema::create('users', function ($table) { + $table->increments('id'); + $table->string('email'); + $table->string('username'); + $table->string('password'); + $table->string('remember_token')->default(null)->nullable(); + $table->tinyInteger('is_active')->default(0); + }); + + AuthenticationTestUser::create([ + 'username' => 'taylorotwell', + 'email' => 'taylorotwell@laravel.com', + 'password' => bcrypt('password'), + 'is_active' => true, + ]); + } + + public function test_acting_as_is_properly_handled_for_session_auth() + { + Route::get('me', function (Request $request) { + return 'Hello '.$request->user()->username; + })->middleware(['auth']); + + $user = AuthenticationTestUser::where('username', '=', 'taylorotwell')->first(); + + $this->actingAs($user) + ->get('/me') + ->assertSuccessful() + ->assertSeeText('Hello taylorotwell'); + } + + public function test_acting_as_is_properly_handled_for_auth_via_request() + { + Route::get('me', function (Request $request) { + return 'Hello '.$request->user()->username; + })->middleware(['auth:api']); + + Auth::viaRequest('basic', function ($request) { + return $request->user(); + }); + + $user = AuthenticationTestUser::where('username', '=', 'taylorotwell')->first(); + + $this->actingAs($user, 'api') + ->get('/me') + ->assertSuccessful() + ->assertSeeText('Hello taylorotwell'); + } +} + +class AuthenticationTestUser extends Authenticatable +{ + public $table = 'users'; + public $timestamps = false; + + /** + * The attributes that are mass assignable. + * + * @var array + */ + protected $guarded = ['id']; + + /** + * The attributes that should be hidden for arrays. + * + * @var array + */ + protected $hidden = [ + 'password', 'remember_token', + ]; +}
false
Other
laravel
framework
81e1c3f727c5b27d2fb19dd7a02adfe7faac77d8.json
Update MorphToMany.php (#22801)
src/Illuminate/Database/Eloquent/Relations/MorphToMany.php
@@ -149,7 +149,7 @@ public function newPivot(array $attributes = [], $exists = false) /** * Get the pivot columns for the relation. * - * "pivot_" is prefixed ot each column for easy removal later. + * "pivot_" is prefixed at each column for easy removal later. * * @return array */
false
Other
laravel
framework
4ab37bb224d7edb21acdf22dcba6ce5272bbfc14.json
Add Blade::component method for component aliases
src/Illuminate/View/Compilers/BladeCompiler.php
@@ -424,6 +424,30 @@ public function check($name, ...$parameters) return call_user_func($this->conditions[$name], ...$parameters); } + /** + * Register a component alias. + * + * @param string $path + * @param string $alias + * @return void + */ + public function component($path, $alias = null) + { + $alias = $alias ?: array_last(explode('.', $path)); + + $this->directive($alias, function ($expression) use ($path) { + if ($expression) { + return "<?php \$__env->startComponent('{$path}', {$expression}); ?>"; + } else { + return "<?php \$__env->startComponent('{$path}'); ?>"; + } + }); + + $this->directive('end'.$alias, function ($expression) use ($path) { + return '<?php echo $__env->renderComponent(); ?>'; + }); + } + /** * Register a handler for custom directives. *
true
Other
laravel
framework
4ab37bb224d7edb21acdf22dcba6ce5272bbfc14.json
Add Blade::component method for component aliases
tests/View/Blade/BladeCustomTest.php
@@ -90,4 +90,37 @@ public function testCustomIfElseConditions() <?php endif; ?>'; $this->assertEquals($expected, $this->compiler->compileString($string)); } + + public function testCustomComponents() + { + $this->compiler->component('app.components.alert', 'alert'); + + $string = '@alert +@endalert'; + $expected = '<?php $__env->startComponent(\'app.components.alert\'); ?> +<?php echo $__env->renderComponent(); ?>'; + $this->assertEquals($expected, $this->compiler->compileString($string)); + } + + public function testCustomComponentsWithSlots() + { + $this->compiler->component('app.components.alert', 'alert'); + + $string = '@alert([\'type\' => \'danger\']) +@endalert'; + $expected = '<?php $__env->startComponent(\'app.components.alert\', [\'type\' => \'danger\']); ?> +<?php echo $__env->renderComponent(); ?>'; + $this->assertEquals($expected, $this->compiler->compileString($string)); + } + + public function testCustomComponentsDefaultAlias() + { + $this->compiler->component('app.components.alert'); + + $string = '@alert +@endalert'; + $expected = '<?php $__env->startComponent(\'app.components.alert\'); ?> +<?php echo $__env->renderComponent(); ?>'; + $this->assertEquals($expected, $this->compiler->compileString($string)); + } }
true
Other
laravel
framework
b52d3143c6b4b5eacbb21a5c83873fd1d43289e9.json
Fix pivot serialization (#22786) Currently, passing a custom pivot model to a queued job will cause errors when pulling the job back off the queue. This correct the storage of pivot model and morphed pivot model queueable IDs and also adjusts the restoration queries to use the new format.
src/Illuminate/Database/Eloquent/Collection.php
@@ -4,6 +4,7 @@ use LogicException; use Illuminate\Support\Arr; +use Illuminate\Database\Eloquent\Relations\Pivot; use Illuminate\Contracts\Queue\QueueableCollection; use Illuminate\Support\Collection as BaseCollection; @@ -407,7 +408,13 @@ public function getQueueableClass() */ public function getQueueableIds() { - return $this->modelKeys(); + if ($this->isEmpty()) { + return []; + } + + return $this->first() instanceof Pivot + ? $this->map->getQueueableId()->all() + : $this->modelKeys(); } /**
true
Other
laravel
framework
b52d3143c6b4b5eacbb21a5c83873fd1d43289e9.json
Fix pivot serialization (#22786) Currently, passing a custom pivot model to a queued job will cause errors when pulling the job back off the queue. This correct the storage of pivot model and morphed pivot model queueable IDs and also adjusts the restoration queries to use the new format.
src/Illuminate/Database/Eloquent/Relations/MorphPivot.php
@@ -2,6 +2,7 @@ namespace Illuminate\Database\Eloquent\Relations; +use Illuminate\Support\Str; use Illuminate\Database\Eloquent\Builder; class MorphPivot extends Pivot @@ -76,4 +77,74 @@ public function setMorphClass($morphClass) return $this; } + + /** + * Get the queueable identity for the entity. + * + * @return mixed + */ + public function getQueueableId() + { + if (isset($this->attributes[$this->getKeyName()])) { + return $this->getKey(); + } + + return sprintf( + '%s:%s:%s:%s:%s:%s', + $this->foreignKey, $this->getAttribute($this->foreignKey), + $this->relatedKey, $this->getAttribute($this->relatedKey), + $this->morphType, $this->morphClass + ); + } + + /** + * Get a new query to restore one or more models by their queueable IDs. + * + * @param array|int $ids + * @return \Illuminate\Database\Eloquent\Builder + */ + public function newQueryForRestoration($ids) + { + if (is_array($ids)) { + return $this->newQueryForCollectionRestoration($ids); + } + + if (! Str::contains($ids, ':')) { + return parent::newQueryForRestoration($ids); + } + + $segments = explode(':', $ids); + + return $this->newQueryWithoutScopes() + ->where($segments[0], $segments[1]) + ->where($segments[2], $segments[3]) + ->where($segments[4], $segments[5]); + } + + /** + * Get a new query to restore multiple models by their queueable IDs. + * + * @param array|int $ids + * @return \Illuminate\Database\Eloquent\Builder + */ + protected function newQueryForCollectionRestoration(array $ids) + { + if (! Str::contains($ids[0], ':')) { + return parent::newQueryForRestoration($ids); + } + + $query = $this->newQueryWithoutScopes(); + + foreach ($ids as $id) { + $segments = explode(':', $id); + + $query->orWhere(function ($query) use ($segments) { + return $query->where($segments[0], $segments[1]) + ->where($segments[2], $segments[3]) + ->where($segments[4], $segments[5]); + }); + } + + return $query; + } }
true
Other
laravel
framework
b52d3143c6b4b5eacbb21a5c83873fd1d43289e9.json
Fix pivot serialization (#22786) Currently, passing a custom pivot model to a queued job will cause errors when pulling the job back off the queue. This correct the storage of pivot model and morphed pivot model queueable IDs and also adjusts the restoration queries to use the new format.
src/Illuminate/Database/Eloquent/Relations/MorphToMany.php
@@ -146,6 +146,22 @@ public function newPivot(array $attributes = [], $exists = false) return $pivot; } + /** + * Get the pivot columns for the relation. + * + * "pivot_" is prefixed ot each column for easy removal later. + * + * @return array + */ + protected function aliasedPivotColumns() + { + $defaults = [$this->foreignPivotKey, $this->relatedPivotKey, $this->morphType]; + + return collect(array_merge($defaults, $this->pivotColumns))->map(function ($column) { + return $this->table.'.'.$column.' as pivot_'.$column; + })->unique()->all(); + } + /** * Get the foreign key "type" name. *
true
Other
laravel
framework
b52d3143c6b4b5eacbb21a5c83873fd1d43289e9.json
Fix pivot serialization (#22786) Currently, passing a custom pivot model to a queued job will cause errors when pulling the job back off the queue. This correct the storage of pivot model and morphed pivot model queueable IDs and also adjusts the restoration queries to use the new format.
src/Illuminate/Database/Eloquent/Relations/Pivot.php
@@ -222,4 +222,71 @@ public function getUpdatedAtColumn() { return $this->pivotParent->getUpdatedAtColumn(); } + + /** + * Get the queueable identity for the entity. + * + * @return mixed + */ + public function getQueueableId() + { + if (isset($this->attributes[$this->getKeyName()])) { + return $this->getKey(); + } + + return sprintf( + '%s:%s:%s:%s', + $this->foreignKey, $this->getAttribute($this->foreignKey), + $this->relatedKey, $this->getAttribute($this->relatedKey) + ); + } + + /** + * Get a new query to restore one or more models by their queueable IDs. + * + * @param array|int $ids + * @return \Illuminate\Database\Eloquent\Builder + */ + public function newQueryForRestoration($ids) + { + if (is_array($ids)) { + return $this->newQueryForCollectionRestoration($ids); + } + + if (! Str::contains($ids, ':')) { + return parent::newQueryForRestoration($ids); + } + + $segments = explode(':', $ids); + + return $this->newQueryWithoutScopes() + ->where($segments[0], $segments[1]) + ->where($segments[2], $segments[3]); + } + + /** + * Get a new query to restore multiple models by their queueable IDs. + * + * @param array|int $ids + * @return \Illuminate\Database\Eloquent\Builder + */ + protected function newQueryForCollectionRestoration(array $ids) + { + if (! Str::contains($ids[0], ':')) { + return parent::newQueryForRestoration($ids); + } + + $query = $this->newQueryWithoutScopes(); + + foreach ($ids as $id) { + $segments = explode(':', $id); + + $query->orWhere(function ($query) use ($segments) { + return $query->where($segments[0], $segments[1]) + ->where($segments[2], $segments[3]); + }); + } + + return $query; + } }
true
Other
laravel
framework
b52d3143c6b4b5eacbb21a5c83873fd1d43289e9.json
Fix pivot serialization (#22786) Currently, passing a custom pivot model to a queued job will cause errors when pulling the job back off the queue. This correct the storage of pivot model and morphed pivot model queueable IDs and also adjusts the restoration queries to use the new format.
tests/Integration/Database/EloquentPivotSerializationTest.php
@@ -0,0 +1,194 @@ +<?php + +namespace Illuminate\Tests\Integration\Database; + +use Illuminate\Queue\SerializesModels; +use Illuminate\Support\Facades\Schema; +use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\Relations\Pivot; +use Illuminate\Database\Eloquent\Relations\MorphPivot; +use Illuminate\Database\Eloquent\Collection as DatabaseCollection; + +/** + * @group integration + */ +class EloquentPivotSerializationTest extends DatabaseTestCase +{ + public function setUp() + { + parent::setUp(); + + Schema::create('users', function ($table) { + $table->increments('id'); + $table->string('email'); + $table->timestamps(); + }); + + Schema::create('projects', function ($table) { + $table->increments('id'); + $table->string('name'); + $table->timestamps(); + }); + + Schema::create('project_users', function ($table) { + $table->integer('user_id'); + $table->integer('project_id'); + }); + + Schema::create('tags', function ($table) { + $table->increments('id'); + $table->string('name'); + $table->timestamps(); + }); + + Schema::create('taggables', function ($table) { + $table->integer('tag_id'); + $table->integer('taggable_id'); + $table->string('taggable_type'); + }); + } + + public function test_pivot_can_be_serialized_and_restored() + { + $user = PivotSerializationTestUser::forceCreate(['email' => 'taylor@laravel.com']); + $project = PivotSerializationTestProject::forceCreate(['name' => 'Test Project']); + $project->collaborators()->attach($user); + + $project = $project->fresh(); + + $class = new PivotSerializationTestClass($project->collaborators->first()->pivot); + $class = unserialize(serialize($class)); + + $this->assertEquals($project->collaborators->first()->pivot->user_id, $class->pivot->user_id); + $this->assertEquals($project->collaborators->first()->pivot->project_id, $class->pivot->project_id); + + $class->pivot->save(); + } + + public function test_morph_pivot_can_be_serialized_and_restored() + { + $project = PivotSerializationTestProject::forceCreate(['name' => 'Test Project']); + $tag = PivotSerializationTestTag::forceCreate(['name' => 'Test Tag']); + $project->tags()->attach($tag); + + $project = $project->fresh(); + + $class = new PivotSerializationTestClass($project->tags->first()->pivot); + $class = unserialize(serialize($class)); + + $this->assertEquals($project->tags->first()->pivot->tag_id, $class->pivot->tag_id); + $this->assertEquals($project->tags->first()->pivot->taggable_id, $class->pivot->taggable_id); + $this->assertEquals($project->tags->first()->pivot->taggable_type, $class->pivot->taggable_type); + + $class->pivot->save(); + } + + public function test_collection_of_pivots_can_be_serialized_and_restored() + { + $user = PivotSerializationTestUser::forceCreate(['email' => 'taylor@laravel.com']); + $user2 = PivotSerializationTestUser::forceCreate(['email' => 'mohamed@laravel.com']); + $project = PivotSerializationTestProject::forceCreate(['name' => 'Test Project']); + + $project->collaborators()->attach($user); + $project->collaborators()->attach($user2); + + $project = $project->fresh(); + + $class = new PivotSerializationTestCollectionClass(DatabaseCollection::make($project->collaborators->map->pivot)); + $class = unserialize(serialize($class)); + + $this->assertEquals($project->collaborators[0]->pivot->user_id, $class->pivots[0]->user_id); + $this->assertEquals($project->collaborators[1]->pivot->project_id, $class->pivots[1]->project_id); + } + + public function test_collection_of_morph_pivots_can_be_serialized_and_restored() + { + $tag = PivotSerializationTestTag::forceCreate(['name' => 'Test Tag 1']); + $tag2 = PivotSerializationTestTag::forceCreate(['name' => 'Test Tag 2']); + $project = PivotSerializationTestProject::forceCreate(['name' => 'Test Project']); + + $project->tags()->attach($tag); + $project->tags()->attach($tag2); + + $project = $project->fresh(); + + $class = new PivotSerializationTestCollectionClass(DatabaseCollection::make($project->tags->map->pivot)); + $class = unserialize(serialize($class)); + + $this->assertEquals($project->tags[0]->pivot->tag_id, $class->pivots[0]->tag_id); + $this->assertEquals($project->tags[0]->pivot->taggable_id, $class->pivots[0]->taggable_id); + $this->assertEquals($project->tags[0]->pivot->taggable_type, $class->pivots[0]->taggable_type); + + $this->assertEquals($project->tags[1]->pivot->tag_id, $class->pivots[1]->tag_id); + $this->assertEquals($project->tags[1]->pivot->taggable_id, $class->pivots[1]->taggable_id); + $this->assertEquals($project->tags[1]->pivot->taggable_type, $class->pivots[1]->taggable_type); + } +} + +class PivotSerializationTestClass +{ + use SerializesModels; + + public $pivot; + + public function __construct($pivot) + { + $this->pivot = $pivot; + } +} + +class PivotSerializationTestCollectionClass +{ + use SerializesModels; + + public $pivots; + + public function __construct($pivots) + { + $this->pivots = $pivots; + } +} + +class PivotSerializationTestUser extends Model +{ + public $table = 'users'; +} + +class PivotSerializationTestProject extends Model +{ + public $table = 'projects'; + + public function collaborators() + { + return $this->belongsToMany( + PivotSerializationTestUser::class, 'project_users', 'project_id', 'user_id' + )->using(PivotSerializationTestCollaborator::class); + } + + public function tags() + { + return $this->morphToMany(PivotSerializationTestTag::class, 'taggable', 'taggables', 'taggable_id', 'tag_id') + ->using(PivotSerializationTestTagAttachment::class); + } +} + +class PivotSerializationTestTag extends Model +{ + public $table = 'tags'; + + public function projects() + { + return $this->morphedByMany(PivotSerializationTestProject::class, 'taggable', 'taggables', 'tag_id', 'taggable_id') + ->using(PivotSerializationTestTagAttachment::class); + } +} + +class PivotSerializationTestCollaborator extends Pivot +{ + public $table = 'project_users'; +} + +class PivotSerializationTestTagAttachment extends MorphPivot +{ + public $table = 'taggables'; +}
true
Other
laravel
framework
468cb1b18c8b5160f0c7fc2c9587ececda3a0b18.json
Use Bootstrap 4 in the preset (#22754)
src/Illuminate/Foundation/Console/Presets/Bootstrap.php
@@ -25,8 +25,9 @@ public static function install() protected static function updatePackageArray(array $packages) { return [ - 'bootstrap-sass' => '^3.3.7', - 'jquery' => '^3.1.1', + 'bootstrap' => '^4.0.0-beta.3', + 'jquery' => '^3.2', + 'popper.js' => '^1.12', ] + $packages; }
true
Other
laravel
framework
468cb1b18c8b5160f0c7fc2c9587ececda3a0b18.json
Use Bootstrap 4 in the preset (#22754)
src/Illuminate/Foundation/Console/Presets/bootstrap-stubs/_variables.scss
@@ -2,24 +2,9 @@ // Body $body-bg: #f5f8fa; -// Borders -$laravel-border-color: darken($body-bg, 10%); -$list-group-border: $laravel-border-color; -$navbar-default-border: $laravel-border-color; -$panel-default-border: $laravel-border-color; -$panel-inner-border: $laravel-border-color; - -// Brands -$brand-primary: #3097D1; -$brand-info: #8eb4cb; -$brand-success: #2ab27b; -$brand-warning: #cbb956; -$brand-danger: #bf5329; - // Typography -$icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/"; $font-family-sans-serif: "Raleway", sans-serif; -$font-size-base: 14px; +$font-size-base: 0.9rem; $line-height-base: 1.6; $text-color: #636b6f; @@ -29,10 +14,5 @@ $navbar-default-bg: #fff; // Buttons $btn-default-color: $text-color; -// Inputs -$input-border: lighten($text-color, 40%); -$input-border-focus: lighten($brand-primary, 25%); -$input-color-placeholder: lighten($text-color, 30%); - // Panels $panel-default-heading-bg: #fff;
true
Other
laravel
framework
468cb1b18c8b5160f0c7fc2c9587ececda3a0b18.json
Use Bootstrap 4 in the preset (#22754)
src/Illuminate/Foundation/Console/Presets/bootstrap-stubs/app.scss
@@ -6,4 +6,9 @@ @import "variables"; // Bootstrap -@import "~bootstrap-sass/assets/stylesheets/bootstrap"; +@import '~bootstrap/scss/bootstrap'; + +.navbar-laravel { + background-color: #fff; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04); +}
true
Other
laravel
framework
2154cc9b3ce6b269e12eca52311b988633b8323d.json
Add additional Container tests (#22716)
tests/Container/ContainerTest.php
@@ -44,6 +44,19 @@ public function testBindIfDoesntRegisterIfServiceAlreadyRegistered() $this->assertEquals('Taylor', $container->make('name')); } + public function testBindIfDoesRegisterIfServiceNotRegisteredYet() + { + $container = new Container; + $container->bind('surname', function () { + return 'Taylor'; + }); + $container->bindIf('name', function () { + return 'Dayle'; + }); + + $this->assertEquals('Dayle', $container->make('name')); + } + public function testSharedClosureResolution() { $container = new Container; @@ -820,6 +833,17 @@ public function testGetAlias() $this->assertEquals($container->getAlias('foo'), 'ConcreteStub'); } + public function testItThrowsExceptionWhenAbstractIsSameAsAlias() + { + $container = new Container; + $container->alias('name', 'name'); + + $this->expectException('LogicException'); + $this->expectExceptionMessage('[name] is aliased to itself.'); + + $container->getAlias('name'); + } + public function testContainerCanInjectSimpleVariable() { $container = new Container; @@ -1001,6 +1025,15 @@ public function testContainerCanBindAnyWord() $this->assertInstanceOf(stdClass::class, $container->get('Taylor')); } + public function testContainerCanDynamicallySetService() + { + $container = new Container; + $this->assertFalse(isset($container['name'])); + $container['name'] = 'Taylor'; + $this->assertTrue(isset($container['name'])); + $this->assertSame('Taylor', $container['name']); + } + /** * @expectedException \Illuminate\Container\EntryNotFoundException * @expectedExceptionMessage
false
Other
laravel
framework
d1208ecab470b80389f940d2e46c7879c82ccabb.json
Add additional tests to Config Repository (#22714)
tests/Config/RepositoryTest.php
@@ -17,7 +17,7 @@ class RepositoryTest extends TestCase */ protected $config; - public function setUp() + protected function setUp() { $this->repository = new Repository($this->config = [ 'foo' => 'bar', @@ -142,4 +142,20 @@ public function testPush() $this->repository->push('array', 'xxx'); $this->assertSame('xxx', $this->repository->get('array.2')); } + + public function testAll() + { + $this->assertSame($this->config, $this->repository->all()); + } + + public function testOffsetUnset() + { + $this->assertArrayHasKey('associate', $this->repository->all()); + $this->assertSame($this->config['associate'], $this->repository->get('associate')); + + unset($this->repository['associate']); + + $this->assertArrayHasKey('associate', $this->repository->all()); + $this->assertNull($this->repository->get('associate')); + } }
false
Other
laravel
framework
0466d4aadfa8268db4fc8fd97e18b36247769192.json
Add test for Carbon deserialization
tests/Support/SupportCarbonTest.php
@@ -104,4 +104,13 @@ public function testSetStateReturnsCorrectType() $this->assertInstanceOf(Carbon::class, $carbon); } + + public function testDeserializationOccursCorrectly() + { + $carbon = new Carbon('2017-06-27 13:14:15.000000'); + $serialized = 'return '.var_export($carbon, true).';'; + $deserialized = eval($serialized); + + $this->assertInstanceOf(Carbon::class, $deserialized); + } }
false
Other
laravel
framework
b0aa3f3d0f5af0da67eaf7db7bd70ee9c030574b.json
Apply fixes from StyleCI (#22691)
src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
@@ -6,7 +6,6 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; -use Illuminate\Database\Eloquent\Relations\Pivot; use Illuminate\Database\Eloquent\ModelNotFoundException; class BelongsToMany extends Relation
false
Other
laravel
framework
4b1ad85ac70688f8e5fc606a6a400aeb3533363a.json
Add __set_state() method to Carbon
src/Illuminate/Support/Carbon.php
@@ -45,4 +45,15 @@ public static function serializeUsing($callback) { static::$serializer = $callback; } + + /** + * The __set_state handler. + * + * @param array $array + * @return static + */ + public static function __set_state($array) + { + return static::instance(parent::__set_state($array)); + } }
true
Other
laravel
framework
4b1ad85ac70688f8e5fc606a6a400aeb3533363a.json
Add __set_state() method to Carbon
tests/Support/SupportCarbonTest.php
@@ -93,4 +93,15 @@ public function testCarbonCanSerializeToJson() 'timezone' => 'UTC', ], $this->now->jsonSerialize()); } + + public function testSetStateReturnsCorrectType() + { + $carbon = Carbon::__set_state(array( + 'date' => '2017-06-27 13:14:15.000000', + 'timezone_type' => 3, + 'timezone' => 'UTC', + )); + + $this->assertInstanceOf(Carbon::class, $carbon); + } }
true
Other
laravel
framework
057374882af9b50c76517e63b3675c43083171a7.json
Update docblocks and simplify code (#22658)
src/Illuminate/Log/LogManager.php
@@ -68,7 +68,7 @@ public function __construct($app) /** * Get a log channel instance. * - * @param string $driver + * @param string|null $channel * @return mixed */ public function channel($channel = null) @@ -79,7 +79,7 @@ public function channel($channel = null) /** * Get a log driver instance. * - * @param string $driver + * @param string|null $driver * @return mixed */ public function driver($driver = null) @@ -167,15 +167,15 @@ protected function resolve($name) if (isset($this->customCreators[$config['driver']])) { return $this->callCustomCreator($config); - } else { - $driverMethod = 'create'.ucfirst($config['driver']).'Driver'; - - if (method_exists($this, $driverMethod)) { - return $this->{$driverMethod}($config); - } else { - throw new InvalidArgumentException("Driver [{$config['driver']}] is not supported."); - } } + + $driverMethod = 'create'.ucfirst($config['driver']).'Driver'; + + if (method_exists($this, $driverMethod)) { + return $this->{$driverMethod}($config); + } + + throw new InvalidArgumentException("Driver [{$config['driver']}] is not supported."); } /** @@ -264,7 +264,7 @@ protected function createErrorlogDriver(array $config) * Prepare the handlers for usage by Monolog. * * @param array $handlers - * @return \Monolog\Handler\HandlerInterface + * @return array */ protected function prepareHandlers(array $handlers) {
false