Repository URL to install this package:
|
Version:
1.0.0 ▾
|
<?php namespace Modules\Users\Composers;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\View\View;
class UsernameViewComposer
{
/**
* @var Authentication
*/
private $auth;
public function __construct(Guard $auth)
{
$this->auth = $auth;
}
public function compose(View $view)
{
$view->with('user', $this->auth->user());
}
}