Changeset f457265 for app/Http/Controllers/Dashboard/IndexController.php
- Timestamp:
- 02/24/21 21:58:42 (4 years ago)
- Branches:
- master
- Children:
- ff9da8b
- Parents:
- 0c07a90
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Controllers/Dashboard/IndexController.php
r0c07a90 rf457265 36 36 "allPosts" => Post::count(), 37 37 "currentUserPosts" => Post::where("user_id", auth()->user()->id)->count(), 38 "users" => User::count(),38 "users" => !is_null(auth()->user()->company) ? auth()->user()->company->users->count() : User::count(), 39 39 "total_comments" => Comment::count(), 40 40 "comments" => auth()->user()->comments->count()
Note:
See TracChangeset
for help on using the changeset viewer.