Laravel Form Class Submit Value as Part of Array -
When using the form helper class with Laravel / Blade, then $ name is a way of formatting the value When the data has been retrieved, is it organized as an array?
For example, in the view file, I want to do something like this:
{{form :: input ('params .atename')}} {{form :: input ('params.siteurl')}}
and then in the controller, when I call:
$ data = input :: Mill ('Params'); $ Data return: array ('params' = & gt; array (' sitename '= & gt; user data input', 'cyclical' = & gt; more data from user Input);)
good ol 'Php way:
{{form :: input ('params [sitename]'}}} {{form :: input ('params [siteurl]')}}} input :: find ('param'); // array // 'sitename' = & gt; 'value-1', // 'second' = & gt; 'value-2' //)
Comments
Post a Comment