laravel - Confused about php syntax?
三叔
三叔 2017-06-16 09:18:55
0
5
807


As shown in the figure: method => function. what does this mean?


Additional: Thank you everyone, my brain is rusty. . .

三叔
三叔

reply all(5)
小葫芦

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

漂亮男人

$this->username() returns the key name
trans returns the key value

为情所困

Define array. . .
key is $this->username, value is trans('auth.failed')

仅有的幸福

Use the return value of the method $this->username() as the key

为情所困

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)]

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template