As shown in the figure: method =>
function. what does this mean?
Additional: Thank you everyone, my brain is rusty. . .
高洛峰2017-06-16 09:20:55
First of all, this is an array, and the key value of the array is the data calculated by these two functions
This is just a way to save trouble, no need to make a fuss
为情所困2017-06-16 09:20:55
Define array. . .
key is $this->username, value is trans('auth.failed')
为情所困2017-06-16 09:20:55
This is the assignment format in the PHP array, => the key in front and the value in the back. In this way, the errors array looks like this [username,trans(PalaPala)]