diff --git a/app/Http/Requests/Request.php b/app/Http/Requests/Request.php index 288809d..4be82d6 100644 --- a/app/Http/Requests/Request.php +++ b/app/Http/Requests/Request.php @@ -10,9 +10,9 @@ abstract class Request extends FormRequest /** * {@inheritdoc} */ - protected function formatErrors(Validator $validator) + protected function failedValidation(Validator $validator) { flash()->error('Mohon periksa kembali form isian Anda.'); - return $validator->getMessageBag()->toArray(); + parent::failedValidation($validator); } } diff --git a/composer.json b/composer.json index ad68b57..c1e0c87 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "laravel/browser-kit-testing": "^2.0", "mockery/mockery": "0.9.*", "phpunit/phpunit": "~6.0", - "johnkary/phpunit-speedtrap": "^1.0" + "johnkary/phpunit-speedtrap": "dev-master" }, "autoload": { "classmap": [ diff --git a/composer.lock b/composer.lock index 40a024e..a099e03 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "f6742e364de90026715de4bbb9c3db2a", + "content-hash": "6c61f297d80073ba97f8138e4ebd7a31", "packages": [ { "name": "backup-manager/backup-manager", @@ -3278,31 +3278,31 @@ }, { "name": "johnkary/phpunit-speedtrap", - "version": "v1.0.2", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/johnkary/phpunit-speedtrap.git", - "reference": "ad242a6e84b0d63d2e50832babad77d6d545bc0a" + "reference": "cbd785f67116c581f71705342cb316631e5a2be9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/johnkary/phpunit-speedtrap/zipball/ad242a6e84b0d63d2e50832babad77d6d545bc0a", - "reference": "ad242a6e84b0d63d2e50832babad77d6d545bc0a", + "url": "https://api.github.com/repos/johnkary/phpunit-speedtrap/zipball/cbd785f67116c581f71705342cb316631e5a2be9", + "reference": "cbd785f67116c581f71705342cb316631e5a2be9", "shasum": "" }, "require": { - "php": ">=5.6", - "phpunit/phpunit": ">=4.7" + "php": ">=7.0", + "phpunit/phpunit": "^6.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "2.0-dev" } }, "autoload": { - "psr-0": { - "JohnKary": "src/" + "psr-4": { + "JohnKary\\PHPUnit\\Listener\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -3322,7 +3322,7 @@ "profile", "slow" ], - "time": "2017-02-13T15:22:35+00:00" + "time": "2017-03-17T12:23:15+00:00" }, { "name": "laravel/browser-kit-testing", @@ -4952,7 +4952,9 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": { + "johnkary/phpunit-speedtrap": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": {