for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanesoft\Auth\ViewComposers\Dashboard;
use Arcanesoft\Auth\Models\User;
use Arcanesoft\Auth\ViewComposers\ViewComposer;
use Illuminate\Contracts\View\View;
/**
* Class UsersCountComposer
*
* @package Arcanesoft\Auth\ViewComposers\Dashboard
* @author ARCANEDEV <[email protected]>
*/
class UsersCountComposer extends ViewComposer
{
/* ------------------------------------------------------------------------------------------------
| Constants
| ------------------------------------------------------------------------------------------------
const VIEW = 'auth::foundation._composers.dashboard.users-count-box';
| Main Functions
* Compose the view.
* @param \Illuminate\Contracts\View\View $view
public function compose(View $view)
$view->with('usersCount', $this->getCachedUsers()->count());
}