2017-04-26 42 views

回答

1

您可以使用where表达>=操作如下图所示:

DB::table('dates') 
      ->where('date' , '>=' , Carbon::now()->toDateTimeString())->get(); 
+0

碳::现在()给出的日期与时间 – mardon

+1

'DB ::表( '日期') - >在哪里('日期','> =',Carbon :: today() - > toDateString()) - > get();'是我所需要的 – mardon