Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想问一个关于 laravel/php 的问题
我必须将两个不同的时间和今天的日期与当前日期进行比较。
$now_time=date('H'); $current_day=date('Y-m-d'); $that_date=date('Y-m-d', strtotime($request->date));
使用碳你可以比较这个 Carbon::today()你可以用于当前日期
Carbon::today()
其他信息去laracasts 讨论