mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-22 18:55:43 +01:00
22 lines
361 B
PHP
22 lines
361 B
PHP
<?php
|
|
|
|
namespace CachetHQ\Cachet\Composers;
|
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Illuminate\View\View;
|
|
|
|
class LoggedUserComposer
|
|
{
|
|
/**
|
|
* Bind data to the view.
|
|
*
|
|
* @param \Illuminate\View\View $view
|
|
*
|
|
* @return void
|
|
*/
|
|
public function compose(View $view)
|
|
{
|
|
$view->with('loggedUser', Auth::user());
|
|
}
|
|
}
|