I wrote this part of Api:
public function store(Request $request)
{
$this->validate($request, [
'citizenship' => 'required',
'country' => 'required'
]);
...
and I am sending a Post request with Postman not passing one of the required field and I don't see any error response, but it just redirect me to the home page of the application. How can I grab the error message?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2rCITdD
via IFTTT
Aucun commentaire:
Enregistrer un commentaire