Hi I am using custom request class that extends laravel Request class validate user input data. I override response function to return error message as JSON string like this
public function response(array $errors){
return ['success' => 0, 'messages' => $errors];
}
but I am getting this error: ErrorException in VerifyCsrfToken.php line 136: Trying to get property of non-object
what is the reason of this error? thanks for your help
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community