LoginSignup
0
0

More than 3 years have passed since last update.

inputタグの値を配列形式で扱った時の備忘録(with Blade of Laravel)

Posted at

配列の値をControllerで受け取るってなんか難しくないか(?)

と始める前に思っていて、実際割とハマったので書き残しておこうかなと思います。

配列形式でpostする書き方

exaple.html

<input name="test[]" type="text"> 
//result 
//test[0]
<input name="test[0][1]['test']" type="text">  
//result
//test=[
     0 =>[
          0 => [],
          1 => [
         'test' => '',
         ] 
         ]
     ]

少し落ち着いてきたら、最近使ったLaravelの機能群についても備忘録としてまとめてみようかなと思います。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0