-1
$today = Carbon::today();
$search = $today->subDay(1);
$loading =LoadingBus::where('created_at','=',$search)->get();
dd($loading);
給我一個空集合。請我做了什麼錯 集合{#279▼ #items:[] } 我有我loading_buses表匹配這個特定日期 進一步的信息基於laravel中的created_at時間戳檢索模型5
dd($search)
Carbon {#278 ▼
+"date": "2016-09-03 00:00:00.000000"
+"timezone_type": 3
+"timezone": "UTC"
}
loading_buses created_at value = 2016-09-03 00:01:06
我真的需要幫助
數據