Point notation is designed for easy access to array elements and makes their selectors more โwhiteโ.
Confirming author.name will be equivalent to checking the input value <input type="text" name="author[name]" /> .
This makes using multimodel forms or grouping related data much nicer =). Then you can get all the data for this thing by doing something like $request->request('author'); , and this will give you a set / array of all the values โโrepresented with author[*] . Laravel also uses it with its configuration accessories - therefore config.setting.parameter is the equivalent of config[setting][parameter]
Basically simplifies working with array data.
For some examples, see https://github.com/glopezdetorre/dot-notation-access !
OnIIcE
source share