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 | f0448d4df91dcec7c49b580d3fb96c21523c3b74.json | Apply fixes from StyleCI (#28824) | src/Illuminate/Database/Eloquent/Builder.php | @@ -966,7 +966,7 @@ public function applyScopes()
continue;
}
- $builder->callScope(function (Builder $builder) use ($scope) {
+ $builder->callScope(function (self $builder) use ($scope) {
// If the scope is a Closure we will just go ahead and call ... | true |
Other | laravel | framework | f0448d4df91dcec7c49b580d3fb96c21523c3b74.json | Apply fixes from StyleCI (#28824) | src/Illuminate/Foundation/Application.php | @@ -1128,7 +1128,7 @@ public function isLocale($locale)
public function registerCoreContainerAliases()
{
foreach ([
- 'app' => [\Illuminate\Foundation\Application::class, \Illuminate\Contracts\Container\Container::class, \Illuminate\Contracts\Foundation\Application::class,... | true |
Other | laravel | framework | c9f957a8b07011b2a9d88cee24f5b0e4ed905e15.json | add index => viewAny to resourceAbilityMap | src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php | @@ -105,6 +105,7 @@ public function authorizeResource($model, $parameter = null, array $options = []
protected function resourceAbilityMap()
{
return [
+ 'index' => 'viewAny',
'show' => 'view',
'create' => 'create',
'store' => 'create', | false |
Other | laravel | framework | f96433678711ab3c8f31ce223454af3f7e9e3fd1.json | remove failing assertions
because we are forcing the second argument of `containsAll()` to be an array, let's remove the assertions where a string value was still allowed | tests/Support/SupportStrTest.php | @@ -132,9 +132,7 @@ public function testStrContains()
public function testStrContainsAll()
{
$this->assertTrue(Str::containsAll('taylor otwell', ['taylor', 'otwell']));
- $this->assertTrue(Str::containsAll('taylor otwell', 'taylor'));
$this->assertTrue(Str::containsAll('taylor otwell'... | false |
Other | laravel | framework | 5db5288100817b036d315aa3941039280989a5c8.json | Apply fixes from StyleCI (#28812) | tests/Foundation/Http/Middleware/TrimStringsTest.php | @@ -2,9 +2,9 @@
namespace Illuminate\Tests\Foundation\Http\Middleware;
-use Illuminate\Foundation\Http\Middleware\TrimStrings;
use Illuminate\Http\Request;
use PHPUnit\Framework\TestCase;
+use Illuminate\Foundation\Http\Middleware\TrimStrings;
use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
c... | false |
Other | laravel | framework | 5a5d68b41a2ce6513b9782a6b1d7fcab5156a213.json | Add Input Facade methods hints | src/Illuminate/Http/Concerns/InteractsWithInput.php | @@ -269,7 +269,6 @@ public function query($key = null, $default = null)
*
* @param string|null $key
* @param string|array|null $default
- *
* @return string|array|null
*/
public function post($key = null, $default = null) | true |
Other | laravel | framework | 5a5d68b41a2ce6513b9782a6b1d7fcab5156a213.json | Add Input Facade methods hints | src/Illuminate/Support/Facades/Input.php | @@ -3,6 +3,43 @@
namespace Illuminate\Support\Facades;
/**
+ * @method static bool matchesType(string $actual, string $type)
+ * @method static bool isJson()
+ * @method static bool expectsJson()
+ * @method static bool wantsJson()
+ * @method static bool accepts(string|array $contentTypes)
+ * @method static bool ... | true |
Other | laravel | framework | 801cbdbbe187dee2021ba9c4f69e474a526354a6.json | Add Crypt Facade methods hints | src/Illuminate/Support/Facades/Crypt.php | @@ -3,10 +3,13 @@
namespace Illuminate\Support\Facades;
/**
- * @method static string encrypt($value, bool $serialize = true)
+ * @method static bool supported(string $key, string $cipher)
+ * @method static string generateKey(string $cipher)
+ * @method static string encrypt(mixed $value, bool $serialize = true)
... | false |
Other | laravel | framework | 7f8db2a3e1dad10f4b933a86ba9d3e0706551d98.json | Add type-hints to Artisan Facade methods props | src/Illuminate/Support/Facades/Blade.php | @@ -3,20 +3,20 @@
namespace Illuminate\Support\Facades;
/**
- * @method static void compile($path = null)
+ * @method static void compile(string|null $path = null)
* @method static string getPath()
- * @method static void setPath($path)
- * @method static string compileString($value)
- * @method static string str... | false |
Other | laravel | framework | 00d1aeb38f319f6621cbda88f6f90c445880af3f.json | Add hints for Artisan Facade methods | src/Illuminate/Support/Facades/Artisan.php | @@ -5,11 +5,12 @@
use Illuminate\Contracts\Console\Kernel as ConsoleKernelContract;
/**
- * @method static int handle(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output = null)
- * @method static int call(string $command, array $parameters = [], $output... | false |
Other | laravel | framework | 4d2ca2029a4fc02b0376bff786052f5be7d10c21.json | Add hints for App Facade methods | src/Illuminate/Support/Facades/App.php | @@ -5,15 +5,42 @@
/**
* @method static string version()
* @method static string basePath()
- * @method static string environment()
+ * @method static string bootstrapPath(string $path = '')
+ * @method static string configPath(string $path = '')
+ * @method static string databasePath(string $path = '')
+ * @method... | false |
Other | laravel | framework | ae478939655c2e01cd59c14aef6454c5a3a72e4a.json | Add boolean methods to Schema facade | src/Illuminate/Support/Facades/Schema.php | @@ -9,6 +9,9 @@
* @method static \Illuminate\Database\Schema\Builder table(string $table, \Closure $callback)
* @method static \Illuminate\Database\Schema\Builder rename(string $from, string $to)
* @method static void defaultStringLength(int $length)
+ * @method static bool hasTable(string $table)
+ * @method sta... | false |
Other | laravel | framework | 8663082e67513d2ba1b7f0fbe868520d0bff67e8.json | add `@componentFirst` directive
- add the compilation
- add the `startComponentFirst` method, which uses the View Factory to find the first view given that actually exists.
- add a test for the compilation. | src/Illuminate/View/Compilers/Concerns/CompilesComponents.php | @@ -45,4 +45,15 @@ protected function compileEndSlot()
{
return '<?php $__env->endSlot(); ?>';
}
+
+ /**
+ * Compile the component-first statements into valid PHP.
+ *
+ * @param string $expression
+ * @return string
+ */
+ protected function compileComponentFirst($express... | true |
Other | laravel | framework | 8663082e67513d2ba1b7f0fbe868520d0bff67e8.json | add `@componentFirst` directive
- add the compilation
- add the `startComponentFirst` method, which uses the View Factory to find the first view given that actually exists.
- add a test for the compilation. | src/Illuminate/View/Concerns/ManagesComponents.php | @@ -2,6 +2,7 @@
namespace Illuminate\View\Concerns;
+use Illuminate\Support\Arr;
use Illuminate\Support\HtmlString;
trait ManagesComponents
@@ -52,6 +53,22 @@ public function startComponent($name, array $data = [])
}
}
+ /**
+ * Get the first view that actually exists from the given list... | true |
Other | laravel | framework | 8663082e67513d2ba1b7f0fbe868520d0bff67e8.json | add `@componentFirst` directive
- add the compilation
- add the `startComponentFirst` method, which uses the View Factory to find the first view given that actually exists.
- add a test for the compilation. | tests/View/Blade/BladeComponentFirstTest.php | @@ -0,0 +1,12 @@
+<?php
+
+namespace Illuminate\Tests\View\Blade;
+
+class BladeComponentFirstTest extends AbstractBladeTestCase
+{
+ public function testComponentFirstsAreCompiled()
+ {
+ $this->assertEquals('<?php $__env->startComponentFirst(["one", "two"]); ?>', $this->compiler->compileString('@componen... | true |
Other | laravel | framework | 732686785d16968964e0216379eca4b4d781b0a1.json | Show members causing failure in array validation | src/Illuminate/Validation/Validator.php | @@ -655,9 +655,17 @@ public function invalid()
$this->passes();
}
- return array_intersect_key(
+ $invalid = array_intersect_key(
$this->data, $this->attributesThatHaveMessages()
);
+
+ $result = [];
+ $failed = Arr::only(Arr::dot($invalid), arra... | true |
Other | laravel | framework | 732686785d16968964e0216379eca4b4d781b0a1.json | Show members causing failure in array validation | tests/Validation/ValidationValidatorTest.php | @@ -4134,6 +4134,34 @@ public function testValidMethod()
]);
}
+ public function testNestedInvalidMethod()
+ {
+ $trans = $this->getIlluminateArrayTranslator();
+ $v = new Validator($trans, [
+ 'testvalid' => 'filled',
+ 'testinvalid' => '',
+ 'record... | true |
Other | laravel | framework | 50c35401f53e695d9b708700666248d481b9db8a.json | Fix StyleCI issue | src/Illuminate/Database/Schema/ColumnDefinition.php | @@ -2,8 +2,8 @@
namespace Illuminate\Database\Schema;
-use Illuminate\Database\Query\Expression;
use Illuminate\Support\Fluent;
+use Illuminate\Database\Query\Expression;
/**
* @method ColumnDefinition after(string $column) Place the column "after" another column (MySQL) | false |
Other | laravel | framework | e01f5483a70c853314ead2a3f0a3d075f5c3e42e.json | fix StyleCI issue | src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php | @@ -313,7 +313,7 @@ public function compileDisableForeignKeyConstraints()
}
/**
- * Compile the command to drop all foreign keys
+ * Compile the command to drop all foreign keys.
*
* @return string
*/ | false |
Other | laravel | framework | 63a65598c09baec47989f63c839a292af3c7b108.json | change dropAllTables to compileDropAlltables | src/Illuminate/Database/Schema/Builder.php | @@ -267,18 +267,6 @@ public function disableForeignKeyConstraints()
);
}
- /**
- * Drop all foreign keys from the database.
- *
- * @return void
- *
- * @throws \LogicException
- */
- public function dropAllForeignKeys()
- {
- throw new LogicException('This databa... | true |
Other | laravel | framework | 63a65598c09baec47989f63c839a292af3c7b108.json | change dropAllTables to compileDropAlltables | src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php | @@ -317,7 +317,7 @@ public function compileDisableForeignKeyConstraints()
*
* @return string
*/
- public function dropAllForeignKeys()
+ public function compileDropAllForeignKeys()
{
return "DECLARE @sql NVARCHAR(MAX) = N'';
SELECT @sql += 'ALTER TABLE ' + QUOTENAME(OB... | true |
Other | laravel | framework | 63a65598c09baec47989f63c839a292af3c7b108.json | change dropAllTables to compileDropAlltables | src/Illuminate/Database/Schema/SqlServerBuilder.php | @@ -11,7 +11,7 @@ class SqlServerBuilder extends Builder
*/
public function dropAllTables()
{
- $this->connection->statement($this->grammar->dropAllForeignKeys());
+ $this->connection->statement($this->grammar->compileDropAllForeignKeys());
$this->connection->statement($this->gram... | true |
Other | laravel | framework | 53081e92c6c25f99574b9022aec79d9bf8c63801.json | Fix database rules with WHERE clauses | src/Illuminate/Validation/Rules/DatabaseRule.php | @@ -166,7 +166,7 @@ public function queryCallbacks()
protected function formatWheres()
{
return collect($this->wheres)->map(function ($where) {
- return $where['column'].','.$where['value'];
+ return $where['column'].','.'"'.str_replace('"', '""', $where['value']).'"';
... | true |
Other | laravel | framework | 53081e92c6c25f99574b9022aec79d9bf8c63801.json | Fix database rules with WHERE clauses | tests/Validation/ValidationExistsRuleTest.php | @@ -37,11 +37,11 @@ public function testItCorrectlyFormatsAStringVersionOfTheRule()
{
$rule = new Exists('table');
$rule->where('foo', 'bar');
- $this->assertEquals('exists:table,NULL,foo,bar', (string) $rule);
+ $this->assertEquals('exists:table,NULL,foo,"bar"', (string) $rule);
... | true |
Other | laravel | framework | 53081e92c6c25f99574b9022aec79d9bf8c63801.json | Fix database rules with WHERE clauses | tests/Validation/ValidationUniqueRuleTest.php | @@ -12,36 +12,40 @@ public function testItCorrectlyFormatsAStringVersionOfTheRule()
{
$rule = new Unique('table');
$rule->where('foo', 'bar');
- $this->assertEquals('unique:table,NULL,NULL,id,foo,bar', (string) $rule);
+ $this->assertEquals('unique:table,NULL,NULL,id,foo,"bar"', (st... | true |
Other | laravel | framework | f8e0662e377544dd0ce78328033f1da995947efb.json | create dropAllForeignKeys method for SQL Server | src/Illuminate/Database/Schema/Builder.php | @@ -267,6 +267,18 @@ public function disableForeignKeyConstraints()
);
}
+ /**
+ * Drop all foreign keys from the database.
+ *
+ * @return void
+ *
+ * @throws \LogicException
+ */
+ public function dropAllForeignKeys()
+ {
+ throw new LogicException('This databa... | true |
Other | laravel | framework | f8e0662e377544dd0ce78328033f1da995947efb.json | create dropAllForeignKeys method for SQL Server | src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php | @@ -312,6 +312,22 @@ public function compileDisableForeignKeyConstraints()
return 'EXEC sp_msforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT all";';
}
+ /**
+ * Compile the command to drop all foreign keys
+ *
+ * @return string
+ */
+ public function dropAllForeignKeys()
+ {
+ ... | true |
Other | laravel | framework | f8e0662e377544dd0ce78328033f1da995947efb.json | create dropAllForeignKeys method for SQL Server | src/Illuminate/Database/Schema/SqlServerBuilder.php | @@ -11,10 +11,7 @@ class SqlServerBuilder extends Builder
*/
public function dropAllTables()
{
- $this->disableForeignKeyConstraints();
-
+ $this->connection->statement($this->grammar->dropAllForeignKeys());
$this->connection->statement($this->grammar->compileDropAllTables());
-
-... | true |
Other | laravel | framework | cc334d9cc46bf930603dd79d9ee169252c8305bd.json | Check presence of force flag in command signature | src/Illuminate/Console/ConfirmableTrait.php | @@ -22,7 +22,7 @@ public function confirmToProceed($warning = 'Application In Production!', $callb
$shouldConfirm = $callback instanceof Closure ? call_user_func($callback) : $callback;
if ($shouldConfirm) {
- if ($this->option('force')) {
+ if ($this->hasOption('force') && $th... | false |
Other | laravel | framework | 9293fec485fdd2a176ce27f26b31fde6bb7eed54.json | Fix return type of Session Store save method | src/Illuminate/Contracts/Session/Session.php | @@ -36,7 +36,7 @@ public function start();
/**
* Save the session data to storage.
*
- * @return bool
+ * @return void
*/
public function save();
| true |
Other | laravel | framework | 9293fec485fdd2a176ce27f26b31fde6bb7eed54.json | Fix return type of Session Store save method | src/Illuminate/Session/Store.php | @@ -119,7 +119,7 @@ protected function prepareForUnserialize($data)
/**
* Save the session data to storage.
*
- * @return bool
+ * @return void
*/
public function save()
{ | true |
Other | laravel | framework | d53cba6e66037342c4cc26b6d9c768c114d2a641.json | Add typehint for QueryException | src/Illuminate/Database/Connection.php | @@ -708,7 +708,7 @@ protected function getElapsedTime($start)
*
* @throws \Illuminate\Database\QueryException
*/
- protected function handleQueryException($e, $query, $bindings, Closure $callback)
+ protected function handleQueryException(QueryException $e, $query, $bindings, Closure $callback)
... | false |
Other | laravel | framework | 2bcb405ddc9ed69355513de5f2396dc658fd004d.json | fix cluster connecting | src/Illuminate/Redis/RedisManager.php | @@ -118,7 +118,9 @@ public function resolve($name = null)
protected function resolveCluster($name)
{
return $this->connector()->connectToCluster(
- $this->parseConnectionConfiguration($this->config['clusters'][$name]),
+ array_map(function ($config) {
+ return $th... | false |
Other | laravel | framework | ae9d74ca113019d8b46e605599821e9f9f4dd891.json | Remove unused Migrator $notes dynamic property | src/Illuminate/Database/Migrations/Migrator.php | @@ -94,8 +94,6 @@ public function __construct(MigrationRepositoryInterface $repository,
*/
public function run($paths = [], array $options = [])
{
- $this->notes = [];
-
// Once we grab all of the migration files for the path, we will compare them
// against the migrations that ... | false |
Other | laravel | framework | 8fd18a33e56e4d16dd176a0342109844606fdbcd.json | update toResponse return type | src/Illuminate/Contracts/Support/Responsable.php | @@ -8,7 +8,7 @@ interface Responsable
* Create an HTTP response that represents the object.
*
* @param \Illuminate\Http\Request $request
- * @return \Illuminate\Http\Response
+ * @return \Symfony\Component\HttpFoundation\Response
*/
public function toResponse($request);
} | false |
Other | laravel | framework | ccae6f4837af5641a31a210fde7e6d49ccb35191.json | Drop Carbon v1
Carbon v1 is now warning to drop support and upgrade to v2 instead so it's best that we drop support for it in newer versions. See https://github.com/briannesbitt/Carbon/issues/1685 | composer.json | @@ -25,7 +25,7 @@
"erusev/parsedown": "^1.7",
"league/flysystem": "^1.0.8",
"monolog/monolog": "^1.12",
- "nesbot/carbon": "^1.26.3 || ^2.0",
+ "nesbot/carbon": "^2.0",
"opis/closure": "^3.1",
"psr/container": "^1.0",
"psr/simple-cache": "^1.0", | true |
Other | laravel | framework | ccae6f4837af5641a31a210fde7e6d49ccb35191.json | Drop Carbon v1
Carbon v1 is now warning to drop support and upgrade to v2 instead so it's best that we drop support for it in newer versions. See https://github.com/briannesbitt/Carbon/issues/1685 | src/Illuminate/Support/composer.json | @@ -19,7 +19,7 @@
"ext-mbstring": "*",
"doctrine/inflector": "^1.1",
"illuminate/contracts": "5.9.*",
- "nesbot/carbon": "^1.26.3 || ^2.0"
+ "nesbot/carbon": "^2.0"
},
"conflict": {
"tightenco/collect": "<5.5.33" | true |
Other | laravel | framework | ccae6f4837af5641a31a210fde7e6d49ccb35191.json | Drop Carbon v1
Carbon v1 is now warning to drop support and upgrade to v2 instead so it's best that we drop support for it in newer versions. See https://github.com/briannesbitt/Carbon/issues/1685 | tests/Support/DateFacadeTest.php | @@ -56,10 +56,6 @@ public function testUseClassName()
public function testCarbonImmutable()
{
- if (! class_exists(CarbonImmutable::class)) {
- $this->markTestSkipped('Test for Carbon 2 only');
- }
-
DateFactory::use(CarbonImmutable::class);
$this->assertSame(Carbo... | true |
Other | laravel | framework | ccae6f4837af5641a31a210fde7e6d49ccb35191.json | Drop Carbon v1
Carbon v1 is now warning to drop support and upgrade to v2 instead so it's best that we drop support for it in newer versions. See https://github.com/briannesbitt/Carbon/issues/1685 | tests/Support/SupportCarbonTest.php | @@ -5,7 +5,6 @@
use DateTime;
use DateTimeInterface;
use BadMethodCallException;
-use Carbon\CarbonImmutable;
use Illuminate\Support\Carbon;
use PHPUnit\Framework\TestCase;
use Carbon\Carbon as BaseCarbon;
@@ -87,11 +86,7 @@ public function testCarbonAllowsCustomSerializer()
public function testCarbonCanSe... | true |
Other | laravel | framework | fd77f752a2dd73e277f3b3187a9a9facf85913b6.json | Add fullpath option | src/Illuminate/Database/Console/Migrations/MigrateMakeCommand.php | @@ -17,7 +17,8 @@ class MigrateMakeCommand extends BaseCommand
{--create= : The table to be created}
{--table= : The table to migrate}
{--path= : The location where the migration file should be created}
- {--realpath : Indicate any provided migration file paths are pre-resolved absolut... | false |
Other | laravel | framework | 5f1dc4e48a621418b76850b24895f3ad254dd771.json | Follow loadMorph syntax | src/Illuminate/Database/Eloquent/Relations/MorphTo.php | @@ -271,10 +271,10 @@ public function getDictionary()
*
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
*/
- public function withMorph(string $modelClass, array $with)
+ public function withMorph(array $with)
{
- $this->typedEagerLoads[$modelClass] = array_merge(
- ... | true |
Other | laravel | framework | 5f1dc4e48a621418b76850b24895f3ad254dd771.json | Follow loadMorph syntax | tests/Integration/Database/EloquentMorphEagerLoadingTest.php | @@ -50,7 +50,7 @@ public function test_with_morph_loading()
{
$comments = Comment::query()
->with(['commentable' => function (MorphTo $morphTo) {
- $morphTo->withMorph(Post::class, ['user']);
+ $morphTo->withMorph([Post::class =>['user']]);
}])
... | true |
Other | laravel | framework | 544891bba4bb97a68f752fcde675bdb2c21c4cfc.json | Remove return type | src/Illuminate/Database/Eloquent/Relations/MorphTo.php | @@ -271,7 +271,7 @@ public function getDictionary()
*
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
*/
- public function withMorph(string $modelClass, array $with): self
+ public function withMorph(string $modelClass, array $with)
{
$this->typedEagerLoads[$modelClass] =... | false |
Other | laravel | framework | b39a01d2962edf2d114cf81c38f4b441479d4a4e.json | Fix styleCI errors | src/Illuminate/Database/Eloquent/Relations/MorphTo.php | @@ -38,7 +38,7 @@ class MorphTo extends BelongsTo
protected $macroBuffer = [];
/**
- * A map of relations to load for each individual morph type
+ * A map of relations to load for each individual morph type.
*
* @var array
*/
@@ -264,7 +264,7 @@ public function getDictionary()
... | false |
Other | laravel | framework | 0b891475133e8e427a5ad61dc4be80a99ecf8424.json | Add support for typed eager loads | src/Illuminate/Database/Eloquent/Relations/MorphTo.php | @@ -37,6 +37,13 @@ class MorphTo extends BelongsTo
*/
protected $macroBuffer = [];
+ /**
+ * A map of relations to load for each individual morph type
+ *
+ * @var array
+ */
+ protected $typedEagerLoads = [];
+
/**
* Create a new morph to relationship instance.
*
@@ ... | false |
Other | laravel | framework | ab675d4718e7bd587ae91deb7231f90d34df5786.json | allow easier extending of url generator | src/Illuminate/Routing/RoutingServiceProvider.php | @@ -8,6 +8,7 @@
use Psr\Http\Message\ServerRequestInterface;
use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory;
use Illuminate\Contracts\View\Factory as ViewFactoryContract;
+use Illuminate\Contracts\Routing\UrlGenerator as UrlGeneratorContract;
use Illuminate\Contracts\Routing\ResponseFactory as ResponseF... | false |
Other | laravel | framework | fec2d82721bd1b143af00de54f11883876738186.json | Use proper link | README.md | @@ -38,7 +38,7 @@ In order to ensure that the Laravel community is welcoming to all, please review
## Security Vulnerabilities
-Please review [our security policy](SECURITY.md) on how to report security vulnerabilities.
+Please review [our security policy](https://github.com/laravel/framework/security/policy) on h... | false |
Other | laravel | framework | f970b65732ed0688434b277d25afaf5c28b57021.json | Add integration test. | tests/Redis/RedisConnectionTest.php | @@ -558,8 +558,9 @@ public function connections()
$prefixedPhpredis = new RedisManager(new Application, 'phpredis', [
'cluster' => false,
'default' => [
- 'host' => $host,
- 'port' => $port,
+ 'url' => "redis://user@... | false |
Other | laravel | framework | c88de24605e68de0a411193c99d364d85af0417e.json | Parse url key in Redis configuration. | src/Illuminate/Redis/RedisManager.php | @@ -5,6 +5,7 @@
use InvalidArgumentException;
use Illuminate\Contracts\Redis\Factory;
use Illuminate\Redis\Connections\Connection;
+use Illuminate\Support\ConfigurationUrlParser;
/**
* @mixin \Illuminate\Redis\Connections\Connection
@@ -95,7 +96,9 @@ public function resolve($name = null)
$options = $th... | false |
Other | laravel | framework | 39c115ddca97217da748b90a1146d484d3c91f61.json | Add UrlParser to Support. | src/Illuminate/Database/DatabaseManager.php | @@ -4,6 +4,7 @@
use PDO;
use Illuminate\Support\Arr;
+use Illuminate\Support\ConfigurationUrlParser;
use Illuminate\Support\Str;
use InvalidArgumentException;
use Illuminate\Database\Connectors\ConnectionFactory; | true |
Other | laravel | framework | 39c115ddca97217da748b90a1146d484d3c91f61.json | Add UrlParser to Support. | src/Illuminate/Support/ConfigurationUrlParser.php | @@ -0,0 +1,189 @@
+<?php
+
+namespace Illuminate\Support;
+
+use InvalidArgumentException;
+
+class ConfigurationUrlParser
+{
+ /**
+ * The drivers aliases map.
+ *
+ * @var array
+ */
+ protected static $driverAliases = [
+ 'mssql' => 'sqlsrv',
+ 'mysql2' => 'mysql', // RDS
+ ... | true |
Other | laravel | framework | 39c115ddca97217da748b90a1146d484d3c91f61.json | Add UrlParser to Support. | tests/Support/ConfigurationUrlParserTest.php | @@ -0,0 +1,357 @@
+<?php
+
+namespace Illuminate\Tests\Support;
+
+use Illuminate\Support\ConfigurationUrlParser;
+use PHPUnit\Framework\TestCase;
+
+class ConfigurationUrlParserTest extends TestCase
+{
+ /**
+ * @dataProvider databaseUrls
+ */
+ public function testDatabaseUrlsAreParsed($config, $expecte... | true |
Other | laravel | framework | eee81be200cb4aed8b43d4d7f6e3469a0bcd5a69.json | Remove UrlParser from database. | src/Illuminate/Database/ConfigurationUrlParser.php | @@ -1,190 +0,0 @@
-<?php
-
-namespace Illuminate\Database;
-
-use Illuminate\Support\Arr;
-use InvalidArgumentException;
-
-class ConfigurationUrlParser
-{
- /**
- * The drivers aliases map.
- *
- * @var array
- */
- protected static $driverAliases = [
- 'mssql' => 'sqlsrv',
- 'mysql... | true |
Other | laravel | framework | eee81be200cb4aed8b43d4d7f6e3469a0bcd5a69.json | Remove UrlParser from database. | tests/Database/DatabaseUrlParserTest.php | @@ -1,339 +0,0 @@
-<?php
-
-namespace Illuminate\Tests\Database;
-
-use PHPUnit\Framework\TestCase;
-use Illuminate\Database\ConfigurationUrlParser;
-
-class DatabaseUrlParserTest extends TestCase
-{
- /**
- * @dataProvider databaseUrls
- */
- public function testDatabaseUrlsAreParsed($config, $expectedOu... | true |
Other | laravel | framework | 9b28de1cd6431b2aa17558755e71b10677da060d.json | Add tests for app environment helpers | tests/Foundation/FoundationApplicationTest.php | @@ -189,6 +189,30 @@ public function testEnvironment()
$this->assertFalse($app->environment(['qux', 'bar']));
}
+ public function testEnvironmentHelpers()
+ {
+ $local = new Application;
+ $local['env'] = 'local';
+
+ $this->assertTrue($local->isLocal());
+ $this->asser... | false |
Other | laravel | framework | e225b66a7916a9e964e5c09e7f749ca3be28c992.json | Add app()->isProduction() helper | src/Illuminate/Foundation/Application.php | @@ -519,6 +519,16 @@ public function isLocal()
return $this['env'] === 'local';
}
+ /**
+ * Determine if application is in production environment.
+ *
+ * @return bool
+ */
+ public function isProduction()
+ {
+ return $this['env'] === 'production';
+ }
+
/**
... | false |
Other | laravel | framework | c19ec3bd1351c7097d62ca60ffdfb581808e9c35.json | Add check for response status code being 204 | src/Illuminate/Foundation/Testing/TestResponse.php | @@ -668,7 +668,7 @@ public function assertJsonValidationErrors($keys)
*/
public function assertJsonMissingValidationErrors($keys = null)
{
- if (empty($this->getContent())) {
+ if (empty($this->getContent()) && $this->getStatusCode() == 204) {
PHPUnit::assertTrue(true);
... | true |
Other | laravel | framework | c19ec3bd1351c7097d62ca60ffdfb581808e9c35.json | Add check for response status code being 204 | tests/Foundation/FoundationTestResponseTest.php | @@ -448,11 +448,18 @@ public function testAssertJsonMissingValidationErrorsWithoutArgumentCanFail()
public function testAssertJsonMissingValidationErrorsOnAnEmptyResponse()
{
- $testResponse = TestResponse::fromBaseResponse(
+ $emptyTestResponse204 = TestResponse::fromBaseResponse(
... | true |
Other | laravel | framework | 55e459049c09572998cbbb8e277224cf91cd4102.json | Use consistent uppercase for DOCTYPE
This is in line with the Google HTML guide and with other files in the framework.
https://google.github.io/styleguide/htmlcssguide.html#HTML_Validity | src/Illuminate/Foundation/Exceptions/views/illustrated-layout.blade.php | @@ -1,4 +1,4 @@
-<!doctype html>
+<!DOCTYPE html>
<html lang="en">
<head>
<title>@yield('title')</title> | false |
Other | laravel | framework | 0e02d0be82795138768906da3ac4200397849cc2.json | Remove unnecessary type attribute
These aren't necessary when css and js files are used: https://google.github.io/styleguide/htmlcssguide.html#type_Attributes | src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub | @@ -14,7 +14,7 @@
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
- <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css">
+ <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<!-- Styles -->
<link href="... | true |
Other | laravel | framework | 0e02d0be82795138768906da3ac4200397849cc2.json | Remove unnecessary type attribute
These aren't necessary when css and js files are used: https://google.github.io/styleguide/htmlcssguide.html#type_Attributes | src/Illuminate/Foundation/Exceptions/views/illustrated-layout.blade.php | @@ -8,7 +8,7 @@
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
- <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css">
+ <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<!-- Styles -->... | true |
Other | laravel | framework | 0e02d0be82795138768906da3ac4200397849cc2.json | Remove unnecessary type attribute
These aren't necessary when css and js files are used: https://google.github.io/styleguide/htmlcssguide.html#type_Attributes | src/Illuminate/Foundation/Exceptions/views/minimal.blade.php | @@ -8,7 +8,7 @@
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
- <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css">
+ <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<!-- Styles -->... | true |
Other | laravel | framework | 254c0b16b59f1fe50a35cac0c7b69c67ea654016.json | add test case for empty $name | tests/Filesystem/FilesystemAdapterTest.php | @@ -58,6 +58,17 @@ public function testDownloadNonAsciiFilename()
$files = new FilesystemAdapter($this->filesystem);
$response = $files->download('file.txt', 'пиздюк.txt');
$this->assertInstanceOf(StreamedResponse::class, $response);
+ $this->assertEquals("attachment; filename=pizdyuk.... | false |
Other | laravel | framework | 998d4b88f50e9ab655834a31f3af36e9f7bd301a.json | Add html as a new valid extension for views. | src/Illuminate/View/Factory.php | @@ -66,6 +66,7 @@ class Factory implements FactoryContract
'blade.php' => 'blade',
'php' => 'php',
'css' => 'file',
+ 'html' => 'file',
];
/** | true |
Other | laravel | framework | 998d4b88f50e9ab655834a31f3af36e9f7bd301a.json | Add html as a new valid extension for views. | src/Illuminate/View/FileViewFinder.php | @@ -40,7 +40,7 @@ class FileViewFinder implements ViewFinderInterface
*
* @var array
*/
- protected $extensions = ['blade.php', 'php', 'css'];
+ protected $extensions = ['blade.php', 'php', 'css', 'html'];
/**
* Create a new file view loader instance. | true |
Other | laravel | framework | 998d4b88f50e9ab655834a31f3af36e9f7bd301a.json | Add html as a new valid extension for views. | tests/View/ViewFileViewFinderTest.php | @@ -39,6 +39,7 @@ public function testDirectoryCascadingFileLoading()
$finder->getFilesystem()->shouldReceive('exists')->once()->with(__DIR__.'/foo.blade.php')->andReturn(false);
$finder->getFilesystem()->shouldReceive('exists')->once()->with(__DIR__.'/foo.php')->andReturn(false);
$finder->ge... | true |
Other | laravel | framework | ee4d8af4123f2e8a574c87a058948fd9dc7084c7.json | Apply fixes from StyleCI (#28537) | src/Illuminate/Cache/FileStore.php | @@ -190,7 +190,7 @@ protected function getPayload($key)
$data = unserialize(substr($contents, 10));
} catch (Exception $e) {
$this->forget($key);
-
+
return $this->emptyPayload();
}
| false |
Other | laravel | framework | 5de1d43c72b1f9d6161def6a6c343c9bf663fbac.json | Provide notification callback with Swift message | src/Illuminate/Notifications/Channels/MailChannel.php | @@ -137,6 +137,8 @@ protected function buildMessage($mailMessage, $notifiable, $notification, $messa
if (! is_null($message->priority)) {
$mailMessage->setPriority($message->priority);
}
+
+ $this->runCallbacks($mailMessage, $message);
}
/**
@@ -225,4 +227,20 @@ protect... | true |
Other | laravel | framework | 5de1d43c72b1f9d6161def6a6c343c9bf663fbac.json | Provide notification callback with Swift message | src/Illuminate/Notifications/Messages/MailMessage.php | @@ -73,6 +73,13 @@ class MailMessage extends SimpleMessage implements Renderable
*/
public $rawAttachments = [];
+ /**
+ * The callbacks for the message.
+ *
+ * @var array
+ */
+ public $callbacks = [];
+
/**
* Priority level of the message.
*
@@ -224,6 +231,19 @@ pu... | true |
Other | laravel | framework | 5de1d43c72b1f9d6161def6a6c343c9bf663fbac.json | Provide notification callback with Swift message | tests/Notifications/NotificationMailMessageTest.php | @@ -74,4 +74,16 @@ public function testReplyToIsSetCorrectly()
$this->assertSame([['test@example.com', null], ['test@example.com', 'Test']], $message->replyTo);
}
+
+ public function testCallbackIsSetCorrectly()
+ {
+ $callback = function () {
+ //
+ };
+
+ $message... | true |
Other | laravel | framework | 3627f33df082c988f84dd421ff97daf1c800eadf.json | Update the phpdoc of the id method to accept uuid
When using Uuid as primary key, the PHPStorm and static analysis tools like PHPStan catch the advertise that auth()->id() is not an string, but it is when using Uuid. | src/Illuminate/Contracts/Auth/Guard.php | @@ -28,7 +28,7 @@ public function user();
/**
* Get the ID for the currently authenticated user.
*
- * @return int|null
+ * @return int|string|null
*/
public function id();
| false |
Other | laravel | framework | 7c23b7479e734eb22fa2befeaf9738876891c48a.json | Apply fixes from StyleCI (#28527) | src/Illuminate/Filesystem/Filesystem.php | @@ -254,7 +254,7 @@ public function link($target, $link)
$mode = $this->isDirectory($target) ? 'J' : 'H';
- exec("mklink /{$mode} ".escapeshellarg($link)." ".escapeshellarg($target));
+ exec("mklink /{$mode} ".escapeshellarg($link).' '.escapeshellarg($target));
}
/** | false |
Other | laravel | framework | 44c3feb604944599ad1c782a9942981c3991fa31.json | use escapeshellarg on windows symlink | src/Illuminate/Filesystem/Filesystem.php | @@ -254,7 +254,7 @@ public function link($target, $link)
$mode = $this->isDirectory($target) ? 'J' : 'H';
- exec("mklink /{$mode} \"{$link}\" \"{$target}\"");
+ exec("mklink /{$mode} ".escapeshellarg($link)." ".escapeshellarg($target));
}
/** | false |
Other | laravel | framework | f4e8d5c1f1b72e24baac33c336233cca24230783.json | support flush db on clusters | src/Illuminate/Redis/Connections/PhpRedisConnection.php | @@ -4,6 +4,7 @@
use Redis;
use Closure;
+use RedisCluster;
use Illuminate\Contracts\Redis\Connection as ConnectionContract;
/**
@@ -388,6 +389,22 @@ public function createSubscription($channels, Closure $callback, $method = 'subs
//
}
+ /**
+ * Flush the selected Redis database.
+ *
+... | true |
Other | laravel | framework | f4e8d5c1f1b72e24baac33c336233cca24230783.json | support flush db on clusters | src/Illuminate/Redis/Connections/PredisConnection.php | @@ -3,6 +3,8 @@
namespace Illuminate\Redis\Connections;
use Closure;
+use Predis\Command\ServerFlushDatabase;
+use Predis\Connection\Aggregate\PredisCluster;
use Illuminate\Contracts\Redis\Connection as ConnectionContract;
/**
@@ -43,4 +45,20 @@ public function createSubscription($channels, Closure $callback, $... | true |
Other | laravel | framework | 5b6f297b6cec5c92fd42aed5802dddded905e587.json | Update docblock for connectionName | src/Illuminate/Queue/Jobs/Job.php | @@ -48,6 +48,8 @@ abstract class Job
/**
* The name of the connection the job belongs to.
+ *
+ * @var string
*/
protected $connectionName;
| false |
Other | laravel | framework | 12e82c5155687082dc5c444e0438f59d2fc901b9.json | Fix a styling issue. | tests/Database/DatabaseSchemaBlueprintIntegrationTest.php | @@ -95,15 +95,15 @@ public function testChangingColumnWithCollationWorks()
'DROP TABLE users',
'CREATE TABLE users (age INTEGER NOT NULL COLLATE RTRIM)',
'INSERT INTO users (age) SELECT age FROM __temp__users',
- 'DROP TABLE __temp__users'
+ 'DROP TABLE __tem... | false |
Other | laravel | framework | 40d3ba829988fbc0389be8e20952f5acecd2d94e.json | Fix a styling issue. | tests/Database/DatabaseSchemaBlueprintIntegrationTest.php | @@ -78,28 +78,34 @@ public function testChangingColumnWithCollationWorks()
$this->db->connection()->getSchemaBuilder()->create('users', function ($table) {
$table->string('age');
});
+
$blueprint = new Blueprint('users', function ($table) {
$table->integer('age')->co... | false |
Other | laravel | framework | 0770e7a122f1fc75a55da5dfc26963df5cadfa44.json | Apply fixes from StyleCI (#28511) | src/Illuminate/Foundation/Events/DiscoverEvents.php | @@ -68,7 +68,7 @@ protected static function classFromFile(SplFileInfo $file, $basePath)
$class = trim(Str::replaceFirst($basePath, '', $file->getRealPath()), DIRECTORY_SEPARATOR);
return str_replace(
- [DIRECTORY_SEPARATOR, ucfirst(basename(app()->path()))."\\"],
+ [DIRECTORY_S... | false |
Other | laravel | framework | 0e52e470933b02163519ce96fce15711ba164ae1.json | Fix validation with multiple passes() calls | src/Illuminate/Validation/Validator.php | @@ -267,6 +267,8 @@ public function passes()
$this->distinctValues = [];
+ $this->failedRules = [];
+
// We'll spin through each rule, validating the attributes attached to that
// rule. Any error messages will be added to the containers with each of
// the other error mes... | true |
Other | laravel | framework | 0e52e470933b02163519ce96fce15711ba164ae1.json | Fix validation with multiple passes() calls | tests/Validation/ValidationValidatorTest.php | @@ -4413,6 +4413,14 @@ public function testValidatedNotValidateTwiceData()
$this->assertEquals(1, $validateCount);
}
+ public function testMultiplePassesCalls()
+ {
+ $trans = $this->getIlluminateArrayTranslator();
+ $v = new Validator($trans, [], ['foo' => 'string|required']);
+ ... | true |
Other | laravel | framework | 691cac5c8e3f542ac0c509193fd41d6480d695df.json | Use CanResetPassword contract | src/Illuminate/Auth/Notifications/ResetPassword.php | @@ -47,7 +47,7 @@ public function via($notifiable)
/**
* Build the mail representation of the notification.
*
- * @param mixed $notifiable
+ * @param \Illuminate\Contracts\Auth\CanResetPassword $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public f... | false |
Other | laravel | framework | f08ef78444a6db54ce11329503543a7a14e15439.json | Use faker_locale config | src/Illuminate/Foundation/Testing/WithFaker.php | @@ -42,6 +42,6 @@ protected function faker($locale = null)
*/
protected function makeFaker($locale = null)
{
- return Factory::create($locale ?? Factory::DEFAULT_LOCALE);
+ return Factory::create($locale ?? config('app.faker_locale', Factory::DEFAULT_LOCALE));
}
} | false |
Other | laravel | framework | 0fd627be7d66eb053b991d22c5d5e859284c8dce.json | Pass notifiable email through reset link | src/Illuminate/Auth/Notifications/ResetPassword.php | @@ -59,7 +59,7 @@ public function toMail($notifiable)
return (new MailMessage)
->subject(Lang::getFromJson('Reset Password Notification'))
->line(Lang::getFromJson('You are receiving this email because we received a password reset request for your account.'))
- ->action(Lan... | false |
Other | laravel | framework | d13803151750232417c5ad2e749dd440e6f3cfce.json | Define router property of route:list command | src/Illuminate/Foundation/Console/RouteListCommand.php | @@ -27,11 +27,11 @@ class RouteListCommand extends Command
protected $description = 'List all registered routes';
/**
- * An array of all the registered routes.
+ * The router instance.
*
- * @var \Illuminate\Routing\RouteCollection
+ * @var \Illuminate\Routing\Router
*/
- pro... | false |
Other | laravel | framework | f987a6db9bd7905e87eb399fc9b408818b153439.json | Reset webpack file for none preset
When using the none preset and previously react was chosen the webpack config file would still point to the react js compiler. Instead we should reset this file back to the JS compiler.
Fixes https://github.com/laravel/framework/issues/28461 | src/Illuminate/Foundation/Console/Presets/None.php | @@ -15,6 +15,7 @@ public static function install()
{
static::updatePackages();
static::updateBootstrapping();
+ static::updateWebpackConfiguration();
tap(new Filesystem, function ($filesystem) {
$filesystem->deleteDirectory(resource_path('js/components'));
@@ -58,4 ... | true |
Other | laravel | framework | f987a6db9bd7905e87eb399fc9b408818b153439.json | Reset webpack file for none preset
When using the none preset and previously react was chosen the webpack config file would still point to the react js compiler. Instead we should reset this file back to the JS compiler.
Fixes https://github.com/laravel/framework/issues/28461 | src/Illuminate/Foundation/Console/Presets/none-stubs/webpack.mix.js | @@ -0,0 +1,15 @@
+const mix = require('laravel-mix');
+
+/*
+ |--------------------------------------------------------------------------
+ | Mix Asset Management
+ |--------------------------------------------------------------------------
+ |
+ | Mix provides a clean, fluent API for defining some Webpack build steps
... | true |
Other | laravel | framework | 5fad1041f790ed4c1c565c1bc85a9ac2072d7a8e.json | Improve route:list command | src/Illuminate/Foundation/Console/RouteListCommand.php | @@ -210,12 +210,32 @@ protected function getColumns()
}
if ($columns = $this->option('columns')) {
- return array_intersect($availableColumns, $columns);
+ return array_intersect($availableColumns, $this->parseColumns($columns));
}
return $availableColumns;
... | false |
Other | laravel | framework | 6587e78383c4ecc8d7f3791f54cf6f536a1fc089.json | add schedule cache method | src/Illuminate/Foundation/Console/Kernel.php | @@ -99,14 +99,25 @@ public function __construct(Application $app, Dispatcher $events)
protected function defineConsoleSchedule()
{
$this->app->singleton(Schedule::class, function ($app) {
- return new Schedule($this->scheduleTimezone());
+ return (new Schedule($this->scheduleTim... | false |
Other | laravel | framework | 48f8a90c10b8490d0e442a8f0cf258471208009f.json | Remove unused import | src/Illuminate/Filesystem/FilesystemAdapter.php | @@ -7,7 +7,6 @@
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use InvalidArgumentException;
-use Illuminate\Support\Carbon;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Collection;
use League\Flysystem\AdapterInterface; | false |
Other | laravel | framework | c41ade97c174af2034980aa277bff39593db58bb.json | Remove Rackspace support for Filesystem
We're removing this driver because we feel that general interest in it is declining and this isn't used by any of Laravel's core services themselves. We're encouraging the community to release a package for this if there's any interest in continued use of it. | src/Illuminate/Filesystem/FilesystemAdapter.php | @@ -17,7 +17,6 @@
use League\Flysystem\AwsS3v3\AwsS3Adapter;
use League\Flysystem\Cached\CachedAdapter;
use League\Flysystem\FileNotFoundException;
-use League\Flysystem\Rackspace\RackspaceAdapter;
use League\Flysystem\Adapter\Local as LocalAdapter;
use Symfony\Component\HttpFoundation\StreamedResponse;
use Illum... | true |
Other | laravel | framework | c41ade97c174af2034980aa277bff39593db58bb.json | Remove Rackspace support for Filesystem
We're removing this driver because we feel that general interest in it is declining and this isn't used by any of Laravel's core services themselves. We're encouraging the community to release a package for this if there's any interest in continued use of it. | src/Illuminate/Filesystem/FilesystemManager.php | @@ -4,7 +4,6 @@
use Closure;
use Aws\S3\S3Client;
-use OpenCloud\Rackspace;
use Illuminate\Support\Arr;
use InvalidArgumentException;
use League\Flysystem\AdapterInterface;
@@ -13,7 +12,6 @@
use League\Flysystem\Cached\CachedAdapter;
use League\Flysystem\Filesystem as Flysystem;
use League\Flysystem\Adapter\F... | true |
Other | laravel | framework | c41ade97c174af2034980aa277bff39593db58bb.json | Remove Rackspace support for Filesystem
We're removing this driver because we feel that general interest in it is declining and this isn't used by any of Laravel's core services themselves. We're encouraging the community to release a package for this if there's any interest in continued use of it. | src/Illuminate/Filesystem/composer.json | @@ -33,7 +33,6 @@
"league/flysystem": "Required to use the Flysystem local and FTP drivers (^1.0).",
"league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^1.0).",
"league/flysystem-cached-adapter": "Required to use the Flysystem cache (^1.0).",
- "league/flysystem-ra... | true |
Other | laravel | framework | e2461f19c3b951f7cbb4b424601cad1f6553774a.json | Remove Mandrill and SparkPost mail drivers
We're removing these drivers because we feel that general interest in these is declining and these aren't used by any of Laravel's core services themselves. We're encouraging the community to release packages for these if there's any interest in continued use of them. | composer.json | @@ -120,7 +120,7 @@
"doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.6).",
"filp/whoops": "Required for friendly error pages in development (^2.1.4).",
"fzaninotto/faker": "Required to use the eloquent factory builder (^1.4).",
- "guzzlehttp/guzzle": "Required t... | true |
Other | laravel | framework | e2461f19c3b951f7cbb4b424601cad1f6553774a.json | Remove Mandrill and SparkPost mail drivers
We're removing these drivers because we feel that general interest in these is declining and these aren't used by any of Laravel's core services themselves. We're encouraging the community to release packages for these if there's any interest in continued use of them. | src/Illuminate/Mail/Transport/MandrillTransport.php | @@ -1,105 +0,0 @@
-<?php
-
-namespace Illuminate\Mail\Transport;
-
-use Swift_Mime_SimpleMessage;
-use GuzzleHttp\ClientInterface;
-
-class MandrillTransport extends Transport
-{
- /**
- * Guzzle client instance.
- *
- * @var \GuzzleHttp\ClientInterface
- */
- protected $client;
-
- /**
- *... | true |
Other | laravel | framework | e2461f19c3b951f7cbb4b424601cad1f6553774a.json | Remove Mandrill and SparkPost mail drivers
We're removing these drivers because we feel that general interest in these is declining and these aren't used by any of Laravel's core services themselves. We're encouraging the community to release packages for these if there's any interest in continued use of them. | src/Illuminate/Mail/Transport/SparkPostTransport.php | @@ -1,169 +0,0 @@
-<?php
-
-namespace Illuminate\Mail\Transport;
-
-use Swift_Mime_SimpleMessage;
-use GuzzleHttp\ClientInterface;
-
-class SparkPostTransport extends Transport
-{
- /**
- * Guzzle client instance.
- *
- * @var \GuzzleHttp\ClientInterface
- */
- protected $client;
-
- /**
- ... | true |
Other | laravel | framework | e2461f19c3b951f7cbb4b424601cad1f6553774a.json | Remove Mandrill and SparkPost mail drivers
We're removing these drivers because we feel that general interest in these is declining and these aren't used by any of Laravel's core services themselves. We're encouraging the community to release packages for these if there's any interest in continued use of them. | src/Illuminate/Mail/TransportManager.php | @@ -14,8 +14,6 @@
use Postmark\Transport as PostmarkTransport;
use Illuminate\Mail\Transport\ArrayTransport;
use Illuminate\Mail\Transport\MailgunTransport;
-use Illuminate\Mail\Transport\MandrillTransport;
-use Illuminate\Mail\Transport\SparkPostTransport;
use Swift_SendmailTransport as SendmailTransport;
class... | true |
Other | laravel | framework | e2461f19c3b951f7cbb4b424601cad1f6553774a.json | Remove Mandrill and SparkPost mail drivers
We're removing these drivers because we feel that general interest in these is declining and these aren't used by any of Laravel's core services themselves. We're encouraging the community to release packages for these if there's any interest in continued use of them. | src/Illuminate/Mail/composer.json | @@ -36,7 +36,7 @@
},
"suggest": {
"aws/aws-sdk-php": "Required to use the SES mail driver (^3.0).",
- "guzzlehttp/guzzle": "Required to use the Mailgun and Mandrill mail drivers (^6.0).",
+ "guzzlehttp/guzzle": "Required to use the Mailgun mail driver (^6.0).",
"wildbit/swiftma... | true |
Other | laravel | framework | e9e63be1dcad45735e7bb7f074a0f86cfab67a07.json | apply code style | tests/Integration/Routing/PreviousUrlTest.php | @@ -2,6 +2,8 @@
namespace Illuminate\Tests\Integration\Routing;
+use Orchestra\Testbench\TestCase;
+use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Session\SessionServiceProvider;
use Illuminate\Support\Facades\Route; | false |
Other | laravel | framework | ccf9d4a5bd10f2c976c341f3b7fdae09403719e1.json | pass verification URL to callback | src/Illuminate/Auth/Notifications/VerifyEmail.php | @@ -37,17 +37,16 @@ public function via($notifiable)
*/
public function toMail($notifiable)
{
+ $verificationUrl = $this->verificationUrl($notifiable);
+
if (static::$toMailCallback) {
- return call_user_func(static::$toMailCallback, $notifiable);
+ return call_user... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.