【发布时间】:2016-08-25 03:44:13
【问题描述】:
我的控制器是:
public function store()
{
$links = array();
$html = new \Htmldom('http://randomsite.org');
foreach($html->find('a') as $a)
{
$links[] = $a->href;
}
}
我有一个名为 result 的数据库表,其中包含字段:
id
name
url (i want to put the array here)
desc
我想要的是多条记录作为数字链接
【问题讨论】:
标签: arrays database laravel store records