Home >Backend Development >PHP Tutorial >yii2 How to customize the error message format returned by AR validation?
For example:
I don’t want the returned array to contain key 'user_id' . Is there any way to customize it?
For example:
I don’t want the returned array to contain key 'user_id' . Is there any way to customize it?
array_values($order->getFirstErrors())
Is this okay?