diff --git a/.gitattributes b/.gitattributes index 927c475f58cd..a49ae3b7ca61 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,9 +5,8 @@ .editorconfig export-ignore .gitattributes export-ignore .gitignore export-ignore -.nitpick.json export-ignore .php_cs export-ignore .travis.yml export-ignore -phpunit.xml export-ignore +phpunit.xml.dist export-ignore CHANGELOG.md export-ignore CONTRIBUTING.md export-ignore diff --git a/.gitignore b/.gitignore index 54406f02a976..2de844b899a3 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ composer.lock .php_cs.cache .DS_Store Thumbs.db +/phpunit.xml \ No newline at end of file diff --git a/.nitpick.json b/.nitpick.json deleted file mode 100644 index 3881d8dc2f2e..000000000000 --- a/.nitpick.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "ignore": [ - "tests/*" - ] -} diff --git a/.travis.yml b/.travis.yml index 20d73d042e04..37a59740861d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ language: php php: - 5.6 - 7.0 - - hhvm env: global: diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a80d6ff302b..96c3abc935ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,40 @@ # Release Notes +## 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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2cbf8251054c..500ac3f96bec 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,3 @@ # Laravel Contribution Guide -Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](http://laravel.com/docs/contributions). Please review the entire guide before sending a pull request. +Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). Please review the entire guide before sending a pull request. diff --git a/composer.json b/composer.json index bcbbd3e8bb49..471df21da6c9 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" @@ -11,7 +11,7 @@ "authors": [ { "name": "Taylor Otwell", - "email": "taylorotwell@gmail.com" + "email": "taylor@laravel.com" } ], "require": { @@ -27,6 +27,7 @@ "nesbot/carbon": "~1.20", "paragonie/random_compat": "~1.4|~2.0", "psy/psysh": "0.7.*", + "ramsey/uuid": "~3.0", "swiftmailer/swiftmailer": "~5.1", "symfony/console": "3.1.*", "symfony/debug": "3.1.*", diff --git a/phpunit.xml b/phpunit.xml.dist similarity index 87% rename from phpunit.xml rename to phpunit.xml.dist index db640da487f2..baa2d1e86eb3 100644 --- a/phpunit.xml +++ b/phpunit.xml.dist @@ -26,4 +26,10 @@ + + + diff --git a/readme.md b/readme.md index 76d266ffaf3c..c7d5e0f27848 100644 --- a/readme.md +++ b/readme.md @@ -17,11 +17,11 @@ Laravel is accessible, yet powerful, providing powerful tools needed for large, ## Official Documentation -Documentation for the framework can be found on the [Laravel website](http://laravel.com/docs). +Documentation for the framework can be found on the [Laravel website](https://laravel.com/docs). ## Contributing -Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](http://laravel.com/docs/contributions). +Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). ## Security Vulnerabilities diff --git a/src/Illuminate/Auth/Access/Gate.php b/src/Illuminate/Auth/Access/Gate.php index a16966e75e6d..85882567e95d 100644 --- a/src/Illuminate/Auth/Access/Gate.php +++ b/src/Illuminate/Auth/Access/Gate.php @@ -369,11 +369,9 @@ protected function resolvePolicyCallback($user, $ability, array $arguments) } // If the first argument is a string, that means they are passing a class name - // to the policy. We'll append "Any" to this ability name so that users may - // call the policy method with either a class or model name consistently. + // to the policy. We will remove the first argument from this argument list + // because the policy already knows what type of models it can authorize. if (isset($arguments[0]) && is_string($arguments[0])) { - $ability = $ability.'Any'; - array_shift($arguments); } diff --git a/src/Illuminate/Auth/Console/stubs/make/controllers/HomeController.stub b/src/Illuminate/Auth/Console/stubs/make/controllers/HomeController.stub index 669e2ea9ca39..8e0007adcab8 100644 --- a/src/Illuminate/Auth/Console/stubs/make/controllers/HomeController.stub +++ b/src/Illuminate/Auth/Console/stubs/make/controllers/HomeController.stub @@ -2,7 +2,6 @@ namespace {{namespace}}Http\Controllers; -use {{namespace}}Http\Requests; use Illuminate\Http\Request; class HomeController extends Controller diff --git a/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub b/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub index bb4775a99093..3ac82d8c38fd 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub @@ -17,7 +17,7 @@
- + @if ($errors->has('email')) diff --git a/src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub b/src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub index 71d548a30b11..3222a70f9cd8 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub @@ -5,10 +5,20 @@ + + + Laravel + + +