越来越日期这是我ReservationController里面的功能: public function realtime() {
// Change to On Going
$ongoing = Reservation::select('*')
-> where('eventStatus', 'NYD') -> get();
//dd($ongo
我无法找到问题出在哪里。我有posts和comments表。在comments表中我加了foreign keypost_id。现在,当我收到所有帖子时,我想要同时收到评论。 这里是我的PostController public function show_api()
{
return $this->withCount('comments')->get();
}
public fu