| 1 | <?php namespace Arcanesoft\Auth\ViewComposers\Dashboard; |
||
| 14 | class OnlineUsersCountComposer extends ViewComposer |
||
| 15 | { |
||
| 16 | /* ------------------------------------------------------------------------------------------------ |
||
| 17 | | Constants |
||
| 18 | | ------------------------------------------------------------------------------------------------ |
||
| 19 | */ |
||
| 20 | const VIEW = 'auth::foundation._composers.dashboard.online-users-count-box'; |
||
| 21 | |||
| 22 | /* ------------------------------------------------------------------------------------------------ |
||
| 23 | | Main Functions |
||
| 24 | | ------------------------------------------------------------------------------------------------ |
||
| 25 | */ |
||
| 26 | /** |
||
| 27 | * Compose the view. |
||
| 28 | * |
||
| 29 | * @param \Illuminate\Contracts\View\View $view |
||
| 30 | */ |
||
| 31 | public function compose(View $view) |
||
| 35 | |||
| 36 | /* ------------------------------------------------------------------------------------------------ |
||
| 37 | | Other Functions |
||
| 38 | | ------------------------------------------------------------------------------------------------ |
||
| 39 | */ |
||
| 40 | /** |
||
| 41 | * Get the online users. |
||
| 42 | * |
||
| 43 | * @return \Illuminate\Database\Eloquent\Collection |
||
| 44 | */ |
||
| 45 | private function getOnlineUsers() |
||
| 55 | } |
||
| 56 |