摘要: $users = User::whereRaw('age > ? and votes = 100', array(25))->get(); $res = DB::table('tbl_user') ->whereRaw('id>=? and name = ?',[12,'jack']) ->get( 阅读全文
posted @ 2017-03-02 23:58 haiwei.sun 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1、修改 /config/database.php .env 2、 DB命名空间: use Illuminate\Support\Facades\DB; //$res = DB::insert("insert into tbl_member (name,create_at,age) values ( 阅读全文
posted @ 2017-03-02 23:08 haiwei.sun 阅读(147) 评论(0) 推荐(0) 编辑
返回顶部