摘要:
$users = User::whereRaw('age > ? and votes = 100', array(25))->get(); $res = DB::table('tbl_user') ->whereRaw('id>=? and name = ?',[12,'jack']) ->get( 阅读全文
摘要:
1、修改 /config/database.php .env 2、 DB命名空间: use Illuminate\Support\Facades\DB; //$res = DB::insert("insert into tbl_member (name,create_at,age) values ( 阅读全文