1.查  public function userTest(){
return $this->all();
}
public function userTest(){
return $this->get(参数);
}

2.增 public  function  usrAdd(){
   $this->user_name ='zhanfa';
$this->password ='21';
$this->save();
}
public  function  usrAdd(){
$user_data = ['username' =>'user2', 'age' => '21'];
$this->fill($user_data);
$this->save();
}
3.更改
public  function  userUpdata(){
$user_data =$this->where('user_id','2');
$user_data->update('user_name' =>"zjang".'age'=>'21'); }
4.删
public  function  userdete(){
$user = $this->find(参数);
$user->delete(); }

 

最新文章

  1. ABP框架 - 会话
  2. 常用快捷键: From Eclipse to Android Studio
  3. can't open a connection to site 'syb_backup'
  4. c# 配置文件之configSections配置(三)
  5. 如何定义DATATABLE,同时赋值
  6. html+css学习笔记 3[浮动]
  7. bzoj2618[Cqoi2006]凸多边形 半平面交
  8. UESTC_男神的约会 2015 UESTC Training for Dynamic Programming<Problem J>
  9. unigui数据库连接池
  10. R语言-ggplot初级
  11. C# Hex编码和解码
  12. Neutron路由篇:L3 agent+Namespace
  13. 前后端不分离的springboot项目问题:页面框架问题
  14. react axios 配置
  15. bind的封装
  16. Codeforces.744B.Hongcow's Game(交互 按位统计)
  17. GBDT(Gradient Boost Decision Tree)
  18. IOS 获取设备屏幕的尺寸
  19. 日期格式私人定制——SimpleDateFormat
  20. 如何向map和reduce脚本传递参数,加载文件和目录

热门文章

  1. Mac OSX 下配置 LNMP开发环境
  2. [Grid Layout] Describe a grid layout using named grid lines
  3. 前端工具WebStorm好在哪里?(带详细破解教程)
  4. D3.js以及通用JS(JavaScript)读取并解析server端JSON的注意事项
  5. Thermally driven workload scheduling in a heterogeneous multi-processor system on a chip
  6. Procedural graphics architectures and techniques
  7. Adaptive partitioning scheduler for multiprocessing system
  8. Windows应用程序的消息处理机制
  9. Ultra-wideband (UWB) secure wireless device pairing and associated systems
  10. Maven打包不打test,Maven中-DskipTests和-Dmaven.test.skip=true的区别