1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

re-working validation

This commit is contained in:
David Bomba 2016-03-13 22:46:59 +11:00
parent 35dfe66de2
commit c8a46f6bd9

View File

@ -2,6 +2,7 @@
use Auth;
use App\Http\Requests\Request;
use Illuminate\Support\Facades\Log;
use Illuminate\Validation\Factory;
use App\Libraries\Utils;
use Response;
@ -39,6 +40,8 @@ class RegisterRequest extends Request
{
//return parent::response($errors); // TODO: Change the autogenerated stub
Log::info($errors);
foreach($errors as $err) {
$error['error'] = $err;
$error = json_encode($error, JSON_PRETTY_PRINT);