for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Modules\User\Composers;
use Illuminate\Contracts\View\View;
use Modules\Core\Contracts\Authentication;
class UsernameViewComposer
{
/**
* @var Authentication
*/
private $auth;
public function __construct(Authentication $auth)
$this->auth = $auth;
}
public function compose(View $view)
$view->with('user', $this->auth->check());