📜  数组中的livewire模型绑定项 - PHP代码示例

📅  最后修改于: 2022-03-11 14:54:20.255000             🧑  作者: Mango

代码示例1
#Using a multi-dimensional array that looks like this:
$data = [
   1 => ['name' => 'Name', 'completed' => 0],
   2 => ['name' => 'Name 2', 'completed' => 1],
];
#Bind items like so:
@foreach ($items as $item)
   
   
@endforeach