You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried running the following command:
"composer require spatie/laravel-analytics" but I got the following error:
and then after I installed older version which was successfully installed using the following command
"composer require spatie/laravel-analytics:^4.1" now I'm facing the 'Class "Spatie\Analytics\Facades\Analytics' not found" error after using the below code:
use Spatie\Analytics\Facades\Analytics;
use Spatie\Analytics\Period;
//fetch the most visited pages for today and the past week
Analytics::fetchMostVisitedPages(Period::days(7));
Please help me out with this how can I use it in version 4.1.0
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I tried running the following command:
"composer require spatie/laravel-analytics"
but I got the following error:
and then after I installed older version which was successfully installed using the following command
"composer require spatie/laravel-analytics:^4.1"
now I'm facing the 'Class "Spatie\Analytics\Facades\Analytics' not found" error after using the below code:
use Spatie\Analytics\Facades\Analytics;
use Spatie\Analytics\Period;
//fetch the most visited pages for today and the past week
Analytics::fetchMostVisitedPages(Period::days(7));
Please help me out with this how can I use it in version 4.1.0
Beta Was this translation helpful? Give feedback.
All reactions