File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,15 @@ public function run()
41
41
$ countUsers = User::count ();
42
42
$ lastMonthRegistered = User::query ()->whereBetween ('created_at ' , [
43
43
$ lastMonth ->startOfMonth ()->format ('Y-m-d ' ),
44
- $ lastMonth ->endOfMonth ()->format ('Y-m-d ' )
44
+ $ lastMonth ->endOfMonth ()->format ('Y-m-d ' ),
45
45
])->count ();
46
46
$ currentMonthRegistered = User::query ()->where ('created_at ' , '>= ' , now ()->startOfMonth ())->count ();
47
47
$ difference = $ currentMonthRegistered - $ lastMonthRegistered ;
48
48
49
49
$ countArticles = Article::count ();
50
50
$ lastMonthArticles = Article::query ()->whereBetween ('created_at ' , [
51
51
$ lastMonth ->startOfMonth ()->format ('Y-m-d ' ),
52
- $ lastMonth ->endOfMonth ()->format ('Y-m-d ' )
52
+ $ lastMonth ->endOfMonth ()->format ('Y-m-d ' ),
53
53
])->count ();
54
54
$ currentMonthArticles = Article::query ()->where ('created_at ' , '>= ' , now ()->startOfMonth ())->count ();
55
55
$ differenceArticle = $ currentMonthArticles - $ lastMonthArticles ;
You can’t perform that action at this time.
0 commit comments