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:
parent
35dfe66de2
commit
c8a46f6bd9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user