vendredi 29 janvier 2016

Laravel validation throwing "NotFoundHttpException" when used in PostMan but works in Angular $http request

I am creating an API but stuck debugging.

Using this in my controller method:

$this->validate($request, [
    'project_id' => 'required',
    'content'    => 'required',
]);

If I call that route with PostMan I get a not found error return by Laravel's debugging screen.

However the API call works fine when using an Angular (ionic) $http request.

Any help?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire