$filtered = DB::table('tmp_table')->distinct()->select('type','description','note')->get(); 我想将我检索到的内容插入到另一个表中passed to Illuminate\Database\Query\Builder::insert() must be of the type array, object given 哪种方法是最好的?
我正在使用"Eloquent ORM in Laravel“执行数据库操作。我只想获取数据库中的最后一个插入id (不是最大id)。我在laravel Eloquent ORM中搜索获取上次插入的id,得到了下面的链接(Laravel, get last insert id using Eloquent),即从下面的函数"$data->save()“中获取