DB::table('表名')->get();   //查询表里的所有数据

DB::table('表名')->where()->find(需要查询的条数);    查询单或多条数据

DB::table('表名')->insert(要添加的数据);    在表里添加一条数据

DB::table('表名')->where('id',$id)->update(要修改的数据);    根据id修改表里的某一条数据

DB::table('表名')->where('id',$id)->detele();   根据id删除表中的一条数据 

相关文章: