方法为什么会执行两次
public function query1() {
$bool = DB::table('student')->insert(
['name' => 'immoc', 'age' => 22 ]
);
file_put_contents(__DIR__.'/log.txt','111\\n',FILE_APPEND);//写了两条数据
$this->log($bool);
}
public function query1() {
$bool = DB::table('student')->insert(
['name' => 'immoc', 'age' => 22 ]
);
file_put_contents(__DIR__.'/log.txt','111\\n',FILE_APPEND);//写了两条数据
$this->log($bool);
}
2017-12-21
举报