mustafaabdujalil
7 months ago
167
2
Laravel

validator errors

Posted 7 months ago by mustafaabdujalil

I want to get json of messages only not keys and messages

I get this

{
    "status": "error",
    "msg": {
        "password": [
            "The password field is required."
        ]
    }
}

i want to get this

{
    "status": "error",
    "msg": [
 
            "The password field is required."
    ]
}

Please sign in or create an account to participate in this conversation.