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