weird php or laravel quirk with default array value in func
so i am doing something like:
PHP Code:
# file1.php
function() { //more a controller
…..code
return $this->respondFailedValidation(config(‘messages.error.invalid_details’), $validator->errors());
}
# file2.php
public function respondFailedValidation($message = “Validation error”, $errorList = null)
{
dd(func_get_args());
//return $this->setStatusCode(‘400’)->respondWithError($message, $errorList);
}
dd() is a laravel […]
Original post by paulh1983
Leave a Reply
You must be logged in to post a comment.