Answer the question
In order to leave comments, you need to log in
Sort data for today only Laravel 8 - how?
Good afternoon. There is a conditional database - sessions with the last_activity date. It is
necessary to display in the blade only the data received for today.
Code for getting data from the sessions table:
$sessionDataActivityALl = DB::table('sessions')
->select('last_activity')
->get();
$newVisitsToday = $sessionDataActivityALl->count();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question