The code sample is missing the second arg for in_array, it doesn't know where to look
Try the unique rule with with additional where clause 'name' => 'unique:games,name,NULL,id,user_i...
Looks like you need to create the user first then insert dealer_address with dealer_id = $newUser-&g...
From app/Exceptions/Handler.php you can return an http response from render public function render($...
If the json is not formatted correctly it will just silently fail to parse it
The Laravel portal for problem solving, knowledge sharing and community building.