re-working validation
This commit is contained in:
parent
35dfe66de2
commit
c8a46f6bd9
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue