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\Role;
use Arcanesoft\Auth\ViewComposers\ViewComposer;
use Illuminate\Contracts\View\View;
/**
* Class RolesCountComposer
*
* @package Arcanesoft\Auth\ViewComposers\Dashboard
* @author ARCANEDEV <[email protected]>
*/
class RolesCountComposer extends ViewComposer
{
/* ------------------------------------------------------------------------------------------------
| Constants
| ------------------------------------------------------------------------------------------------
const VIEW = 'auth::foundation._composers.dashboard.roles-count-box';
| Main Functions
* Compose the view.
* @param \Illuminate\Contracts\View\View $view
public function compose(View $view)
$view->with('rolesCount', $this->getCachedRoles()->count());
}